public final class AppListenerUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Collection.Key |
ACCESS_KEY_ID |
static Collection.Key |
ALLOW |
static Collection.Key |
AWS_SECRET_KEY |
static Collection.Key |
BLOB |
static Collection.Key |
CLOB |
static Collection.Key |
CONNECTION_LIMIT |
static Collection.Key |
CONNECTION_STRING |
static Collection.Key |
CONNECTION_TIMEOUT |
static Collection.Key |
DATABASE |
static Collection.Key |
DEFAULT_LOCATION |
static Collection.Key |
META_CACHE_TIMEOUT |
static Collection.Key |
READ_ONLY |
static Collection.Key |
STORAGE |
static Collection.Key |
TIMEZONE |
static int |
TYPE_ALL |
static int |
TYPE_CLASSIC |
static int |
TYPE_NEW |
Constructor and Description |
---|
AppListenerUtil() |
Modifier and Type | Method and Description |
---|---|
static PageSource |
getApplicationPageSource(PageContext pc,
PageSource requestedPage,
int mode,
int type,
RefBoolean isCFC) |
static PageSource |
getApplicationPageSourceCurrent(PageSource requestedPage,
int type,
RefBoolean isCFC) |
static PageSource |
getApplicationPageSourceCurrOrRoot(PageContext pc,
PageSource requestedPage,
int type,
RefBoolean isCFC) |
static PageSource |
getApplicationPageSourceCurrToRoot(PageContext pc,
PageSource requestedPage,
int type,
RefBoolean isCFC) |
static PageSource |
getApplicationPageSourceRoot(PageContext pc,
int type,
RefBoolean isCFC) |
static void |
setORMConfiguration(PageContext pc,
ApplicationContext ac,
Struct sct) |
static Mapping[] |
toComponentMappings(ConfigWeb cw,
Object o,
Resource source) |
static Mapping[] |
toComponentMappings(ConfigWeb cw,
Object o,
Resource source,
Mapping[] defaultValue) |
static Mapping[] |
toCustomTagMappings(ConfigWeb cw,
Object o,
Resource source) |
static Mapping[] |
toCustomTagMappings(ConfigWeb cw,
Object o,
Resource source,
Mapping[] defaultValue) |
static DataSource |
toDataSource(String name,
Struct data) |
static DataSource[] |
toDataSources(Object o) |
static DataSource[] |
toDataSources(Object o,
DataSource[] defaultValue) |
static Object |
toDefaultDatasource(Object o) |
static String |
toLocalMode(int mode,
String defaultValue) |
static int |
toLocalMode(Object oMode,
int defaultValue) |
static int |
toLocalMode(String strMode) |
static Mapping[] |
toMappings(ConfigWeb cw,
Object o,
Mapping[] defaultValue,
Resource source) |
static Mapping[] |
toMappings(ConfigWeb cw,
Object o,
Resource source) |
static Properties |
toS3(String accessKeyId,
String awsSecretKey,
String defaultLocation,
String host) |
static Properties |
toS3(Struct sct) |
static short |
toSessionType(String str) |
static short |
toSessionType(String str,
short defaultValue) |
static String |
toStringMode(int mode) |
static String |
toStringType(ApplicationListener listener) |
static String |
toWSType(short wstype,
String defaultValue) |
static short |
toWSType(String wstype) |
static short |
toWSType(String wstype,
short defaultValue) |
static String |
translateLoginStorage(int loginStorage) |
static int |
translateLoginStorage(String strLoginStorage) |
static int |
translateLoginStorage(String strLoginStorage,
int defaultValue) |
static String |
translateScriptProtect(int scriptProtect)
translate int definition of script protect to string definition
|
static int |
translateScriptProtect(String strScriptProtect)
translate string definition of script protect to int definition
|
public static final int TYPE_ALL
public static final int TYPE_NEW
public static final int TYPE_CLASSIC
public static final Collection.Key ACCESS_KEY_ID
public static final Collection.Key AWS_SECRET_KEY
public static final Collection.Key DEFAULT_LOCATION
public static final Collection.Key CONNECTION_STRING
public static final Collection.Key BLOB
public static final Collection.Key CLOB
public static final Collection.Key CONNECTION_LIMIT
public static final Collection.Key CONNECTION_TIMEOUT
public static final Collection.Key META_CACHE_TIMEOUT
public static final Collection.Key TIMEZONE
public static final Collection.Key ALLOW
public static final Collection.Key STORAGE
public static final Collection.Key READ_ONLY
public static final Collection.Key DATABASE
public AppListenerUtil()
public static PageSource getApplicationPageSource(PageContext pc, PageSource requestedPage, int mode, int type, RefBoolean isCFC)
public static PageSource getApplicationPageSourceCurrent(PageSource requestedPage, int type, RefBoolean isCFC)
public static PageSource getApplicationPageSourceRoot(PageContext pc, int type, RefBoolean isCFC)
public static PageSource getApplicationPageSourceCurrToRoot(PageContext pc, PageSource requestedPage, int type, RefBoolean isCFC)
public static PageSource getApplicationPageSourceCurrOrRoot(PageContext pc, PageSource requestedPage, int type, RefBoolean isCFC)
public static String toStringMode(int mode)
public static String toStringType(ApplicationListener listener)
public static DataSource[] toDataSources(Object o, DataSource[] defaultValue)
public static DataSource[] toDataSources(Object o) throws PageException, ClassException
PageException
ClassException
public static DataSource toDataSource(String name, Struct data) throws PageException, ClassException
PageException
ClassException
public static Mapping[] toMappings(ConfigWeb cw, Object o, Mapping[] defaultValue, Resource source)
public static Mapping[] toMappings(ConfigWeb cw, Object o, Resource source) throws PageException
PageException
public static Mapping[] toCustomTagMappings(ConfigWeb cw, Object o, Resource source) throws PageException
PageException
public static Mapping[] toCustomTagMappings(ConfigWeb cw, Object o, Resource source, Mapping[] defaultValue)
public static Mapping[] toComponentMappings(ConfigWeb cw, Object o, Resource source) throws PageException
PageException
public static Mapping[] toComponentMappings(ConfigWeb cw, Object o, Resource source, Mapping[] defaultValue)
public static String toLocalMode(int mode, String defaultValue)
public static int toLocalMode(Object oMode, int defaultValue)
public static int toLocalMode(String strMode) throws ApplicationException
ApplicationException
public static short toSessionType(String str, short defaultValue)
public static short toSessionType(String str) throws ApplicationException
ApplicationException
public static Properties toS3(Struct sct)
public static Properties toS3(String accessKeyId, String awsSecretKey, String defaultLocation, String host)
public static void setORMConfiguration(PageContext pc, ApplicationContext ac, Struct sct) throws PageException
PageException
public static String translateScriptProtect(int scriptProtect)
scriptProtect
- public static int translateScriptProtect(String strScriptProtect)
strScriptProtect
- public static String translateLoginStorage(int loginStorage)
public static int translateLoginStorage(String strLoginStorage, int defaultValue)
public static int translateLoginStorage(String strLoginStorage) throws ApplicationException
ApplicationException
public static Object toDefaultDatasource(Object o) throws PageException
PageException
public static short toWSType(String wstype) throws ApplicationException
ApplicationException
Copyright © 2015 Lucee