use of lucee.runtime.db.ClassDefinition 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.runtime.db.ClassDefinition 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.runtime.db.ClassDefinition 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.runtime.db.ClassDefinition in project Lucee by lucee.
the class Admin method doUpdateVideoExecuterClass.
private void doUpdateVideoExecuterClass() throws PageException {
ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
admin.updateVideoExecuterClass(cd);
store();
}
use of lucee.runtime.db.ClassDefinition in project Lucee by lucee.
the class Admin method doUpdateDefaultResourceProvider.
private void doUpdateDefaultResourceProvider() throws PageException {
ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null), config.getIdentification());
String arguments = getString("admin", action, "arguments");
admin.updateDefaultResourceProvider(cd, arguments);
store();
adminSync.broadcast(attributes, config);
}
Aggregations