Package de.innovationgate.wga.modules

Examples of de.innovationgate.wga.modules.ModuleAvailabilityException


   
    public void testAvailability(ModuleRegistry reg) throws ModuleAvailabilityException {
       
        WGACore core = (WGACore) reg.getContextObjects().get(WGACore.class);
        if (core == null) {
            throw new ModuleAvailabilityException("Cannot retrieve WGACore to test availability");
        }
       
        boolean csFound = false;
        for (WGDatabase db : core.getContentdbs().values()) {
            if (db.hasFeature(WGDatabase.FEATURE_FULLCONTENTFEATURES) && !db.getDbReference().startsWith(PluginConfig.PLUGIN_DBKEY_PREFIX) && db.getDesignProvider() == null) {
                csFound = true;
                break;
            }
        }
        if (!csFound) {
            throw new ModuleAvailabilityException("No WGA Content Store is connected that could be used as design provider");
        }
       
    }
View Full Code Here


    }

    public void testAvailability(ModuleRegistry reg) throws ModuleAvailabilityException {
        WGACore core = (WGACore) reg.getContextObjects().get(WGACore.class);
        if (core == null) {
            throw new ModuleAvailabilityException("Cannot retrieve WGACore to test availability");
        }
       
        boolean pluginFound = false;
        for (WGAPlugin plugin : core.getPluginSet().getPlugins()) {
            if (plugin.isActive() && plugin.isValid() && plugin.getCsConfig().getPluginConfig().isUsageAsDesignProvider()) {
                pluginFound = true;
                break;
            }
        }
        if (!pluginFound) {
            throw new ModuleAvailabilityException("No installed WGA Plugin offers designs");
        }
       
    }
View Full Code Here

    }

    public void testAvailability(ModuleRegistry reg) throws ModuleAvailabilityException {
        WGACore core = (WGACore) reg.getContextObjects().get(WGACore.class);
        if (core == null) {
            throw new ModuleAvailabilityException("Cannot retrieve WGACore to test availability");
        }
       
        boolean pluginFound = false;
        for (WGAPlugin plugin : core.getPluginSet().getPlugins()) {
            if (plugin.isActive() && plugin.isValid() && plugin.getCsConfig().getPluginConfig().isUsageAsAuthSource()) {
                pluginFound = true;
                break;
            }
        }
        if (!pluginFound) {
            throw new ModuleAvailabilityException("No installed WGA Plugin offers authentication services");
        }
       
    }
View Full Code Here

    public void testAvailability(ModuleRegistry reg) throws ModuleAvailabilityException {
       
        WGACore core = (WGACore) reg.getContextObjects().get(WGACore.class);
        if (core == null) {
            throw new ModuleAvailabilityException("Cannot retrieve WGACore to test availability");
        }
       
        boolean csFound = false;
        for (WGDatabase db : core.getContentdbs().values()) {
            if (db.hasFeature(WGDatabase.FEATURE_FULLCONTENTFEATURES) && !db.getDbReference().startsWith(PluginConfig.PLUGIN_DBKEY_PREFIX)) {
                csFound = true;
                break;
            }
        }
        if (!csFound) {
            throw new ModuleAvailabilityException("No WGA Content Store is connected that could be used as authentication source");
        }
       
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.modules.ModuleAvailabilityException

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.