@throws PageException
332693
private void doUpdateSerial() throws PageException {
	admin.updateSerial(getString("admin", action, "serial"));
	store();
	pageContext.serverScope().reload();
    }
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());

        }
    }
917544
private void doGetDebug() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);

	sct.set(DEBUG, Caster.toBoolean(config.debug()));
	sct.set(KeyConstants._database, Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_DATABASE)));
	sct.set(KeyConstants._exception, Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_EXCEPTION)));
	sct.set("tracing", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_TRACING)));
	sct.set("dump", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_DUMP)));
	sct.set("timer", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_TIMER)));
	sct.set("implicitAccess", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_IMPLICIT_ACCESS)));
	sct.set("queryUsage", Caster.toBoolean(config.hasDebugOptions(ConfigImpl.DEBUG_QUERY_USAGE)));
    }
241239
private void doGetRegional() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	sct.set("locale", Caster.toString(config.getLocale()));
	sct.set("timezone", toStringTimeZone(config.getTimeZone()));
	sct.set("timeserver", config.getTimeServer());
	sct.set("usetimeserver", config.getUseTimeServer());
	// replaced with encoding outputsct.set("defaultencoding", config.get DefaultEncoding());
    }
1117662
public void start(Resource xmlFile) throws PageException {
	InputStream is = null;
	try {
	    XMLReader xmlReader = XMLUtil.createXMLReader();
	    xmlReader.setContentHandler(this);
	    xmlReader.setErrorHandler(this);
	    xmlReader.parse(new InputSource(is = IOUtil.toBufferedInputStream(xmlFile.getInputStream())));
	}
	catch (Exception e) {
	    throw Caster.toPageException(e);
	}
	finally {
	    IOUtil.closeEL(is);
	}

    }
179105
private void doUpdateRestMapping() throws PageException {
	admin.updateRestMapping(getString("admin", action, "virtual"), getString("admin", action, "physical"), getBool("admin", action, "default"));
	store();
	adminSync.broadcast(attributes, config);

	RestUtil.release(config.getRestMappings());
    }
983888
public void setType(String type) throws PageException {
	if (type == null) return;
	try {
	    this.type = toType(type);
	}
	catch (SearchException e) {
	    throw Caster.toPageException(e);
	}
    }
1264088
private void doVerifyDatasource() throws PageException {
	ClassDefinition cd = new ClassDefinitionImpl(Caster.toString(attributes.get("classname", null), null), Caster.toString(attributes.get("bundleName", null), null),
		Caster.toString(attributes.get("bundleVersion", null), null), config.getIdentification());

	String connStr = (String) attributes.get("connStr", null);
	if (StringUtil.isEmpty(connStr)) connStr = (String) attributes.get("dsn", null);
	if (cd.hasClass() && connStr != null) {
	    _doVerifyDatasource(cd, connStr, getString("admin", action, "dbusername"), getString("admin", action, "dbpassword"));
	}
	else {
	    _doVerifyDatasource(getString("admin", action, "name"), getString("admin", action, "dbusername"), getString("admin", action, "dbpassword"));
	}
    }
1119807
public void removeErrorPage(PageException pe) {
	// exception
	ErrorPage ep = getErrorPage(pe, ErrorPage.TYPE_EXCEPTION);
	if (ep != null) {
	    pages.remove(ep);
	    hasChanged = true;
	}
	// request
	ep = getErrorPage(pe, ErrorPage.TYPE_REQUEST);
	if (ep != null) {
	    pages.remove(ep);
	    hasChanged = true;
	}
	// validation
	ep = getErrorPage(pe, ErrorPage.TYPE_VALIDATION);
	if (ep != null) {
	    pages.remove(ep);
	    hasChanged = true;
	}

    }
1111828
private void doUpdateMailServer() throws PageException {

	admin.updateMailServer(getInt("id", -1), getString("admin", action, "hostname"), getString("admin", action, "dbusername"), getString("admin", action, "dbpassword"),
		Caster.toIntValue(getString("admin", action, "port")), getBoolV("tls", false), getBoolV("ssl", false), toTimeout(getObject("life", null), 1000 * 60 * 5),
		toTimeout(getObject("idle", null), 1000 * 60 * 5), getBoolV("reuseConnection", true)

	);
	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));

    }
452300
private void error(PageException pe) {
	if (error == null) throw new PageRuntimeException(pe);
	try {
	    pc = ThreadLocalPageContext.get(pc);
	    error.call(pc, new Object[] { pe.getCatchBlock(pc.getConfig()) }, false);
	}
	catch (PageException e) {}
    }
1304157
private void doGetTLDs() throws PageException {
	lucee.runtime.type.Query qry = new QueryImpl(
		new String[] { "displayname", "namespace", "namespaceseparator", "shortname", "type", "description", "uri", "elclass", "elBundleName", "elBundleVersion",
			"source" },
		new String[] { "varchar", "varchar", "varchar", "varchar", "varchar", "varchar", "varchar", "varchar", "varchar", "varchar", "varchar" }, 0, "tlds");

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

	TagLib[] libs = config.getTLDs(dialect);
	for (int i = 0; i < libs.length; i++) {
	    qry.addRow();
	    qry.setAt("displayname", i + 1, libs[i].getDisplayName());
	    qry.setAt("namespace", i + 1, libs[i].getNameSpace());
	    qry.setAt("namespaceseparator", i + 1, libs[i].getNameSpaceSeparator());
	    qry.setAt("shortname", i + 1, libs[i].getShortName());
	    qry.setAt("type", i + 1, libs[i].getType());
	    qry.setAt("description", i + 1, libs[i].getDescription());
	    qry.setAt("uri", i + 1, Caster.toString(libs[i].getUri()));
	    qry.setAt("elclass", i + 1, libs[i].getELClassDefinition().getClassName());
	    qry.setAt("elBundleName", i + 1, libs[i].getELClassDefinition().getName());
	    qry.setAt("elBundleVersion", i + 1, libs[i].getELClassDefinition().getVersionAsString());
	    qry.setAt("source", i + 1, StringUtil.emptyIfNull(libs[i].getSource()));
	}
	pageContext.setVariable(getString("admin", action, "returnVariable"), qry);
    }
84128
public static Object invoke(String name, Object[] args) throws PageException {
	return invoke(null, name, args);
    }
1163053
public PageResult<Entity> page(Connection conn, Entity where, Page page) throws SQLException {
		return this.page(conn, null, where, page);
	}
127929
public function paginate()
    {
        try {
            $this->query = $this->query->paginate($this->getPaginationConfig());
        } catch (\Exception $e) {
            throw new QueryException($e);
        }
    }
1244432
void setPage(Page page) {
		synchronized(lock) {
			checkNotFrozen();
			if(this.page != null) throw new IllegalStateException("element already has a page: " + this);
			this.page = page;
		}
		assert checkPageAndParentElement();
	}