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);
}
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();
}
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);
}
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);
}
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);
}
Aggregations