@throws PageException
427930
private void doGetFLDs() throws PageException {
	lucee.runtime.type.Query qry = new QueryImpl(new String[] { "displayname", "namespace", "namespaceseparator", "shortname", "description", "uri", "source" },
		new String[] { "varchar", "varchar", "varchar", "varchar", "varchar", "varchar", "varchar" }, 0, "tlds");

	int dialect = "lucee".equalsIgnoreCase(getString("dialect", "cfml")) ? CFMLEngine.DIALECT_LUCEE : CFMLEngine.DIALECT_CFML;

	FunctionLib[] libs = config.getFLDs(dialect);
	for (int i = 0; i < libs.length; i++) {
	    qry.addRow();
	    qry.setAt("displayname", i + 1, libs[i].getDisplayName());
	    qry.setAt("namespace", i + 1, "");// TODO support for namespace
	    qry.setAt("namespaceseparator", i + 1, "");
	    qry.setAt("shortname", i + 1, libs[i].getShortName());
	    qry.setAt("description", i + 1, libs[i].getDescription());
	    qry.setAt("uri", i + 1, Caster.toString(libs[i].getUri()));
	    qry.setAt("source", i + 1, StringUtil.emptyIfNull(libs[i].getSource()));
	}
	pageContext.setVariable(getString("admin", action, "returnVariable"), qry);
    }
1290838
private void doRemoveMapping() throws PageException {
	admin.removeMapping(getString("admin", action, "virtual"));
	store();
	adminSync.broadcast(attributes, config);
    }
762143
public void setColumns(String columns) throws PageException {
	this.columns = ListUtil.toStringArray(ListUtil.listToArrayRemoveEmpty(columns, ","));
    }
1132022
private void doGetMapping() throws PageException {

	Mapping[] mappings = config.getMappings();
	Struct sct = new StructImpl();
	String virtual = getString("admin", action, "virtual");

	for (int i = 0; i < mappings.length; i++) {
	    MappingImpl m = (MappingImpl) mappings[i];
	    if (!m.getVirtual().equals(virtual)) continue;

	    sct.set("archive", m.getArchive());
	    sct.set("strarchive", m.getStrArchive());
	    sct.set("physical", m.getPhysical());
	    sct.set("strphysical", m.getStrPhysical());
	    sct.set("virtual", m.getVirtual());
	    sct.set(KeyConstants._hidden, Caster.toBoolean(m.isHidden()));
	    sct.set("physicalFirst", Caster.toBoolean(m.isPhysicalFirst()));
	    sct.set("readonly", Caster.toBoolean(m.isReadonly()));
	    sct.set("inspect", ConfigWebUtil.inspectTemplate(m.getInspectTemplateRaw(), ""));
	    sct.set("toplevel", Caster.toBoolean(m.isTopLevel()));

	    pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	    return;
	}
	throw new ApplicationException("there is no mapping with virtual [" + virtual + "]");
    }
935579
private void doUpdateDebug() throws PageException {

	admin.updateDebug(Caster.toBoolean(getString("debug", ""), null), Caster.toBoolean(getString("database", ""), null), Caster.toBoolean(getString("exception", ""), null),
		Caster.toBoolean(getString("tracing", ""), null), Caster.toBoolean(getString("dump", ""), null), Caster.toBoolean(getString("timer", ""), null),
		Caster.toBoolean(getString("implicitAccess", ""), null), Caster.toBoolean(getString("queryUsage", ""), null));

	admin.updateDebugTemplate(getString("admin", action, "debugTemplate"));
	store();
	adminSync.broadcast(attributes, config);
    }
834329
private void actionInfo() throws PageException {
	if (variable == null) throw new ApplicationException("attribute variable is not defined for tag file");
	pageContext.setVariable(variable, getInfo(pageContext, file, serverPassword));

    }
866901
public static String call(PageContext pc, Object var, boolean serializeQueryByColumns) throws PageException {
	return _call(pc, var, serializeQueryByColumns, pc.getWebCharset());
    }
50708
public void init(PageContext pageContext, ComponentPageImpl componentPage, boolean executeConstr) throws PageException {
	this.pageSource = componentPage.getPageSource();

	// extends
	if (!StringUtil.isEmpty(properties.extend)) {
	    base = ComponentLoader.searchComponent(pageContext, componentPage.getPageSource(), properties.extend, Boolean.TRUE, null, true, executeConstr);
	}
	else {
	    CIPage p = ((ConfigWebImpl) pageContext.getConfig()).getBaseComponentPage(pageSource.getDialect(), pageContext);
	    if (!componentPage.getPageSource().equals(p.getPageSource())) {
		base = ComponentLoader.loadComponent(pageContext, p, "Component", false, false, true, executeConstr);
	    }
	}

	if (base != null) {
	    this.dataMemberDefaultAccess = base.dataMemberDefaultAccess;
	    this._static = new StaticScope(base._static, this, componentPage, dataMemberDefaultAccess);
	    // this._triggerDataMember=base._triggerDataMember;
	    this.absFin = base.absFin;
	    _data = base._data;
	    _udfs = new HashMapPro<Key, UDF>(base._udfs);
	    setTop(this, base);
	}
	else {
	    this.dataMemberDefaultAccess = pageContext.getCurrentTemplateDialect() == CFMLEngine.DIALECT_CFML ? pageContext.getConfig().getComponentDataMemberDefaultAccess()
		    : Component.ACCESS_PRIVATE;
	    this._static = new StaticScope(null, this, componentPage, dataMemberDefaultAccess);
	    // TODO get per CFC setting
	    // this._triggerDataMember=pageContext.getConfig().getTriggerComponentDataMember();
	    _udfs = new HashMapPro<Key, UDF>();
	    _data = MapFactory.getConcurrentMap();
	}
	// implements
	if (!StringUtil.isEmpty(properties.implement)) {
	    if (absFin == null) absFin = new AbstractFinal();
	    absFin.add(InterfaceImpl.loadInterfaces(pageContext, getPageSource(), properties.implement));
	    // abstrCollection.implement(pageContext,getPageSource(),properties.implement);
	}

	/*
	 * print.e("--------------------------------------"); print.e(_getPageSource().getDisplayPath());
	 * print.e(abstrCollection.getUdfs());
	 */

	// scope
	useShadow = base == null ? (pageSource.getDialect() == CFMLEngine.DIALECT_CFML ? pageContext.getConfig().useComponentShadow() : false) : base.useShadow;
	if (useShadow) {
	    if (base == null) scope = new ComponentScopeShadow(this, MapFactory.getConcurrentMap());
	    else scope = new ComponentScopeShadow(this, (ComponentScopeShadow) base.scope, false);
	}
	else {
	    scope = new ComponentScopeThis(this);
	}
	initProperties();

	// invoke static constructor
	if (!componentPage._static.isInit()) {
	    componentPage._static.setInit(true);// this needs to happen before the call
	    try {
		componentPage.staticConstructor(pageContext, this);
	    }
	    catch (Throwable t) {
		ExceptionUtil.rethrowIfNecessary(t);
		componentPage._static.setInit(false);
		throw Caster.toPageException(t);
	    }
	}
    }
702798
private void doGetComponent() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	// Base Component
	try {
	    PageSource psCFML = config.getBaseComponentPageSource(CFMLEngine.DIALECT_CFML);

	    if (psCFML != null && psCFML.exists()) sct.set("baseComponentTemplateCFML", psCFML.getDisplayPath());
	    else sct.set("baseComponentTemplateCFML", "");
	}
	catch (PageException e) {
	    sct.set("baseComponentTemplateCFML", "");
	}
	try {
	    PageSource psLucee = config.getBaseComponentPageSource(CFMLEngine.DIALECT_LUCEE);

	    if (psLucee != null && psLucee.exists()) sct.set("baseComponentTemplateLucee", psLucee.getDisplayPath());
	    else sct.set("baseComponentTemplateLucee", "");

	}
	catch (PageException e) {
	    sct.set("baseComponentTemplateLucee", "");
	}
	sct.set("strBaseComponentTemplateCFML", config.getBaseComponentTemplate(CFMLEngine.DIALECT_CFML));
	sct.set("strBaseComponentTemplateLucee", config.getBaseComponentTemplate(CFMLEngine.DIALECT_LUCEE));

	// dump template
	try {
	    PageSource ps = ((PageContextImpl) pageContext).getPageSourceExisting(config.getComponentDumpTemplate());
	    if (ps != null) sct.set("componentDumpTemplate", ps.getDisplayPath());
	    else sct.set("componentDumpTemplate", "");
	}
	catch (PageException e) {
	    sct.set("componentDumpTemplate", "");
	}
	sct.set("strComponentDumpTemplate", config.getComponentDumpTemplate());

	sct.set("deepSearch", Caster.toBoolean(config.doComponentDeepSearch()));
	sct.set("componentDataMemberDefaultAccess", ComponentUtil.toStringAccess(config.getComponentDataMemberDefaultAccess()));
	sct.set("triggerDataMember", Caster.toBoolean(config.getTriggerComponentDataMember()));
	sct.set("useShadow", Caster.toBoolean(config.useComponentShadow()));
	sct.set("ComponentDefaultImport", config.getComponentDefaultImport());
	sct.set("componentLocalSearch", config.getComponentLocalSearch());
	sct.set("componentPathCache", config.useComponentPathCache());

    }
461282
public void setRequesttimeout(Object oRequesttimeout) throws PageException {
	if (StringUtil.isEmpty(oRequesttimeout)) return;
	this.requesttimeout = Caster.toLongValue(oRequesttimeout) * 1000L;
    }
840141
public static Object call(PageContext pc) throws PageException {
	Component ac = pc.getActiveComponent();
	if (ac != null) {
	    return call(pc, ac);
	}

	return new StructImpl();
    }
211596
public void initPage() throws CmsException {

        if ((m_page == null) && (m_cms != null)) {
            String requestUri = m_cms.getRequestContext().getUri();
            // get the container page itself, checking the history first
            CmsResource pageResource = (CmsResource)CmsHistoryResourceHandler.getHistoryResource(m_request);
            if (pageResource == null) {
                pageResource = m_cms.readResource(requestUri);
            }
            m_page = getPage(pageResource);
            m_page = CmsTemplateMapper.get(m_request).transformContainerpageBean(
                m_cms,
                m_page,
                pageResource.getRootPath());

        }
    }
1311287
private void doGetLocales() throws PageException {
	Struct sct = new StructImpl(StructImpl.TYPE_LINKED);
	// Array arr=new ArrayImpl();
	String strLocale = getString("locale", "english (united kingdom)");
	Locale locale = LocaleFactory.getLocale(strLocale);
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	Map locales = LocaleFactory.getLocales();
	Iterator it = locales.keySet().iterator();

	String key;
	Locale l;
	while (it.hasNext()) {
	    key = (String) it.next();
	    l = (Locale) locales.get(key);
	    sct.setEL(l.toString(), l.getDisplayName(locale));
	    // arr.append(locale.getDisplayName());
	}
	// arr.sort("textnocase","asc");
    }
362274
private function exception() : void
    {
        if ($this->response->getStatusCode() === Response::HTTP_FORBIDDEN) {
            throw ServiceException::invalidApiKey();
        }

        if ($this->response->getStatusCode() === Response::HTTP_UNPROCESSABLE_ENTITY) {
            throw ServiceException::invalidPayload();
        }

        if ($this->response->getStatusCode() === Response::HTTP_TOO_MANY_REQUESTS) {
            throw ServiceException::rateLimit();
        }

        if ($this->response->getStatusCode() === Response::HTTP_INTERNAL_SERVER_ERROR) {
            throw ServiceException::serverError();
        }

        throw ServiceException::generic();
    }
181374
private void actionDelete() throws PageException {
	checkFile(pageContext, securityManager, file, serverPassword, false, false, false, false);
	setACL(pageContext, file, acl);
	try {
	    if (!file.delete()) throw new ApplicationException("can't delete file [" + file + "]");
	}
	catch (Throwable t) {
	    ExceptionUtil.rethrowIfNecessary(t);
	    throw new ApplicationException(t.getMessage());
	}
    }
1350338
private Ref expoOp() throws PageException {
	Ref ref = unaryOp();

	while (cfml.isValidIndex() && (cfml.forwardIfCurrent('^') || cfml.forwardIfCurrent("exp"))) {
	    cfml.removeSpace();
	    ref = new Exp(ref, unaryOp(), limited);
	}
	return ref;
    }
220893
protected void showErrorPage(Object editor, Exception exception) throws JspException {

        // save initialized instance of the editor class in request attribute for included sub-elements
        getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, editor);

        // reading of file contents failed, show error dialog
        setAction(ACTION_SHOW_ERRORMESSAGE);
        setParamTitle(key(Messages.GUI_TITLE_EDIT_1, new Object[] {CmsResource.getName(getParamResource())}));
        if (exception != null) {
            getJsp().getRequest().setAttribute(ATTRIBUTE_THROWABLE, exception);
            if (CmsLog.getLog(editor).isWarnEnabled()) {
                CmsLog.getLog(editor).warn(exception.getLocalizedMessage(), exception);
            }
        }
        // include the common error dialog
        getJsp().include(FILE_DIALOG_SCREEN_ERRORPAGE);
    }