Examples of PlugInConfig


Examples of com.khorn.terraincontrol.configuration.PluginConfig

        customObjectManager = new CustomObjectManager();
        biomeManagers = new BiomeModeManager();

        // Do pluginConfig loading and then log anything that happened
        // LogManager and PluginConfig are now decoupled, thank the lord!
        pluginConfig = new PluginConfig(new FileSettingsReader("PluginConfig", new File(getTCDataFolder(),
                PluginStandardValues.ConfigFilename)));
        FileSettingsWriter.writeToFile(pluginConfig, pluginConfig.SettingsMode);
        logger.setLevel(pluginConfig.getLogLevel().getLevel());

        // Fire start event
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.config.PluginConfig

    @Override
    public void load() throws IOException {
        super.load();
        if (pluginConfig == null) {
            PluginConfig conf = new PluginConfig();
            if (config != null) {
                conf.setNumberOfReceivingWorkerThreads(config.getNumberOfReceivingWorkerThreads());
                conf.setNumberOfSendingWorkerThreads(config.getNumberOfSendingWorkerThreads());
            }
            pluginConfig = conf;
        }
        if (servers.isEmpty()) {
            if (config != null) { //have loaded data in old format, so add a new server with the old config to the list.
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginConfig

            _initACL = initACL;
           
            _initDisabled = false;
            if (_db.getDbReference().startsWith(PluginConfig.PLUGIN_DBKEY_PREFIX)) {
                if (_info != null && _info.getCsConfig() != null && _info.getCsConfig().getPluginConfig() != null) {
                    PluginConfig pc = _info.getCsConfig().getPluginConfig();
                    if (pc instanceof de.innovationgate.wga.common.beans.csconfig.v3.PluginConfig) {
                        _initDisabled = ((de.innovationgate.wga.common.beans.csconfig.v3.PluginConfig) pc).isDisablePluginInit();
                    }
                }
            }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginConfig

        getRuntimeContext().setReconnect(reconnectDatabase);
    }
   
    public String getPluginHomepage() {
       
        PluginConfig pc = getCsConfig().getPluginConfig();
       
        if (!pc.isUsageAsContentStore()) {
            return null;
        }
       
        String ph = pc.getPluginHomepage();
        if (ph != null && !ph.trim().equals("")) {
            return ph;
        }
       
        PublisherOption option = getCsConfig().findPublisherOption(WGACore.DBATTRIB_HOME_PAGE);
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginConfig

                db.getSessionContext().setTask("Initializing database in WGA");
               
                // Plugin dbs are always CS5 since they are automatically migrated
                //getLog().info("Database of plugin " + plugin.getPluginID().getUniqueName() + " is content store version " + db.getContentStoreVersion());
               
                PluginConfig pc = plugin.getCsConfig().getPluginConfig();
                String auth = pc.getAuthentication();
                db.setTitle(pc.getTitle());
               
               
                // Set mandatory database attributes
                initializeDBAttributes(db, dbKey, dbKey, new HashSet());
               
                // Create authentication
                if (auth != null) {
                    String authImplClass = null;
                    Map<String,String> authOptions = new HashMap<String, String>();
                   
                    // Delegate authentication to the default domain
                    if (auth.equals(PluginConfig.AUTHSOURCE_DEFAULT_DOMAIN)) {
                        authImplClass = WGAAuthModuleFactory.AUTHMODULE_DELEGATE;
                        authOptions.put(DelegatingAuthModule.COPTION_DOMAIN, "default");
                    }
                    // Use some plugin for authentication
                    else {
                        WGAPlugin authPlugin = plugin.getParent().getPluginByUniqueName(auth);
                    if (authPlugin != null) {
                        authImplClass = CSAuthModule.class.getName();
                        authOptions.put(CSAuthModule.COPTION_DBKEY, authPlugin.buildDatabaseKey());
                    }
                    else {
                            getLog().error("Unable to find authentication plugin " + auth);
                        }
                    }
                   
                    if (authImplClass != null) {
                        AuthenticationModule authModule = WGFactory.getAuthModuleFactory().getAuthModule(authImplClass, authOptions, db);
                        db.setAuthenticationModule(authModule);
                    }
                   
                }
               
                // Enforce some plugin settings via db attributes
                db.setAttribute(DBATTRIB_PERSMODE, String.valueOf(pc.getPersonalisationMode()));
                db.setAttribute(DBATTRIB_PERSSTATMODE, String.valueOf(Constants.PERSSTATMODE_SESSION));
                db.setAttribute(DBATTRIB_PLUGIN_FILETIME, new Long(plugin.getFileLastModified()));
                db.setAttribute(DBATTRIB_PLUGIN_ID, plugin.getPluginID());
                db.setAttribute(DBATTRIB_PLUGIN_VERSION, plugin.getPluginID().getVersion());
               
                if (!pc.isUsageAsContentStore()) {
                    db.setAttribute(DBATTRIB_ALLOW_PUBLISHING, "false");
                }
               
                if (!pc.isShowOnStartPage()) {
                    db.setAttribute(DBATTRIB_STARTPAGE, "false");
                }
   
                // Configure design provider
                DesignReference ref = new DesignReference(Constants.DESIGNCOL_PLUGIN, plugin.getInstallationKey(), null);
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginConfig

    public boolean hasPluginConfig() {
        return _csConfig.getPluginConfig() != null;
    }

    public void createPluginConfig() {
        PluginConfig config =  PluginConfig.instantiatePluginConfigForCompliance(_csConfig.getVersionCompliance());
        config.getId().getVersion().setBuildVersion(1);
        if (getVersionCompliance() != null) {
            Version minWGAVersion = VERSIONCOMPLIANCE_TO_WGA_VERSION.get(getVersionCompliance().getKey());
            if (minWGAVersion != null) {
                config.setMinimumWGAVersion(minWGAVersion);
            }
           
            // OpenWGA 5.0 requires java 1.5
            if (minWGAVersion.isAtLeast(5, 0)) {
                config.setMinimumJavaVersion(new Version("1.5.0"));
            }
        }
       
        config.setPersonalisationMode(Constants.PERSMODE_AUTO);
       
        _csConfig.setPluginConfig(config);

        loadPluginVersionProperties();
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginConfig

            }
        }

        if (hasPluginConfig()) {
            // Validate plugin id
            PluginConfig pc = _csConfig.getPluginConfig();
            PluginID id = pc.getId();

            errors.addAll(validatePluginUniqueName(getPluginUniqueName()));

            // Validate plugin dependencies
            Iterator<PluginID> dependencies = pc.getDependencies().iterator();
            while (dependencies.hasNext()) {
                PluginID did = (PluginID) dependencies.next();
                if (did.getUniqueName() == null || did.getUniqueName().trim().equals("")) {
                    errors.add(new ValidationError("Unique name of plugin dependency should not be empty.", new String[] { "pluginDependencies" }));
                }
                else if (did.getUniqueName().contains(" ")) {
                    errors.add(new ValidationError("Unique name of plugin dependency should not contain white spaces.", new String[] { "pluginDependencies" }));
                }
            }

            // Validate relation between minimum WGA version and WGA
            // compatibility version
            float minimumWGAVersion = Float.valueOf(pc.getMinimumWGAVersion().getMajorVersion() + "." + pc.getMinimumWGAVersion().getMinorVersion());
            float compatibilityWGAVersion = Float.valueOf(_csConfig.getVersionCompliance().substring(3));
            if (minimumWGAVersion < compatibilityWGAVersion) {
                errors.add(new ValidationError("The minimum WGA version in plugin configuration is lower than the version chosen in 'Developed for WGA version'", new String[] { "pluginWGAVersion",
                        "versionCompliance" }));
            }
View Full Code Here

Examples of de.innovationgate.wga.common.beans.csconfig.v1.PluginConfig

           
            CSConfig correctVersionCSConfig = CSConfig.instantiateCSConfigForCompliance(_csConfig.getVersionCompliance());
            BeanUtils.copyProperties(correctVersionCSConfig, _csConfig);
           
            if (_csConfig.getPluginConfig() != null) {
                PluginConfig correctVersionPluginConfig = PluginConfig.instantiatePluginConfigForCompliance(_csConfig.getVersionCompliance());
                BeanUtils.copyProperties(correctVersionPluginConfig, _csConfig.getPluginConfig());
                correctVersionCSConfig.setPluginConfig(correctVersionPluginConfig);
            }
                       
            _csConfig = correctVersionCSConfig;
View Full Code Here

Examples of de.odysseus.calyxo.control.conf.PluginConfig

    log.debug("Initializing plugins");
    PluginsConfig pluginsConfig = config.getPluginsConfig();
    if (pluginsConfig != null) {
      Iterator pluginConfigs = pluginsConfig.getPluginConfigs();
      while (pluginConfigs.hasNext()) {
        PluginConfig pluginConfig = (PluginConfig)pluginConfigs.next();
        log.debug("Initializing plugin " + pluginConfig.getClassName());
        Class c = context.getClassLoader().loadClass(pluginConfig.getClassName());
        Plugin plugin = (Plugin)c.newInstance();
        plugin.init(pluginConfig, pluginContext);
        plugins.add(plugin);
      }
    }
View Full Code Here

Examples of org.apache.struts.config.PlugInConfig

    protected void initModulePlugIns(ModuleConfig config)
    throws ServletException
    {
        boolean needTilesProcessor = false;
        PlugInConfig plugInConfigs[] = config.findPlugInConfigs();
        for ( int i = 0; !needTilesProcessor && i < plugInConfigs.length; i++ )
        {
            Class pluginClass = null;
            try
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.