public static List<String> getDecorationDefinitionNames(CmsObject cms) throws CmsException {

        List<String> result = new ArrayList<String>();
        CmsModule module = OpenCms.getModuleManager().getModule("com.alkacon.opencms.extendeddecorator");
        String configFile = module.getParameter("configfile");
        if (CmsStringUtil.isEmpty(configFile)) {
            LOG.error(Messages.get().getBundle().key(Messages.LOG_ERROR_CONFIG_MISSING_0));
        } else {
            CmsDecoratorConfiguration config = new CmsDecoratorConfiguration(cms, configFile);
            List<CmsDecorationDefintion> decorationDefinitions = config.getDecorationDefinitions();
            Iterator<CmsDecorationDefintion> it = decorationDefinitions.iterator();
            CmsDecorationDefintion decDef;
            while (it.hasNext()) {
                decDef = it.next();
                result.add(decDef.getName());
            }

        }

        return result;
    }
public static List < String > getDecorationDefinitionNames ( CmsObject cms ) throws CmsException { List < String > result = new ArrayList < String > ( ) ; CmsModule module = OpenCms . getModuleManager ( ) . getModule ( "com.alkacon.opencms.extendeddecorator" ) ; String configFile = module . getParameter ( "configfile" ) ; if ( CmsStringUtil . isEmpty ( configFile ) ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_ERROR_CONFIG_MISSING_0 ) ) ; } else { CmsDecoratorConfiguration config = new CmsDecoratorConfiguration ( cms , configFile ) ; List < CmsDecorationDefintion > decorationDefinitions = config . getDecorationDefinitions ( ) ; Iterator < CmsDecorationDefintion > it = decorationDefinitions . iterator ( ) ; CmsDecorationDefintion decDef ; while ( it . hasNext ( ) ) { decDef = it . next ( ) ; result . add ( decDef . getName ( ) ) ; } } return result ; }
Returns all different decoration configuration names (like "abbr" or "acronym") that
are in the config file pointed to by module parameter "configfile".<p>

@param cms needed to access the decoration definition XML content

@return  all different decoration configuration names (like "abbr" or "acronym") that
are in the config file pointed to by module parameter "configfile"

@throws CmsException if sth goes wrong