Search in sources :

Example 1 with DebugEntry

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

the class Admin method doGetDebugEntry.

private void doGetDebugEntry() throws PageException {
    DebugEntry[] entries = config.getDebugEntries();
    String rtn = getString("admin", action, "returnVariable");
    lucee.runtime.type.Query qry = new QueryImpl(new Collection.Key[] { KeyConstants._id, LABEL, IP_RANGE, READONLY, KeyConstants._type, CUSTOM }, entries.length, rtn);
    pageContext.setVariable(rtn, qry);
    DebugEntry de;
    for (int i = 0; i < entries.length; i++) {
        int row = i + 1;
        de = entries[i];
        qry.setAtEL(KeyConstants._id, row, de.getId());
        qry.setAtEL(LABEL, row, de.getLabel());
        qry.setAtEL(IP_RANGE, row, de.getIpRangeAsString());
        qry.setAtEL(KeyConstants._type, row, de.getType());
        qry.setAtEL(READONLY, row, Caster.toBoolean(de.isReadOnly()));
        qry.setAtEL(CUSTOM, row, de.getCustom());
    }
}
Also used : QueryImpl(lucee.runtime.type.QueryImpl) BundleCollection(lucee.loader.osgi.BundleCollection) Collection(lucee.runtime.type.Collection) DebugEntry(lucee.runtime.config.DebugEntry) Query(lucee.runtime.type.Query)

Aggregations

BundleCollection (lucee.loader.osgi.BundleCollection)1 DebugEntry (lucee.runtime.config.DebugEntry)1 Collection (lucee.runtime.type.Collection)1 Query (lucee.runtime.type.Query)1 QueryImpl (lucee.runtime.type.QueryImpl)1