Package de.innovationgate.wga.modules.options

Examples of de.innovationgate.wga.modules.options.LocalizedOptionDefinition


    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);
View Full Code Here


        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

    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

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition file = new LocalizedOptionDefinition(FileAuthenticationModule.AUTH_FILE, ServerFilePathOptionType.INSTANCE, _bundleLoader);
        options.addOption(file);
       
       
        return options;
   
View Full Code Here

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition dbKey = new LocalizedOptionDefinition(CSAuthModule.COPTION_DBKEY, new PluginsOptionType(_registry, PluginsOptionType.USAGE_AUTHSOURCE), _bundleLoader);
        options.addOption(dbKey);
       
        return options;
       
    }
View Full Code Here

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition collectCondition = new LocalizedOptionDefinition(CSAuthModule.COPTION_COLLECT_CONDITION, TMLScriptCodeOptionType.INSTANCE, _bundleLoader);
        collectCondition.setOptional(true);
        options.addOption(collectCondition);

        LocalizedOptionDefinition dbKey = new LocalizedOptionDefinition(CSAuthModule.COPTION_DBKEY, new DatabasesOptionType(_registry, true), _bundleLoader);
        options.addOption(dbKey);

        LocalizedOptionDefinition itemAliases = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_ALIASES, StringOptionType.INSTANCE, _bundleLoader);
        itemAliases.setOptional(true);
        itemAliases.setDefaultValue(CSAuthModule.DEFAULTITEM_USERALIASES);
        options.addOption(itemAliases);
       
        LocalizedOptionDefinition itemEmail = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_EMAIL, StringOptionType.INSTANCE, _bundleLoader);
        itemEmail.setOptional(true);
        itemEmail.setDefaultValue(CSAuthModule.DEFAULTITEM_EMAIL);
        options.addOption(itemEmail);
       
        LocalizedOptionDefinition itemEnabled = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_ENABLED, StringOptionType.INSTANCE, _bundleLoader);
        itemEnabled.setOptional(true);
        itemEnabled.setDefaultValue(CSAuthModule.DEFAULTITEM_ENABLED);
        options.addOption(itemEnabled);
       
        LocalizedOptionDefinition itemGroupmembers = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_GROUPMEMBERS, StringOptionType.INSTANCE, _bundleLoader);
        itemGroupmembers.setOptional(true);
        itemGroupmembers.setDefaultValue(CSAuthModule.DEFAULTITEM_MEMBERS);
        options.addOption(itemGroupmembers);
       
        LocalizedOptionDefinition itemGroupname = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_GROUPNAME, StringOptionType.INSTANCE, _bundleLoader);
        itemGroupname.setOptional(true);
        itemGroupname.setDefaultValue(CSAuthModule.DEFAULTITEM_GROUPNAME);
        options.addOption(itemGroupname);
       
        LocalizedOptionDefinition itemPassword = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_PASSWORD, StringOptionType.INSTANCE, _bundleLoader);
        itemPassword.setOptional(true);
        itemPassword.setDefaultValue(CSAuthModule.DEFAULTITEM_PASSWORD);
        options.addOption(itemPassword);
       
        LocalizedOptionDefinition itemUsername = new LocalizedOptionDefinition(CSAuthModule.COPTION_ITEM_USERNAME, StringOptionType.INSTANCE, _bundleLoader);
        itemUsername.setOptional(true);
        itemUsername.setDefaultValue(CSAuthModule.DEFAULTITEM_USERNAME);
        options.addOption(itemUsername);
       
        LocalizedOptionDefinition usersRoot = new LocalizedOptionDefinition(CSAuthModule.COPTION_ROOTDOC_USERS, StringOptionType.INSTANCE, _bundleLoader);
        usersRoot.setOptional(true);
        usersRoot.setDefaultValue(CSAuthModule.DEFAULT_USERSROOT);
        options.addOption(usersRoot);

        LocalizedOptionDefinition groupsRoot = new LocalizedOptionDefinition(CSAuthModule.COPTION_ROOTDOC_GROUPS, StringOptionType.INSTANCE, _bundleLoader);
        groupsRoot.setOptional(true);
        groupsRoot.setDefaultValue(CSAuthModule.DEFAULT_GROUPSROOT);
        options.addOption(groupsRoot);
       
        LocalizedOptionDefinition collectScript = new LocalizedOptionDefinition(CSAuthModule.COPTION_SCRIPT_COLLECT, TMLScriptCodeOptionType.INSTANCE, _bundleLoader);
        collectScript.setOptional(true);
        collectScript.setExpert(true);
        options.addOption(collectScript);
       
        LocalizedOptionDefinition labeledNames = new LocalizedOptionDefinition(CSAuthModule.COPTION_LABELED_NAMES, CommaSeparatedListOptionType.INSTANCE, _bundleLoader);
        labeledNames.setOptional(true);
        options.addOption(labeledNames);
       
        LocalizedOptionDefinition  certAuth = new LocalizedOptionDefinition(CSAuthModule.COPTION_CERTAUTH, BooleanOptionType.INSTANCE, _bundleLoader);
        certAuth.setOptional(true);
        certAuth.setExpert(true);
        options.addOption(certAuth);

        LocalizedOptionDefinition  ca = new LocalizedOptionDefinition(CSAuthModule.COPTION_CA, ServerFilePathOptionType.INSTANCE, _bundleLoader);
        ca.setExpert(true);
        ca.addDependentOption(CSAuthModule.COPTION_CERTAUTH);
        options.addOption(ca);
       
        LocalizedOptionDefinition  crl = new LocalizedOptionDefinition(CSAuthModule.COPTION_CRL, ServerFilePathOptionType.INSTANCE, _bundleLoader);
        crl.addDependentOption(CSAuthModule.COPTION_CA);
        crl.setExpert(true);
        crl.addDependentOption(CSAuthModule.COPTION_CERTAUTH);
        options.addOption(crl);

       
        return options;
       
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.modules.options.LocalizedOptionDefinition

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.