Package de.innovationgate.wga.modules.options

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


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


        mappingResource.setOptional(true);
        mappingResource.setExpert(true);
        mappingResource.setDefaultValue(WGDatabaseImpl.HIBERNATE_V5_MAPPING_FILE);
        options.addOption(mappingResource);
       
        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);
View Full Code Here

    }

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        PredefinedValuesOptionType crossloginType = new PredefinedValuesOptionType(_bundleLoader, DBDesignProvider.OPTION_CROSSLOGINMODE);
        crossloginType.addValue(WGAXML.DESIGNSHARING_MODE_ANONYMOUS);
        crossloginType.addValue(WGAXML.DESIGNSHARING_MODE_PARALLEL);
       
        LocalizedOptionDefinition crosslogin = new LocalizedOptionDefinition(DBDesignProvider.OPTION_CROSSLOGINMODE, crossloginType, _bundleLoader);
        crosslogin.setOptional(true);
        crosslogin.setDefaultValue(WGAXML.DESIGNSHARING_MODE_ANONYMOUS);
        options.addOption(crosslogin);
View Full Code Here

        allowBrowsing.setOptional(true);
        allowBrowsing.setExpert(true);
        allowBrowsing.setDefaultValue(Boolean.TRUE.toString());
        options.addOption(allowBrowsing);
       
        PredefinedValuesOptionType browsingSecurityOptionType = new PredefinedValuesOptionType(_bundleLoader, WGACore.DBATTRIB_BROWSING_SECURITY);
        browsingSecurityOptionType.addValue(String.valueOf(BrowsingSecurity.FULL_ACCESS));
        browsingSecurityOptionType.addValue(String.valueOf(BrowsingSecurity.NO_AUTHORING));
        browsingSecurityOptionType.addValue(String.valueOf(BrowsingSecurity.NO_BROWSING));
        LocalizedOptionDefinition browsingSecurity = new LocalizedOptionDefinition(WGACore.DBATTRIB_BROWSING_SECURITY, browsingSecurityOptionType, _bundleLoader);
        browsingSecurity.setOptional(true);
        browsingSecurity.setDefaultValue(String.valueOf(BrowsingSecurity.FULL_ACCESS));
        options.addOption(browsingSecurity);
       
View Full Code Here

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

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

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

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

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

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

TOP

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

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.