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());