@throws PageException
8051
private void doUpdateDefaultPassword() throws PageException {
	try {
	    admin.updateDefaultPassword(getString("admin", action, "newPassword"));
	}
	catch (Exception e) {
	    throw Caster.toPageException(e);
	}
	store();
    }
962633
public void actionUpload() throws PageException {
	FormItem item = getFormItem(pageContext, filefield);
	Struct cffile = _actionUpload(pageContext, securityManager, item, strDestination, nameconflict, accept, strict, mode, attributes, acl, serverPassword);
	if (StringUtil.isEmpty(result)) {
	    pageContext.undefinedScope().set(KeyConstants._file, cffile);
	    pageContext.undefinedScope().set("cffile", cffile);
	}
	else {
	    pageContext.setVariable(result, cffile);
	}
    }
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);
    }
1045703
private void doGetScope() throws PageException {
	String sessionType = AppListenerUtil.toSessionType(config.getSessionType(), "application");
	String localMode = AppListenerUtil.toLocalMode(config.getLocalMode(), "classic");

	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	sct.set("allowImplicidQueryCall", Caster.toBoolean(config.allowImplicidQueryCall()));
	sct.set("mergeFormAndUrl", Caster.toBoolean(config.mergeFormAndURL()));

	sct.set("sessiontype", sessionType);
	sct.set("localmode", localMode);
	sct.set("sessionManagement", Caster.toBoolean(config.isSessionManagement()));
	sct.set("clientManagement", Caster.toBoolean(config.isClientManagement()));
	sct.set("domainCookies", Caster.toBoolean(config.isDomainCookies()));
	sct.set("clientCookies", Caster.toBoolean(config.isClientCookies()));
	sct.set("clientStorage", config.getClientStorage());
	sct.set("sessionStorage", config.getSessionStorage());
	sct.set("cgiReadonly", config.getCGIScopeReadonly());

	TimeSpan ts = config.getSessionTimeout();
	sct.set("sessionTimeout", ts);
	sct.set("sessionTimeout_day", Caster.toInteger(ts.getDay()));
	sct.set("sessionTimeout_hour", Caster.toInteger(ts.getHour()));
	sct.set("sessionTimeout_minute", Caster.toInteger(ts.getMinute()));
	sct.set("sessionTimeout_second", Caster.toInteger(ts.getSecond()));

	ts = config.getApplicationTimeout();
	sct.set("applicationTimeout", ts);
	sct.set("applicationTimeout_day", Caster.toInteger(ts.getDay()));
	sct.set("applicationTimeout_hour", Caster.toInteger(ts.getHour()));
	sct.set("applicationTimeout_minute", Caster.toInteger(ts.getMinute()));
	sct.set("applicationTimeout_second", Caster.toInteger(ts.getSecond()));

	ts = config.getClientTimeout();
	sct.set("clientTimeout", ts);
	sct.set("clientTimeout_day", Caster.toInteger(ts.getDay()));
	sct.set("clientTimeout_hour", Caster.toInteger(ts.getHour()));
	sct.set("clientTimeout_minute", Caster.toInteger(ts.getMinute()));
	sct.set("clientTimeout_second", Caster.toInteger(ts.getSecond()));

	// scope cascading type
	if (config.getScopeCascadingType() == Config.SCOPE_STRICT) sct.set("scopeCascadingType", "strict");
	else if (config.getScopeCascadingType() == Config.SCOPE_SMALL) sct.set("scopeCascadingType", "small");
	else if (config.getScopeCascadingType() == Config.SCOPE_STANDARD) sct.set("scopeCascadingType", "standard");
    }
1220998
@Override
    public Object get(PageContext pc, Collection.Key key) throws PageException {
	return get(key);
    }
127929
public function paginate()
    {
        try {
            $this->query = $this->query->paginate($this->getPaginationConfig());
        } catch (\Exception $e) {
            throw new QueryException($e);
        }
    }
250711
private void doGetDatasourceSetting() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	sct.set("psq", Caster.toBoolean(config.getPSQL()));
    }
474115
private void doUpdate() throws PageException, SearchException, IOException {
	// check attributes
	required("index", action, "collection", collection);
	required("index", action, "key", key);

	if (type == -1) type = (query == null) ? SearchIndex.TYPE_FILE : SearchIndex.TYPE_CUSTOM;

	if (type == SearchIndex.TYPE_CUSTOM) {
	    required("index", action, "body", body);
	    // required("index",action,"query",query);
	}
	IndexResult result;

	result = collection.index(pageContext, key, type, urlpath, title, body, language, extensions, query, recurse, categoryTree, category, timeout, custom1, custom2, custom3,
		custom4);
	if (!StringUtil.isEmpty(status)) pageContext.setVariable(status, toStruct(result));
    }
681052
private void doGetDevelopMode() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	sct.set("developMode", Caster.toBoolean(config.isDevelopMode()));
    }
236193
private void doGetAll() throws PageException {
	if (name == null) throw new ApplicationException("attribute name is required for tag registry, when action is [getAll]");

	try {
	    RegistryEntry[] entries = RegistryQuery.getValues(branch, type);
	    if (entries != null) {
		lucee.runtime.type.Query qry = new QueryImpl(new String[] { "entry", "type", "value" }, new String[] { "VARCHAR", "VARCHAR", "OTHER" }, entries.length, "query");
		for (int i = 0; i < entries.length; i++) {
		    RegistryEntry e = entries[i];
		    int row = i + 1;
		    qry.setAt(KeyConstants._entry, row, e.getKey());
		    qry.setAt(KeyConstants._type, row, RegistryEntry.toCFStringType(e.getType()));
		    qry.setAt(KeyConstants._value, row, e.getValue());
		}

		// sort
		if (sort != null) {
		    String[] arr = sort.toLowerCase().split(",");
		    for (int i = arr.length - 1; i >= 0; i--) {
			String[] col = arr[i].trim().split("\\s+");
			if (col.length == 1) qry.sort(KeyImpl.init(col[0].trim()));
			else if (col.length == 2) {
			    String order = col[1].toLowerCase().trim();
			    if (order.equals("asc")) qry.sort(KeyImpl.init(col[0]), lucee.runtime.type.Query.ORDER_ASC);
			    else if (order.equals("desc")) qry.sort(KeyImpl.init(col[0]), lucee.runtime.type.Query.ORDER_DESC);
			    else throw new ApplicationException("invalid order type [" + col[1] + "]");
			}
		    }
		}

		pageContext.setVariable(name, qry);
	    }
	}
	catch (Exception e) {
	    throw Caster.toPageException(e);
	}

    }
461282
public void setRequesttimeout(Object oRequesttimeout) throws PageException {
	if (StringUtil.isEmpty(oRequesttimeout)) return;
	this.requesttimeout = Caster.toLongValue(oRequesttimeout) * 1000L;
    }
1229224
private void doUpdateScope() throws PageException {

	admin.updateScopeCascadingType(getString("admin", action, "scopeCascadingType"));
	admin.updateAllowImplicidQueryCall(getBoolObject("admin", action, "allowImplicidQueryCall"));
	admin.updateMergeFormAndUrl(getBoolObject("admin", action, "mergeFormAndUrl"));
	admin.updateSessionManagement(getBoolObject("admin", action, "sessionManagement"));
	admin.updateClientManagement(getBoolObject("admin", action, "clientManagement"));
	admin.updateDomaincookies(getBoolObject("admin", action, "domainCookies"));
	admin.updateClientCookies(getBoolObject("admin", action, "clientCookies"));
	// admin.updateRequestTimeout(getTimespan("admin",action,"requestTimeout"));
	admin.updateClientTimeout(getTimespan("admin", action, "clientTimeout"));
	admin.updateSessionTimeout(getTimespan("admin", action, "sessionTimeout"));
	admin.updateClientStorage(getString("admin", action, "clientStorage"));
	admin.updateSessionStorage(getString("admin", action, "sessionStorage"));
	admin.updateApplicationTimeout(getTimespan("admin", action, "applicationTimeout"));
	admin.updateSessionType(getString("admin", action, "sessionType"));
	admin.updateLocalMode(getString("admin", action, "localMode"));
	admin.updateCGIReadonly(getBoolObject("admin", action, "cgiReadonly"));
	store();
	adminSync.broadcast(attributes, config);
    }
846089
private void doUpdateJavaCFX() throws PageException {
	String name = getString("admin", action, "name");
	if (StringUtil.startsWithIgnoreCase(name, "cfx_")) name = name.substring(4);
	lucee.runtime.db.ClassDefinition cd = new ClassDefinitionImpl(getString("admin", action, "class"), getString("bundleName", null), getString("bundleVersion", null),
		config.getIdentification());
	admin.updateJavaCFX(name, cd);
	store();
	adminSync.broadcast(attributes, config);
    }
9732
private void doGetDatasource() throws PageException {

	String name = getString("admin", action, "name");
	Map ds = config.getDataSourcesAsMap();
	Iterator it = ds.keySet().iterator();

	while (it.hasNext()) {
	    String key = (String) it.next();
	    if (key.equalsIgnoreCase(name)) {
		DataSource d = (DataSource) ds.get(key);
		Struct sct = new StructImpl();
		ClassDefinition cd = d.getClassDefinition();

		sct.setEL(KeyConstants._name, key);
		sct.setEL(KeyConstants._host, d.getHost());
		sct.setEL("classname", cd.getClassName());
		sct.setEL("class", cd.getClassName());
		sct.setEL("bundleName", cd.getName());
		sct.setEL("bundleVersion", cd.getVersionAsString());
		sct.setEL("dsn", d.getDsnOriginal());
		sct.setEL("database", d.getDatabase());
		sct.setEL("port", d.getPort() < 1 ? "" : Caster.toString(d.getPort()));
		sct.setEL("dsnTranslated", d.getDsnTranslated());
		sct.setEL("timezone", toStringTimeZone(d.getTimeZone()));
		sct.setEL("password", d.getPassword());
		sct.setEL("passwordEncrypted", ConfigWebUtil.encrypt(d.getPassword()));
		sct.setEL("username", d.getUsername());
		sct.setEL("readonly", Caster.toBoolean(d.isReadOnly()));
		sct.setEL("select", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_SELECT)));
		sct.setEL("delete", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_DELETE)));
		sct.setEL("update", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_UPDATE)));
		sct.setEL("insert", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_INSERT)));
		sct.setEL("create", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_CREATE)));
		sct.setEL("insert", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_INSERT)));
		sct.setEL("drop", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_DROP)));
		sct.setEL("grant", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_GRANT)));
		sct.setEL("revoke", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_REVOKE)));
		sct.setEL("alter", Boolean.valueOf(d.hasAllow(DataSource.ALLOW_ALTER)));

		sct.setEL("connectionLimit", d.getConnectionLimit() < 1 ? "-1" : Caster.toString(d.getConnectionLimit()));
		sct.setEL("connectionTimeout", d.getConnectionTimeout() < 1 ? "" : Caster.toString(d.getConnectionTimeout()));
		sct.setEL("metaCacheTimeout", Caster.toDouble(d.getMetaCacheTimeout()));
		sct.setEL("custom", d.getCustoms());
		sct.setEL("blob", Boolean.valueOf(d.isBlob()));
		sct.setEL("clob", Boolean.valueOf(d.isClob()));
		sct.setEL("validate", Boolean.valueOf(d.validate()));
		sct.setEL("storage", Boolean.valueOf(d.isStorage()));
		if (d instanceof DataSourceImpl) {
		    DataSourceImpl di = ((DataSourceImpl) d);
		    sct.setEL("literalTimestampWithTSOffset", Boolean.valueOf(di.getLiteralTimestampWithTSOffset()));
		    sct.setEL("alwaysSetTimeout", Boolean.valueOf(di.getAlwaysSetTimeout()));

		    sct.setEL("dbdriver", Caster.toString(di.getDbDriver(), ""));
		}
		pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
		return;
	    }
	}
	throw new ApplicationException("there is no datasource with name [" + name + "]");
    }
671668
public function assertCanCreateSitePage(
        SiteEntity $site,
        $pageName,
        $pageType
    ) {
        $allowDuplicates = $this->allowDuplicates($pageType);

        if ($allowDuplicates) {
            return;
        }

        $pageExists = $this->sitePageExists(
            $site,
            $pageName,
            $pageType
        );

        if (!$pageExists) {
            return;
        }

        throw new PageException(
            "Cannot create page: ({$pageName}). " .
            "Duplicate page names not allowed for name: ({$pageName}) type: ({$pageType}) siteId: " .
            '(' . $site->getSiteId() . ')'
        );
    }
866901
public static String call(PageContext pc, Object var, boolean serializeQueryByColumns) throws PageException {
	return _call(pc, var, serializeQueryByColumns, pc.getWebCharset());
    }
84128
public static Object invoke(String name, Object[] args) throws PageException {
	return invoke(null, name, args);
    }