use of lucee.runtime.exp.SecurityException in project Lucee by lucee.
the class XMLConfigAdmin method updateComponentLocalSearch.
public void updateComponentLocalSearch(Boolean componentLocalSearch) throws SecurityException {
checkWriteAccess();
boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
if (!hasAccess)
throw new SecurityException("no access to update component Local Search");
Element scope = _getRootElement("component");
scope.setAttribute("local-search", Caster.toString(componentLocalSearch, ""));
}
use of lucee.runtime.exp.SecurityException in project Lucee by lucee.
the class XMLConfigAdmin method updateComponentDefaultImport.
public void updateComponentDefaultImport(String componentDefaultImport) throws SecurityException {
checkWriteAccess();
boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
if (!hasAccess)
throw new SecurityException("no access to update component setting");
// config.resetBaseComponentPage();
Element scope = _getRootElement("component");
// if(baseComponent.trim().length()>0)
scope.setAttribute("component-default-import", componentDefaultImport);
}
use of lucee.runtime.exp.SecurityException in project Lucee by lucee.
the class XMLConfigAdmin method updateMergeFormAndUrl.
public void updateMergeFormAndUrl(Boolean merge) throws SecurityException {
checkWriteAccess();
boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
if (!hasAccess)
throw new SecurityException("no access to update scope setting");
Element scope = _getRootElement("scope");
scope.setAttribute("merge-url-form", Caster.toString(merge, ""));
}
use of lucee.runtime.exp.SecurityException in project Lucee by lucee.
the class XMLConfigAdmin method updateScopeCascadingType.
/**
* sets the scope cascading type
* @param type (ServletConfigImpl.SCOPE_XYZ)
* @throws SecurityException
*/
public void updateScopeCascadingType(String type) throws SecurityException {
checkWriteAccess();
boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
if (!hasAccess)
throw new SecurityException("no access to update scope setting");
Element scope = _getRootElement("scope");
if (type.equalsIgnoreCase("strict"))
scope.setAttribute("cascading", "strict");
else if (type.equalsIgnoreCase("small"))
scope.setAttribute("cascading", "small");
else if (type.equalsIgnoreCase("standard"))
scope.setAttribute("cascading", "standard");
else
scope.setAttribute("cascading", "standard");
}
use of lucee.runtime.exp.SecurityException in project Lucee by lucee.
the class XMLConfigAdmin method updateCustomTagLocalSearch.
public void updateCustomTagLocalSearch(boolean customTagLocalSearch) throws SecurityException {
checkWriteAccess();
if (!ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_CUSTOM_TAG))
throw new SecurityException("no access to update custom tag setting");
Element element = _getRootElement("custom-tag");
element.setAttribute("custom-tag-local-search", Caster.toString(customTagLocalSearch));
}
Aggregations