Package de.innovationgate.wgpublisher

Examples of de.innovationgate.wgpublisher.WGACore$WGAConfigurationOptionReader


    WGSessionContext sc = database.getSessionContext();
    String username = sc.getUser();
    String password = sc.getPassword();
   
    Iterator dbs = null;
    WGACore wgaCore = helper.getCore();
    List allDBs = new ArrayList(wgaCore.getContentdbs().values());
       
    Collections.sort(allDBs , new dbComparator());
    WGFactory.getInstance().closeSessions();
 
    dbs = allDBs.iterator();
View Full Code Here


        _usage = usage;
    }


    public OptionValueProvider getValueProvider(WGAConfiguration configCopy) {
        WGACore core = (WGACore) _registry.getContextObjects().get(WGACore.class);
        return new PluginsOptionValueProvider(core, _usage);
    }
View Full Code Here

        _reg = reg;
    }

    public List<String> getProvidedValues() {
       
        WGACore core = (WGACore) _reg.getContextObjects().get(WGACore.class);
        if (core != null) {
            return core.getEncodingFormatterNames();
        }
        else {
            return new ArrayList<String>();
        }
       
View Full Code Here

    public void testDependencies() throws ModuleDependencyException {
    }
   
    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;
            }
        }
View Full Code Here

    public MediaKeyValueProvider(ModuleRegistry reg) {
        _reg = reg;
    }

    public List<String> getProvidedValues() {
        WGACore core = (WGACore) _reg.getContextObjects().get(WGACore.class);
        if (core != null) {
            return new ArrayList<String>(core.getMediaKeys());
        }
        else {
            return new ArrayList<String>();
        }
    }
View Full Code Here

            return new ArrayList<String>();
        }
    }

    public String getValueTitle(String value, Locale locale) {
        WGACore core = (WGACore) _reg.getContextObjects().get(WGACore.class);
        if (core != null) {
            MediaKey key = core.getMediaKey(value);
            if (key != null) {
                return value + " (" + key.getMimeType() + ")";
            }
        }
View Full Code Here

    public void testDependencies() throws ModuleDependencyException {
    }

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

        catch (ModuleDependencyException e) {
            throw new ServletException("License check failed" ,e);
        }
       
        WGAFilterConfig wgaFc = (WGAFilterConfig) fc;
        WGACore core = WGACore.retrieve(wgaFc.getServletContext());
       
        try {
            String protocolServlet = fc.getInitParameter(PARAM_PROTOCOL_SERVLET);
            if (protocolServlet == null) {
                throw new IllegalDataException("Internal error: No protocol servlet passed to SOAP filter");
            }
           
            Class servletClass = core.getLibraryLoader().loadClass(protocolServlet);
            _servlet = (HttpServlet) servletClass.newInstance();
            ServletConfig sc = new WGAServicesSOAPServletConfig(fc.getServletContext());
            _servlet.init(sc);
        }
        catch (Exception e) {
View Full Code Here

        de.innovationgate.wgpublisher.scheduler.Job job = (de.innovationgate.wgpublisher.scheduler.Job) dataMap.get("Job");
        if (job == null) {
            throw new JobExecutionException("Job does not exist");
        }
       
        WGACore core = (WGACore) dataMap.get("WGACore");

        Thread.currentThread().setName(("WGA Scheduler running Job '" + job.getName() + "'"));
        try {
            job.run(core, null, arg0, null);
        }
View Full Code Here

    }

    public void addWarning(String msg, boolean severe) {

       
        WGACore core = tmlContext.getwgacore();
        if (!core.getWgaConfiguration().isWarningsEnabled()) {
            return;
        }

        PageContext pageContext = tmlContext.getEnvironment().getPageContext();
        ArrayList warnings = (ArrayList) pageContext.getAttribute(Base.class.getName() + ":Warnings", PageContext.REQUEST_SCOPE);
        if (warnings == null) {
            warnings = new ArrayList();
            pageContext.setAttribute(Base.class.getName() + ":Warnings", warnings, PageContext.REQUEST_SCOPE);
        }
       
        Warning warning = new Warning(this, tmlContext, msg, severe);
        warnings.add(warning);

        if (core.getWgaConfiguration().isWarningsOutputOnConsole()) {
            core.getLog().warn(warning.getConsoleText());
        }

        if (severe == true) {
             cancelTag = true;
        }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.WGACore$WGAConfigurationOptionReader

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.