Package de.innovationgate.wga.modules

Examples of de.innovationgate.wga.modules.OptionDefinitionsMap


        return ContentDatabasePublisherOptionsCollector.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
       
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition defItemEncoding = new LocalizedOptionDefinition(WGACore.DBATTRIB_DEFAULT_ITEM_ENCODING, new ItemEncodingOptionType(_registry), _bundleLoader);
        defItemEncoding.setOptional(true);
        defItemEncoding.setDefaultValue("none");
        options.addOption(defItemEncoding);
       
        LocalizedOptionDefinition maxQueryResults = new LocalizedOptionDefinition(WGACore.DBATTRIB_MAXQUERYRESULTS, IntegerOptionType.INSTANCE, _bundleLoader);
        maxQueryResults.setOptional(true);
        maxQueryResults.setDefaultValue(String.valueOf(WGACore.DEFAULT_QUERY_MAXRESULTS));
        options.addOption(maxQueryResults);
       
        LocalizedOptionDefinition queryDefault = new LocalizedOptionDefinition(WGACore.DBATTRIB_QUERY_DEFAULT, StringOptionType.INSTANCE, _bundleLoader);
        queryDefault.setOptional(true);
        options.addOption(queryDefault);
       
        LocalizedOptionDefinition persMode = new LocalizedOptionDefinition(WGACore.DBATTRIB_PERSMODE, PersonalisationModesOptionType.INSTANCE, _bundleLoader);
        persMode.setOptional(true);
        persMode.setDefaultValue(String.valueOf(Constants.PERSMODE_AUTO));
        options.addOption(persMode);
       
        LocalizedOptionDefinition persStatMode = new LocalizedOptionDefinition(WGACore.DBATTRIB_PERSSTATMODE, PersonalisationStatisticModesOptionType.INSTANCE, _bundleLoader);
        persStatMode.setOptional(true);
        persStatMode.setDefaultValue(String.valueOf(Constants.PERSSTATMODE_OFF));
        persStatMode.addDependentOption(WGACore.DBATTRIB_PERSMODE);
        options.addOption(persStatMode);
       
        LocalizedOptionDefinition fcThreshold = new LocalizedOptionDefinition(WGACore.DBATTRIB_FILECACHE_THRESHOLD, IntegerOptionType.INSTANCE, _bundleLoader);
        fcThreshold.setOptional(true);
        fcThreshold.setExpert(true);
        fcThreshold.setDefaultValue(String.valueOf(Constants.DEFAULT_FILECACHE_THRESHOLD));
        options.addOption(fcThreshold);
       
        LocalizedOptionDefinition fcEntries = new LocalizedOptionDefinition(WGACore.DBATTRIB_FILECACHE_ENTRIES, IntegerOptionType.INSTANCE, _bundleLoader);
        fcEntries.setOptional(true);
        fcEntries.setExpert(true);
        fcEntries.setDefaultValue(String.valueOf(Constants.DEFAULT_FILECACHE_ENTRIES));
        options.addOption(fcEntries);
       
        LocalizedOptionDefinition fcExpiration = new LocalizedOptionDefinition(WGACore.DBATTRIB_FILEEXPIRATION_MINUTES, IntegerOptionType.INSTANCE, _bundleLoader);
        fcExpiration.setOptional(true);
        fcExpiration.setExpert(true);
        fcExpiration.setDefaultValue("10");
        options.addOption(fcExpiration);
       
        LocalizedOptionDefinition externalFileServingEnabled = new LocalizedOptionDefinition(WGACore.DBATTRIB_EXTERNAL_FILE_SERVING_ENABLED, BooleanOptionType.INSTANCE, _bundleLoader);
        externalFileServingEnabled.setOptional(true);
        externalFileServingEnabled.setExpert(true);
        externalFileServingEnabled.setDefaultValue("false");
        options.addOption(externalFileServingEnabled);
       
        return options;
       
    }
View Full Code Here


        return ContentStorePublisherOptionsModuleType.class;
    }

    @Override
    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        collectOptions(options, ContentDatabasePublisherOptionsCollector.class);
        collectOptions(options, ContentStorePublisherOptionsCollector.class);
       
        return options;
View Full Code Here

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

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition path = new LocalizedOptionDefinition(Database.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        path.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(path);
       
        LocalizedOptionDefinition jdbcPort = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_JDBCPORT, IntegerOptionType.INSTANCE, _bundleLoader);
        jdbcPort.setOptional(true);
        jdbcPort.setExpert(true);
        options.addOption(jdbcPort);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;

    }
View Full Code Here

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

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition name = new LocalizedOptionDefinition(DatabaseServer.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        name.setEmptyAllowedOverride(true);
        options.addOption(name);
       
        return options;
    }
View Full Code Here

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

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition path = new LocalizedOptionDefinition(Database.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        path.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(path);

        LocalizedOptionDefinition jndiPath = new LocalizedOptionDefinition(Database.OPTION_JNDI_PATH, StringOptionType.INSTANCE, _bundleLoader);
        jndiPath.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(jndiPath);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;

    }
View Full Code Here

    public Class<? extends Object> getImplementationClass() {
        return WGDatabaseImpl.class;
    }
   
    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition path = new LocalizedOptionDefinition(Database.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        path.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(path);

        LocalizedOptionDefinition jndiPath = new LocalizedOptionDefinition(Database.OPTION_JNDI_PATH, StringOptionType.INSTANCE, _bundleLoader);
        jndiPath.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(jndiPath);
       
        LocalizedOptionDefinition optFileHandlingQueryPaging = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_OPTIMIZED_FILE_HANDLING_DISABLEQUERYPAGING, BooleanOptionType.INSTANCE, _bundleLoader);
        optFileHandlingQueryPaging.setOptional(true);
        optFileHandlingQueryPaging.setExpert(true);
        optFileHandlingQueryPaging.setDefaultValue(Boolean.FALSE.toString());
        options.addOption(optFileHandlingQueryPaging);
       
        LocalizedOptionDefinition readerProfileCreation = new LocalizedOptionDefinition(WGDatabase.COPTION_READERPROFILECREATION, BooleanOptionType.INSTANCE, _bundleLoader);
        readerProfileCreation.setOptional(true);
        readerProfileCreation.setDefaultValue(Boolean.TRUE.toString());
        options.addOption(readerProfileCreation);
       
        PredefinedValuesOptionType hqlFetchType = new PredefinedValuesOptionType(_bundleLoader, WGDatabaseImpl.COPTION_HQL_FETCH_TYPE);
        hqlFetchType.addValue(WGDatabaseImpl.HQL_FETCHTYPE_LAZY);
        hqlFetchType.addValue(WGDatabaseImpl.HQL_FETCHTYPE_STRAIGHT);
        LocalizedOptionDefinition hqlFetch = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_HQL_FETCH_TYPE, hqlFetchType, _bundleLoader);
        hqlFetch.setOptional(true);
        hqlFetch.setExpert(true);
        hqlFetch.setDefaultValue(WGDatabaseImpl.HQL_FETCHTYPE_LAZY);
        options.addOption(hqlFetch);

        LocalizedOptionDefinition loadBalance = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_LOADBALANCE, BooleanOptionType.INSTANCE, _bundleLoader);
        loadBalance.setOptional(true);
        loadBalance.setExpert(true);
        loadBalance.setDefaultValue(Boolean.FALSE.toString());
        options.addOption(loadBalance);
       
        LocalizedOptionDefinition masterPersistenceTimeout = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_MASTERPERSISTENCE_TIMEOUT, IntegerOptionType.INSTANCE, _bundleLoader);
        masterPersistenceTimeout.setOptional(true);
        masterPersistenceTimeout.setExpert(true);
        masterPersistenceTimeout.setDefaultValue(String.valueOf(WGDatabaseImpl.DEFAULT_MASTERPERSISTENCE_TIMEOUT));
        masterPersistenceTimeout.addDependentOption(WGDatabaseImpl.COPTION_LOADBALANCE, Boolean.TRUE.toString());
        options.addOption(masterPersistenceTimeout);       
       
        LocalizedOptionDefinition showSQL = new LocalizedOptionDefinition("hibernate.show_sql", BooleanOptionType.INSTANCE, _bundleLoader);
        showSQL.setOptional(true);
        showSQL.setExpert(true);
        showSQL.setDefaultValue(Boolean.FALSE.toString());
        options.addOption(showSQL);
       
        LocalizedOptionDefinition jdbcBatchSize = new LocalizedOptionDefinition("hibernate.jdbc.batch_size", IntegerOptionType.INSTANCE, _bundleLoader);
        jdbcBatchSize.setOptional(true);
        jdbcBatchSize.setExpert(true);
        jdbcBatchSize.setDefaultValue("5");
        options.addOption(jdbcBatchSize);
       
        LocalizedOptionDefinition openPreparedStatements = new LocalizedOptionDefinition("hibernate.dbcp.maxOpenPreparedStatements", IntegerOptionType.INSTANCE, _bundleLoader);
        openPreparedStatements.setOptional(true);
        openPreparedStatements.setExpert(true);
        openPreparedStatements.setDefaultValue(WGDatabaseImpl.DEFAULT_MAXOPENPREPAREDSTATEMENTS);
        options.addOption(openPreparedStatements);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;
    }
View Full Code Here

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

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition path = new LocalizedOptionDefinition(Database.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        path.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(path);

        LocalizedOptionDefinition jndiPath = new LocalizedOptionDefinition(Database.OPTION_JNDI_PATH, StringOptionType.INSTANCE, _bundleLoader);
        jndiPath.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(jndiPath);
       
        LocalizedOptionDefinition refresh = new LocalizedOptionDefinition(JDBCSource.COPTION_REFRESH, IntegerOptionType.INSTANCE, _bundleLoader);
        refresh.setOptional(true);
        refresh.setDefaultValue("60");
        options.addOption(refresh);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;

    }
View Full Code Here

        return WGAServerOptionsModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition cacheWGAPI = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_CACHE_WGAPI_DATA_SIZE, IntegerOptionType.INSTANCE, _bundleLoader);
        cacheWGAPI.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_CACHE_WGAPI_DATA_SIZE);
        options.addOption(cacheWGAPI);
       
        LocalizedOptionDefinition cacheWebTML = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_CACHE_WEBTML_SIZE, IntegerOptionType.INSTANCE, _bundleLoader);
        cacheWebTML.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_CACHE_WEBTML_SIZE);
        options.addOption(cacheWebTML);
       
        LocalizedOptionDefinition staticExpiration = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_CACHE_STATIC_RESOURCES_EXPIRATION, IntegerOptionType.INSTANCE, _bundleLoader);
        staticExpiration.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_CACHE_STATIC_RESOURCES_EXPIRATION);
        staticExpiration.setOptional(true);
        options.addOption(staticExpiration);
       
        LocalizedOptionDefinition userCacheLatency = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_CACHE_USERCACHE_LATENCY, IntegerOptionType.INSTANCE, _bundleLoader);
        userCacheLatency.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_CACHE_USERCACHE_LATENCY);
        userCacheLatency.setOptional(true);
        options.addOption(userCacheLatency);
       
        LocalizedOptionDefinition fileServingEnabled = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_ENABLED, BooleanOptionType.INSTANCE, _bundleLoader);
        fileServingEnabled.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_EXTERNAL_FILE_SERVING_ENABLED);
        fileServingEnabled.setOptional(true);
        fileServingEnabled.setExpert(true);
        options.addOption(fileServingEnabled);
       
        LocalizedOptionDefinition fileServingDirectory = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_DIRECTORY, StringOptionType.INSTANCE, _bundleLoader);       
        fileServingDirectory.addDependentOption(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_ENABLED);
        fileServingDirectory.setExpert(true);
        options.addOption(fileServingDirectory);
       
        LocalizedOptionDefinition fileServingRootURL = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_ROOT_URL, StringOptionType.INSTANCE, _bundleLoader);       
        fileServingRootURL.addDependentOption(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_ENABLED);   
        fileServingRootURL.setExpert(true);
        options.addOption(fileServingRootURL);
       
        LocalizedOptionDefinition fileServingThreshold = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_THRESHOLD, IntegerOptionType.INSTANCE, _bundleLoader);       
        fileServingThreshold.setOptional(true);
        fileServingThreshold.setDefaultValue("5120");
        fileServingThreshold.addDependentOption(WGAConfiguration.SERVEROPTION_EXTERNAL_FILE_SERVING_ENABLED);
        fileServingThreshold.setExpert(true);
        options.addOption(fileServingThreshold);
       
        return options;
   
    }
View Full Code Here

        return WGAServerOptionsModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
       
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition serverName = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_SERVER_NAME, StringOptionType.INSTANCE, _bundleLoader);
        String defaultName;
        try {
            defaultName = InetAddress.getLocalHost().getCanonicalHostName();
        }
        catch (UnknownHostException e) {
            defaultName = "(unknown)";
        }
        serverName.setDefaultValue(defaultName);
        options.addOption(serverName);
       
        LocalizedOptionDefinition rootURL = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_ROOT_URL, new URLOptionType(), _bundleLoader);
        rootURL.setEmptyAllowedOverride(true);
        options.addOption(rootURL);
       
       
        return options;
       
    }
View Full Code Here

        return WGAServerOptionsModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {

        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition outputEncoding = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_ENCODING_OUTPUT, TextEncodingOptionType.INSTANCE, _bundleLoader);
        outputEncoding.setDefaultValue("UTF-8");
        options.addOption(outputEncoding);

        LocalizedOptionDefinition designEncoding = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_ENCODING_DESIGN, TextEncodingOptionType.INSTANCE, _bundleLoader);
        designEncoding.setDefaultValue("UTF-8");
        options.addOption(designEncoding);
       
        LocalizedOptionDefinition webTMLBuffer = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_WEBTML_OUTPUT_BUFFER, IntegerOptionType.INSTANCE, _bundleLoader);
        webTMLBuffer.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_WEBTML_OUTPUT_BUFFER);
        webTMLBuffer.setOptional(true);
        webTMLBuffer.setExpert(true);
        options.addOption(webTMLBuffer);
       
        LocalizedOptionDefinition webTMLHeader = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_WEBTML_HEADER, MultilineStringOptionType.INSTANCE, _bundleLoader);
        webTMLHeader.setOptional(true);
        options.addOption(webTMLHeader);
       
        LocalizedOptionDefinition pwdEncoding = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_SECURITY_PASSWORD_ENCODING, new PasswordEncodingsOptionType(_registry), _bundleLoader);
        pwdEncoding.setOptional(true);
        pwdEncoding.setExpert(true);
        pwdEncoding.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_SECURITY_PASSWORD_ENCODING);
        options.addOption(pwdEncoding);
       
        LocalizedOptionDefinition defaultDB = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_RESOURCES_DEFAULTDB, new DatabasesOptionType(_registry, true), _bundleLoader);
        defaultDB.setOptional(true);
        options.addOption(defaultDB);
       
        LocalizedOptionDefinition favicon = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_RESOURCES_FAVICON, StringOptionType.INSTANCE, _bundleLoader);
        favicon.setOptional(true);
        options.addOption(favicon);
       
        LocalizedOptionDefinition libraries = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_LIBRARIES, StringOptionType.INSTANCE, _bundleLoader);
        libraries.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_LIBRARIES);
        libraries.setOptional(true);
        libraries.setExpert(true);
        options.addOption(libraries);
       
        LocalizedOptionDefinition defaultWFE = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_DEFAULT_WORKFLOW_ENGINE, new WorkflowEngineOptionType(_registry), _bundleLoader);
        defaultWFE.setOptional(true);
        options.addOption(defaultWFE);
       
        LocalizedOptionDefinition permanentRedirect = new LocalizedOptionDefinition(WGAConfiguration.SERVEROPTION_PERMANENT_REDIRECT, BooleanOptionType.INSTANCE, _bundleLoader);
        permanentRedirect.setOptional(true);
        permanentRedirect.setExpert(true);
        permanentRedirect.setDefaultValue(WGAConfiguration.SERVEROPTIONDEFAULT_PERMANENT_REDIRECT);
        options.addOption(permanentRedirect);
       
        LocalizedOptionDefinition scalingThreshold = new LocalizedOptionDefinition(WGACore.SERVEROPTION_SERVER_SCALINGTHRESHOLD, IntegerOptionType.INSTANCE, _bundleLoader);
        scalingThreshold.setOptional(true);
        scalingThreshold.setDefaultValue("10");
        options.addOption(scalingThreshold);
       
        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.