Search in sources :

Example 6 with Password

use of lucee.runtime.config.Password in project Lucee by lucee.

the class CacheRegionRemove method _call.

static String _call(PageContext pc, String cacheName, String strWebAdminPassword) throws PageException {
    Password webAdminPassword = CacheUtil.getPassword(pc, strWebAdminPassword, false);
    try {
        XMLConfigAdmin adminConfig = XMLConfigAdmin.newInstance((ConfigWebImpl) pc.getConfig(), webAdminPassword);
        adminConfig.removeCacheConnection(cacheName);
        adminConfig.storeAndReload();
    } catch (Exception e) {
        throw Caster.toPageException(e);
    }
    return null;
}
Also used : XMLConfigAdmin(lucee.runtime.config.XMLConfigAdmin) FunctionException(lucee.runtime.exp.FunctionException) PageException(lucee.runtime.exp.PageException) Password(lucee.runtime.config.Password)

Aggregations

Password (lucee.runtime.config.Password)6 PageException (lucee.runtime.exp.PageException)4 XMLConfigAdmin (lucee.runtime.config.XMLConfigAdmin)3 FunctionException (lucee.runtime.exp.FunctionException)3 ConfigWebImpl (lucee.runtime.config.ConfigWebImpl)2 SecurityException (lucee.runtime.exp.SecurityException)2 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 Resource (lucee.commons.io.res.Resource)1 FileResourceProvider (lucee.commons.io.res.type.file.FileResourceProvider)1 ConfigImpl (lucee.runtime.config.ConfigImpl)1 ConfigServer (lucee.runtime.config.ConfigServer)1 ApplicationException (lucee.runtime.exp.ApplicationException)1 DeprecatedException (lucee.runtime.exp.DeprecatedException)1 SMTPException (lucee.runtime.net.mail.SMTPException)1 Mapping (lucee.runtime.rest.Mapping)1 ClassDefinitionImpl (lucee.transformer.library.ClassDefinitionImpl)1 BundleException (org.osgi.framework.BundleException)1