Search in sources :

Example 1 with ClassDefinitionImpl

use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.

the class Admin method doUpdateExecutionLog.

private void doUpdateExecutionLog() throws PageException {
    lucee.runtime.db.ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
    admin.updateExecutionLog(cd, getStruct("admin", "updateExecutionLog", "arguments"), getBool("admin", "updateExecutionLog", "enabled"));
    store();
    adminSync.broadcast(attributes, config);
}
Also used : ClassDefinition(lucee.runtime.db.ClassDefinition) ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl)

Example 2 with ClassDefinitionImpl

use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.

the class Admin method doUpdateLogSettings.

private void doUpdateLogSettings() throws PageException {
    String str = getString("admin", "UpdateLogSettings", "level", true);
    Level l = Log4jUtil.toLevel(str, null);
    if (l == null)
        throw new ApplicationException("invalid log level name [" + str + "], valid log level names are [INFO,DEBUG,WARN,ERROR,FATAL,TRACE]");
    ClassDefinition acd = new ClassDefinitionImpl(getString("admin", action, "appenderClass", true), getString("appenderBundleName", null), getString("appenderBundleVersion", null), config.getIdentification());
    ClassDefinition lcd = new ClassDefinitionImpl(getString("admin", action, "layoutClass", true), getString("layoutBundleName", null), getString("layoutBundleVersion", null), config.getIdentification());
    admin.updateLogSettings(getString("admin", "UpdateLogSettings", "name", true), l, acd, Caster.toStruct(getObject("admin", "UpdateLogSettings", "appenderArgs")), lcd, Caster.toStruct(getObject("admin", "UpdateLogSettings", "layoutArgs")));
    store();
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ApplicationException(lucee.runtime.exp.ApplicationException) Level(org.apache.log4j.Level) ClassDefinition(lucee.runtime.db.ClassDefinition)

Example 3 with ClassDefinitionImpl

use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.

the class Admin method doVerifyJavaCFX.

private void doVerifyJavaCFX() throws PageException {
    String name = getString("admin", action, "name");
    ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
    admin.verifyJavaCFX(name, cd);
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClassDefinition(lucee.runtime.db.ClassDefinition)

Example 4 with ClassDefinitionImpl

use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.

the class Admin method doUpdateResourceProvider.

private void doUpdateResourceProvider() throws PageException {
    ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
    String scheme = getString("admin", action, "scheme");
    Struct sctArguments = getStruct("arguments", null);
    if (sctArguments != null) {
        admin.updateResourceProvider(scheme, cd, sctArguments);
    } else {
        String strArguments = getString("admin", action, "arguments");
        admin.updateResourceProvider(scheme, cd, strArguments);
    }
    // admin.updateResourceProvider(scheme,clazz,arguments);
    store();
    adminSync.broadcast(attributes, config);
}
Also used : ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl) ClassDefinition(lucee.runtime.db.ClassDefinition) Struct(lucee.runtime.type.Struct)

Example 5 with ClassDefinitionImpl

use of lucee.transformer.library.ClassDefinitionImpl in project Lucee by lucee.

the class Admin method doUpdateJavaCFX.

/**
 * @throws PageException
 */
private void doUpdateJavaCFX() throws PageException {
    String name = getString("admin", action, "name");
    if (StringUtil.startsWithIgnoreCase(name, "cfx_"))
        name = name.substring(4);
    lucee.runtime.db.ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
    admin.updateJavaCFX(name, cd);
    store();
    adminSync.broadcast(attributes, config);
}
Also used : ClassDefinition(lucee.runtime.db.ClassDefinition) ClassDefinitionImpl(lucee.transformer.library.ClassDefinitionImpl)

Aggregations

ClassDefinitionImpl (lucee.transformer.library.ClassDefinitionImpl)33 ClassDefinition (lucee.runtime.db.ClassDefinition)26 Element (org.w3c.dom.Element)9 ApplicationException (lucee.runtime.exp.ApplicationException)8 PageException (lucee.runtime.exp.PageException)6 IOException (java.io.IOException)5 BundleException (org.osgi.framework.BundleException)5 MalformedURLException (java.net.MalformedURLException)4 lucee.aprint (lucee.aprint)4 ClassException (lucee.commons.lang.ClassException)4 SecurityException (lucee.runtime.exp.SecurityException)4 Struct (lucee.runtime.type.Struct)4 InvocationTargetException (java.lang.reflect.InvocationTargetException)3 HashMap (java.util.HashMap)3 LinkedHashMap (java.util.LinkedHashMap)3 Map (java.util.Map)3 Entry (java.util.Map.Entry)3 DumpWriterEntry (lucee.runtime.dump.DumpWriterEntry)3 ExpressionException (lucee.runtime.exp.ExpressionException)3 GatewayEntry (lucee.runtime.gateway.GatewayEntry)3