Package de.innovationgate.webgate.api.modules.servers

Examples of de.innovationgate.webgate.api.modules.servers.DatabaseServerProperties


       
        return options;
    }

    public Object getProperties() {
        DatabaseServerProperties props = new DatabaseServerProperties();
        props.setSingleton(false);
        return props;
    }
View Full Code Here


        return options;

    }

    public Object getProperties() {
        DatabaseServerProperties props = new DatabaseServerProperties();
        props.setSingleton(false);
        return props;
    }
View Full Code Here

        return options;
       
    }

    public Object getProperties() {
        DatabaseServerProperties props = new DatabaseServerProperties();
        props.setSingleton(false);
        props.setAvailableInInitWizard(true);
        return props;
    }
View Full Code Here

        OptionDefinitionsMap options = new OptionDefinitionsMap();
        return options;
    }

    public Object getProperties() {
        DatabaseServerProperties props = new DatabaseServerProperties();
        props.setSingleton(true);
        props.setSingletonTitle("defaultserver.title");
        props.setSingletonTitleBundleLoader(_bundleLoader);
        props.setSingletonUID(WGAConfiguration.SINGLETON_SERVER_PREFIX + getImplementationClass());
        return props;
    }
View Full Code Here

       
        return options;
    }

    public Object getProperties() {
        DatabaseServerProperties props = new DatabaseServerProperties();
        props.setSingleton(false);
        return props;
    }
View Full Code Here

       
        // Add singleton servers
        Iterator<ModuleDefinition> singletons = getModuleRegistry().getModulesForType(DatabaseServerModuleType.class).values().iterator();
        while (singletons.hasNext()) {
            ModuleDefinition serverDefinition = singletons.next();
            DatabaseServerProperties properties = (DatabaseServerProperties) serverDefinition.getProperties();
            if (properties == null) {
                   getLog().error("Database server type '" + serverDefinition.getTitle(Locale.getDefault()) + "' (" + serverDefinition.getImplementationClass().getName() + ") is invalid, misses neccessary properties definition");
            }
            else if (properties.isSingleton()) {
                try {
                    serverDefinition.testDependencies();
                    WGDatabaseServer server = (WGDatabaseServer) getModuleRegistry().instantiate(serverDefinition);
                    server.init(WGAConfiguration.SINGLETON_SERVER_PREFIX + server.getClass().getName(), null, new HashMap<String,String>());
                    newServers.put(server.getUid(), server);
View Full Code Here

            logCategoryInfo("Database server types available in this runtime", 2);
            while (serverMods.hasNext()) {
                ModuleDefinition moduleDefinition = serverMods.next();
                try {
                    moduleDefinition.testDependencies();
                    DatabaseServerProperties props = (DatabaseServerProperties) moduleDefinition.getProperties();
                    if (props != null && props.isSingleton()) {
                        getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH) + " (Automatic instance)");
                    }
                    else {
                        getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                    }
                }
                catch (Exception e) {
                    dependencyFailures.put(moduleDefinition, e);
                }
            }
        }

        Iterator<ModuleDefinition> dbMods =  _moduleRegistry.getModulesForType(ContentStoreModuleType.class).values().iterator();
        if (dbMods.hasNext()) {
            logCategoryInfo("Content store types available in this runtime", 2);
            while (dbMods.hasNext()) {
                ModuleDefinition moduleDefinition = dbMods.next();
                try {
                    moduleDefinition.testDependencies();
                    getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                }
                catch (Exception e) {
                    dependencyFailures.put(moduleDefinition, e);
                }
            }
        }
       
        Iterator<ModuleDefinition> customdbMods =  _moduleRegistry.getModulesForType(ContentDatabaseModuleType.class).values().iterator();
        if (customdbMods.hasNext()) {
            logCategoryInfo("Other content database types available in this runtime", 2);
            while (customdbMods.hasNext()) {
                ModuleDefinition moduleDefinition = customdbMods.next();
                try {
                    moduleDefinition.testDependencies();
                    getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                }
                catch (Exception e) {
                    dependencyFailures.put(moduleDefinition, e);
                }
            }
        }
       
        Iterator<ModuleDefinition> persdbMods =  _moduleRegistry.getModulesForType(PersonalisationDatabaseModuleType.class).values().iterator();
        if (persdbMods.hasNext()) {
            logCategoryInfo("Personalisation database types available in this runtime", 2);
            while (persdbMods.hasNext()) {
                ModuleDefinition moduleDefinition = persdbMods.next();
                try {
                    moduleDefinition.testDependencies();
                    getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                }
                catch (Exception e) {
                    dependencyFailures.put(moduleDefinition, e);
                }
            }
        }
       
       
        Iterator<ModuleDefinition> authMods =  _moduleRegistry.getModulesForType(AuthenticationSourceModuleType.class).values().iterator();
        if (authMods.hasNext()) {
            logCategoryInfo("Authentication types available in this runtime", 2);
            while (authMods.hasNext()) {
                ModuleDefinition moduleDefinition = authMods.next();
                try {
                    moduleDefinition.testDependencies();
                    getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                }
                catch (Exception e) {
                    dependencyFailures.put(moduleDefinition, e);
                }
            }
        }
       
        Iterator<ModuleDefinition> wfMods =  _moduleRegistry.getModulesForType(WorkflowEngineModuleType.class).values().iterator();
        if (wfMods.hasNext()) {
            logCategoryInfo("Workflow engine types available in this runtime", 2);
            while (wfMods.hasNext()) {
                ModuleDefinition moduleDefinition = wfMods.next();
                try {
                    moduleDefinition.testDependencies();
                    getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                }
                catch (Exception e) {
                    dependencyFailures.put(moduleDefinition, e);
                }
            }
        }
       
        Iterator<ModuleDefinition> designMods =  _moduleRegistry.getModulesForType(DesignSourceModuleType.class).values().iterator();
        if (designMods.hasNext()) {
            logCategoryInfo("Design source types available in this runtime", 2);
            while (designMods.hasNext()) {
                ModuleDefinition moduleDefinition = designMods.next();
                try {
                    moduleDefinition.testDependencies();
                    DesignSourceProperties props = (DesignSourceProperties) moduleDefinition.getProperties();
                    if (props != null && props.isSingleton()) {
                        getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH) + " (Automatic instance)");
                    }
                    else {
                        getLog().info("- " + moduleDefinition.getTitle(Locale.ENGLISH));
                    }
View Full Code Here

            return _title;
        }
        else {
            ModuleDefinition serverDef = getModuleDefinition(getClass());
            if (serverDef != null) {
                DatabaseServerProperties props = (DatabaseServerProperties) serverDef.getProperties();
                if (props.isSingleton()) {
                    return props.getSingletonTitle(locale);
                }
            }
            return "(No name)";
        }
    }
View Full Code Here

   
    public boolean isSingleton() {

            ModuleDefinition serverDef = getModuleDefinition(getClass());
            if (serverDef != null) {
                DatabaseServerProperties props = (DatabaseServerProperties) serverDef.getProperties();
                return props.isSingleton();
            }
            else {
                return false;
            }
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.modules.servers.DatabaseServerProperties

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.