Package de.innovationgate.wga.modules

Examples of de.innovationgate.wga.modules.OptionDefinitionsMap


        return WGAServerOptionsModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition logLevel = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_LOG_APPLOG_LEVEL, LogLevelOptionType.INSTANCE, _bundleLoader);
        logLevel.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_LOG_APPLOG_LEVEL);
        options.addOption(logLevel);
       
        LocalizedOptionDefinition warnings = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_LOG_WARNINGS, BooleanOptionType.INSTANCE, _bundleLoader);
        warnings.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_LOG_WARNINGS);
        options.addOption(warnings);
       
        PredefinedValuesOptionType warningsTMLType = new PredefinedValuesOptionType(_bundleLoader, WGAConfiguration.SERVEROPTION_LOG_WARNINGS_TML);
        warningsTMLType.addValue(Constants.WARNINGS_TML_OFF);
        warningsTMLType.addValue(Constants.WARNINGS_TML_AS_COMMENT);
        warningsTMLType.addValue(Constants.WARNINGS_TML_AS_HTML);
        LocalizedOptionDefinition warningsTML = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_LOG_WARNINGS_TML, warningsTMLType, _bundleLoader);
        warningsTML.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_LOG_WARNINGS_TML);
        options.addOption(warningsTML);
       
        LocalizedOptionDefinition warningsConsole = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_LOG_WARNINGS_APPLOG, BooleanOptionType.INSTANCE, _bundleLoader);
        warningsConsole.setDefaultValue(Boolean.FALSE.toString());
        options.addOption(warningsConsole);
       
        LocalizedOptionDefinition permanentLog = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_LOG_PERMANENTLOG_DIR, ServerFilePathOptionType.INSTANCE, _bundleLoader);
        permanentLog.setOptional(true);
        options.addOption(permanentLog);
       
        return options;
   
    }
View Full Code Here


        return ServicesCollector.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
       
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition webServices = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_SERVICE_WEBSERVICES, BooleanOptionType.INSTANCE, _bundleLoader);
        webServices.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_SERVICE_WEBSERVICES);
        options.addOption(webServices);
       
        LocalizedOptionDefinition webServiceProtocol = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_SERVICE_PROTOCOL_IMPLEMENTATION, new WGAServicesProtocolsOptionType(_registry), _bundleLoader);
        webServiceProtocol.setOptional(true);
        options.addOption(webServiceProtocol);

        LocalizedOptionDefinition startPage = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_SERVICE_STARTPAGE, BooleanOptionType.INSTANCE, _bundleLoader);
        startPage.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_SERVICE_STARTPAGE);
        options.addOption(startPage);
       
        LocalizedOptionDefinition adminPage = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_SERVICE_ADMIMPAGE, BooleanOptionType.INSTANCE, _bundleLoader);
        adminPage.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_SERVICE_ADMINPAGE);
        adminPage.setOptional(true);
        options.addOption(adminPage);

        return options;
       
    }
View Full Code Here

        return SchedulerTaskModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition database = new LocalizedOptionDefinition(JavaTask.OPTION_TASKCLASS, ClassNameOptionType.INSTANCE, _bundleLoader);
        options.addOption(database);
       
        return options;
       
    }
View Full Code Here

        return SchedulerTaskModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
      
        LocalizedOptionDefinition moduleFromPlugin = new LocalizedOptionDefinition(ScriptTask.OPTION_MODULEFROMPLUGIN, BooleanOptionType.INSTANCE, _bundleLoader);
        moduleFromPlugin.setDefaultValue("false");
        options.addOption(moduleFromPlugin);
       
        LocalizedOptionDefinition database = new LocalizedOptionDefinition(ScriptTask.OPTION_DATABASE, new RuntimeDatabasesOptionType(_registry, RuntimeDatabasesOptionType.SELECTION_CONTENT_STORES), _bundleLoader);
        database.addDependentOption(ScriptTask.OPTION_MODULEFROMPLUGIN, Boolean.FALSE.toString());
        options.addOption(database);
       
        LocalizedOptionDefinition plugindb = new LocalizedOptionDefinition(ScriptTask.OPTION_PLUGINDB, new RuntimeDatabasesOptionType(_registry, RuntimeDatabasesOptionType.SELECTION_PLUGIN_DATABASES), _bundleLoader);
        plugindb.addDependentOption(ScriptTask.OPTION_MODULEFROMPLUGIN, Boolean.TRUE.toString());
        options.addOption(plugindb);
       
        LocalizedOptionDefinition module = new LocalizedOptionDefinition(ScriptTask.OPTION_MODULE, StringOptionType.INSTANCE, _bundleLoader);
        options.addOption(module);
       
        return options;
       
    }
View Full Code Here

    public Class<? extends ModuleType> getModuleType() {
        return DatabaseServerModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
        return new OptionDefinitionsMap();
    }
View Full Code Here

        return ContentStoreModuleType.class;
    }

    @Override
    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        PredefinedValuesOptionType csVersionType = new PredefinedValuesOptionType(getGenericLoader(), WGDatabase.COPTION_CONTENT_STORE_VERSION);
        csVersionType.addValue(String.valueOf(WGDatabase.CSVERSION_WGA3));
        csVersionType.addValue(String.valueOf(WGDatabase.CSVERSION_WGA4_1));
        csVersionType.addValue(String.valueOf(WGDatabase.CSVERSION_WGA5));
        LocalizedOptionDefinition csVersion = new LocalizedOptionDefinition(WGDatabase.COPTION_CONTENT_STORE_VERSION, csVersionType, getGenericLoader());
        csVersion.setOptional(true);
        csVersion.setExpert(true);
        options.addOption(csVersion);
       
        LocalizedOptionDefinition projectMode = new LocalizedOptionDefinition(WGDatabase.COPTION_PROJECTMODE, BooleanOptionType.INSTANCE, getGenericLoader());
        projectMode.setOptional(true);
        projectMode.setDefaultValue(Boolean.FALSE.toString());
        options.addOption(projectMode);
       
        LocalizedOptionDefinition designProviderTypes = new LocalizedOptionDefinition(WGDatabase.COPTION_DESIGNPROVIDERTYPES, CommaSeparatedListOptionType.INSTANCE, getGenericLoader());
        designProviderTypes.setOptional(true);
        designProviderTypes.setExpert(true);
        designProviderTypes.setDefaultValue(WGDocument.TYPENAME_FILECONTAINER + "," + WGDocument.TYPENAME_CSSJS + "," + WGDocument.TYPENAME_TML);
        options.addOption(designProviderTypes);
       
        LocalizedOptionDefinition autoApprove = new LocalizedOptionDefinition(WGDatabase.COPTION_AUTOAPPROVE, BooleanOptionType.INSTANCE, getGenericLoader());
        autoApprove.setOptional(true);
        autoApprove.setDefaultValue(Boolean.TRUE.toString());
        options.addOption(autoApprove);
       
        LocalizedOptionDefinition wfEngine = new LocalizedOptionDefinition(WGDatabase.COPTION_WORKFLOWENGINE, new WorkflowEngineOptionType(getRegistry()), getGenericLoader());
        wfEngine.setOptional(true);
        wfEngine.setExpert(true);
        options.addOption(wfEngine);
       
        LocalizedOptionDefinition pageReaders = new LocalizedOptionDefinition(WGDatabase.COPTION_PAGEREADERS_ENABLED, BooleanOptionType.INSTANCE, getGenericLoader());
        pageReaders.setOptional(true);
        pageReaders.setExpert(true);
        pageReaders.setDefaultValue(Boolean.TRUE.toString());
        options.addOption(pageReaders);
       
       
        options.putAll(super.getOptionDefinitions());
       
        return options;
    }
View Full Code Here

        return ContentDatabaseModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
       
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition className = new LocalizedOptionDefinition(Database.OPTION_PATH, ClassNameOptionType.INSTANCE, _bundleLoader);
        options.addOption(className);
       
        LocalizedOptionDefinition jarFile = new LocalizedOptionDefinition(BeanAdapter.COPTION_BEAN_JARFILE, StringOptionType.INSTANCE, _bundleLoader);
        jarFile.setOptional(true);
        options.addOption(jarFile);
       
        LocalizedOptionDefinition creationHandler = new LocalizedOptionDefinition(BeanAdapter.COPTION_CREATION_HANDLER, StringOptionType.INSTANCE, _bundleLoader);
        creationHandler.setOptional(true);
        options.addOption(creationHandler);
       
        PredefinedValuesOptionType oneBeanPerType = new PredefinedValuesOptionType(_bundleLoader, BeanAdapter.COPTION_ONE_BEAN_PER);
        oneBeanPerType.addValue(BeanAdapter.COPTION_ONE_BEAN_PER_DB);
        oneBeanPerType.addValue(BeanAdapter.COPTION_ONE_BEAN_PER_REQUEST);
        oneBeanPerType.addValue(BeanAdapter.COPTION_ONE_BEAN_PER_USER);
        LocalizedOptionDefinition oneBeanPer = new LocalizedOptionDefinition(BeanAdapter.COPTION_ONE_BEAN_PER, oneBeanPerType, _bundleLoader);
        oneBeanPer.setOptional(true);
        oneBeanPer.setDefaultValue(BeanAdapter.COPTION_ONE_BEAN_PER_REQUEST);
        options.addOption(oneBeanPer);

        options.putAll(super.getOptionDefinitions());       
       
        return options;
    }
View Full Code Here

    private LocalisationBundleLoader _genericLoader = new LocalisationBundleLoader(WGUtils.getPackagePath(GenericContentDatabaseModuleDefinition.class) + "/genericdb", getClass().getClassLoader());
    private ModuleRegistry _registry; 

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition allowCacheMaintenance = new LocalizedOptionDefinition(WGDatabase.COPTION_ALLOWCACHEMAINTENANCE, BooleanOptionType.INSTANCE, _genericLoader);
        allowCacheMaintenance.setOptional(true);
        allowCacheMaintenance.setDefaultValue(Boolean.TRUE.toString());
        allowCacheMaintenance.setExpert(true);
        options.addOption(allowCacheMaintenance);
       
        LocalizedOptionDefinition deletionCheck = new LocalizedOptionDefinition(WGDatabase.COPTION_DELETIONCHECK, BooleanOptionType.INSTANCE, _genericLoader);
        deletionCheck.setOptional(true);
        deletionCheck.setDefaultValue(Boolean.FALSE.toString());
        deletionCheck.setExpert(true);
        options.addOption(deletionCheck);
       

        LocalizedOptionDefinition listCacheRebuildThreshold = new LocalizedOptionDefinition(WGDatabase.COPTION_LIST_CACHE_REBUILD_THRESHOLD, IntegerOptionType.INSTANCE, _genericLoader);
        listCacheRebuildThreshold.setOptional(true);
        listCacheRebuildThreshold.setExpert(true);
        listCacheRebuildThreshold.setDefaultValue(Integer.toString(10));
        options.addOption(listCacheRebuildThreshold);

        LocalizedOptionDefinition updateTimeout = new LocalizedOptionDefinition(WGDatabase.COPTION_UPDATETIMEOUT, IntegerOptionType.INSTANCE, _genericLoader);
        updateTimeout.setOptional(true);
        updateTimeout.setDefaultValue(Integer.toString(5));
        updateTimeout.setExpert(true);
        options.addOption(updateTimeout);
       
        LocalizedOptionDefinition caching = new LocalizedOptionDefinition(WGDatabase.COPTION_CACHING_ENABLED, BooleanOptionType.INSTANCE, _genericLoader);
        caching.setOptional(true);
        caching.setDefaultValue(Boolean.TRUE.toString());
        caching.setExpert(true);
        options.addOption(caching);
       
        LocalizedOptionDefinition maxCores = new LocalizedOptionDefinition(WGDatabase.COPTION_MAXCORES, IntegerOptionType.INSTANCE, _genericLoader);
        maxCores.setOptional(true);
        maxCores.setDefaultValue(Integer.toString(1000));
        maxCores.setExpert(true);
        options.addOption(maxCores);
       
        LocalizedOptionDefinition monitorLastChange = new LocalizedOptionDefinition(WGDatabase.COPTION_MONITORLASTCHANGE, BooleanOptionType.INSTANCE, _genericLoader);
        monitorLastChange.setOptional(true);
        monitorLastChange.setDefaultValue(Boolean.TRUE.toString());
        monitorLastChange.setExpert(true);
        options.addOption(monitorLastChange);
       
        PredefinedValuesOptionType noItemBehaviourProvider = new PredefinedValuesOptionType(_genericLoader, WGDatabase.COPTION_NOITEMBEHAVIOUR);
        noItemBehaviourProvider.addValue("default");
        noItemBehaviourProvider.addValue("compatible");
        LocalizedOptionDefinition noItemBehaviour = new LocalizedOptionDefinition(WGDatabase.COPTION_NOITEMBEHAVIOUR, noItemBehaviourProvider, _genericLoader);
        noItemBehaviour.setOptional(true);
        noItemBehaviour.setExpert(true);
        noItemBehaviour.setDefaultValue("default");
        options.addOption(noItemBehaviour);
       
        LocalizedOptionDefinition userCacheLatency = new LocalizedOptionDefinition(WGDatabase.COPTION_USERCACHELATENCY, IntegerOptionType.INSTANCE, _genericLoader);
        userCacheLatency.setOptional(true);
        userCacheLatency.setExpert(true);
        userCacheLatency.setDefaultValue("30");
        options.addOption(userCacheLatency);
       
        /* Currently unusable, since mixed usage of certauth and regular logins not possible in the same domain (DBLoginInfo conflict of credential types)
        LocalizedOptionDefinition certAuth = new LocalizedOptionDefinition(WGDatabase.COPTION_DISABLE_CERTAUTH, BooleanOptionType.INSTANCE, _genericLoader);
        certAuth.setOptional(true);
        certAuth.setDefaultValue(Boolean.FALSE.toString());
View Full Code Here

public abstract class GenericPersonalisationDatabaseModuleDefinition implements ModuleDefinition {

    private LocalisationBundleLoader _genericLoader = new LocalisationBundleLoader(WGUtils.getPackagePath(GenericPersonalisationDatabaseModuleDefinition.class) + "/genericpers", getClass().getClassLoader())

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        PredefinedValuesOptionType csVersionType = new PredefinedValuesOptionType(_genericLoader, WGDatabase.COPTION_CONTENT_STORE_VERSION);
        csVersionType.addValue(String.valueOf(WGDatabase.CSVERSION_WGA3));
        csVersionType.addValue(String.valueOf(WGDatabase.CSVERSION_WGA5));
        LocalizedOptionDefinition csVersion = new LocalizedOptionDefinition(WGDatabase.COPTION_CONTENT_STORE_VERSION, csVersionType, _genericLoader);
        csVersion.setOptional(true);
        csVersion.setExpert(true);
        options.addOption(csVersion);
       
        LocalizedOptionDefinition deletionCheck = new LocalizedOptionDefinition(WGDatabase.COPTION_DELETIONCHECK, BooleanOptionType.INSTANCE, _genericLoader);
        deletionCheck.setOptional(true);
        deletionCheck.setExpert(true);
        deletionCheck.setDefaultValue(Boolean.FALSE.toString());
        options.addOption(deletionCheck);

        LocalizedOptionDefinition caching = new LocalizedOptionDefinition(WGDatabase.COPTION_CACHING_ENABLED, BooleanOptionType.INSTANCE, _genericLoader);
        caching.setOptional(true);
        caching.setExpert(true);
        caching.setDefaultValue(Boolean.TRUE.toString());
        options.addOption(caching);
       
        PredefinedValuesOptionType noItemBehaviourProvider = new PredefinedValuesOptionType(_genericLoader, WGDatabase.COPTION_NOITEMBEHAVIOUR);
        noItemBehaviourProvider.addValue("default");
        noItemBehaviourProvider.addValue("compatible");
        LocalizedOptionDefinition noItemBehaviour = new LocalizedOptionDefinition(WGDatabase.COPTION_NOITEMBEHAVIOUR, noItemBehaviourProvider, _genericLoader);
        noItemBehaviour.setOptional(true);
        noItemBehaviour.setExpert(true);
        noItemBehaviour.setDefaultValue("default");
        options.addOption(noItemBehaviour);
       
        return options;
    }
View Full Code Here

        return ContentDatabaseModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
       
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition proxy = new LocalizedOptionDefinition(SimpleRSS.COPTION_PROXY, StringOptionType.INSTANCE, _bundleLoader);
        proxy.setOptional(true);
        options.addOption(proxy);
       
        LocalizedOptionDefinition proxyDomain = new LocalizedOptionDefinition(SimpleRSS.COPTION_PROXY_DOMAIN, StringOptionType.INSTANCE, _bundleLoader);
        proxyDomain.setOptional(true);
        proxyDomain.setExpert(true);
        proxyDomain.addDependentOption(SimpleRSS.COPTION_PROXY);
        options.addOption(proxyDomain);
       
        LocalizedOptionDefinition proxyCredentials = new LocalizedOptionDefinition(SimpleRSS.COPTION_PROXY_CREDENTIALS, StringOptionType.INSTANCE, _bundleLoader);
        proxyCredentials.setOptional(true);
        proxyCredentials.addDependentOption(SimpleRSS.COPTION_PROXY);
        options.addOption(proxyCredentials);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;
       
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.modules.OptionDefinitionsMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.