|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.ERXFrameworkPrincipal
er.directtoweb.ERDirectToWeb
public class ERDirectToWeb
Principle class of the ERDirectToWeb framework.
This class is loaded when the NSBundle of this
framework is loaded. When loaded this class configures
the directtoweb runtime to use the ERD2WModel
and
ERD2WFactory
subclasses instead of the default
implementations. See each class for a description of the
additions/improvements made to the base implementation.
This class also has a bunch of utility methods that are
used throughout this framework.
Nested Class Summary | |
---|---|
static class |
ERDirectToWeb.D2WException
Subclass of NSForwardException that can hold a d2wContext. |
Nested classes/interfaces inherited from class er.extensions.ERXFrameworkPrincipal |
---|
ERXFrameworkPrincipal.Observer |
Field Summary | |
---|---|
static org.apache.log4j.Logger |
componentNameLog
|
static com.webobjects.foundation.NSSelector |
D2WCONTEXT_SELECTOR
|
static java.lang.String |
D2WDEBUGGING_ENABLED_KEY
|
static java.lang.String |
D2WDISPLAY_COMPONENTNAMES_KEY
|
static java.lang.String |
D2WDISPLAY_DETAILED_PAGE_METRICS_KEY
|
static java.lang.String |
D2WDISPLAY_PAGE_METRICS_KEY
|
static java.lang.String |
D2WDISPLAY_PROPERTYKEYS_KEY
|
static org.apache.log4j.Logger |
debugLog
|
static org.apache.log4j.Logger |
log
logging support |
static org.apache.log4j.Logger |
propertyKeyLog
|
static java.lang.Class[] |
REQUIRES
|
static org.apache.log4j.Logger |
trace
|
Fields inherited from class er.extensions.ERXFrameworkPrincipal |
---|
initializedFrameworks, launchingFrameworks |
Constructor Summary | |
---|---|
ERDirectToWeb()
|
Method Summary | |
---|---|
static boolean |
booleanForKey(com.webobjects.directtoweb.D2WContext context,
java.lang.String key)
|
static void |
configureTraceRuleFiring()
|
void |
configureTraceRuleFiring(com.webobjects.foundation.NSNotification n)
|
static com.webobjects.foundation.NSMutableArray |
convertedPropertyKeyArray(com.webobjects.foundation.NSArray keyArray,
char startChar,
char endChar)
Converts a given array of keys to a format usable for section and tab display. |
static java.lang.String |
convertedPropertyKeyFromString(java.lang.String s,
char start,
char end)
Checks if a given property key is in the format (foo) or [foo] and returns the stripped string. |
static java.lang.String |
createConfigurationForEntityNamed(java.lang.String entityName)
|
static com.webobjects.appserver.WOComponent |
csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context,
com.webobjects.appserver.WOSession session)
Deprecated. use ERD2WFactory.erFactory().csvExportPageForD2WContext(D2WContext context, WOSession session) |
static boolean |
d2wComponentNameDebuggingEnabled(com.webobjects.appserver.WOSession s)
|
static java.lang.Object |
d2wContextValueForKey(java.lang.String key,
java.lang.String entityName)
|
static java.lang.Object |
d2wContextValueForKey(java.lang.String key,
java.lang.String entityName,
com.webobjects.foundation.NSDictionary extraValuesForContext)
|
static boolean |
d2wDebuggingEnabled(com.webobjects.appserver.WOSession s)
|
static boolean |
d2wPropertyKeyDebuggingEnabled(com.webobjects.appserver.WOSession s)
|
static boolean |
detailedPageMetricsEnabled()
|
static com.webobjects.foundation.NSArray |
displayableArrayForKeyPathArray(com.webobjects.foundation.NSArray array,
java.lang.String entityForReportName)
|
static java.lang.String |
displayNameForPropertyKey(java.lang.String key,
java.lang.String entityName)
|
static com.webobjects.appserver.WOComponent |
errorPageForException(java.lang.Throwable e,
com.webobjects.appserver.WOSession session)
Deprecated. use ERD2WFactory.erFactory().errorPageForException(Throwable e, WOSession session) |
void |
finishInitialization()
Overridden by subclasses to provide framework initialization. |
static com.webobjects.foundation.NSMutableDictionary |
informationForContext(com.webobjects.appserver.WOContext context)
Gathers D2W-related information from the current context. |
static com.webobjects.foundation.NSMutableDictionary |
informationForD2WContext(com.webobjects.directtoweb.D2WContext d2wContext)
Gathers D2W-related information from the current context. |
static com.webobjects.appserver.WOComponent |
pageForTaskSubTaskAndEntityNamed(java.lang.String task,
java.lang.String subtask,
java.lang.String entityName,
com.webobjects.appserver.WOSession session)
Deprecated. use ERD2WFactory.erFactory().pageForTaskSubTaskAndEntityNamed(String task, String subtask, String entityName, WOSession session) |
static boolean |
pageMetricsEnabled()
|
static com.webobjects.appserver.WOComponent |
printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context,
com.webobjects.appserver.WOSession session)
Deprecated. use ERD2WFactory.erFactory().printerFriendlyPageForD2WContext(D2WContext context, WOSession session) |
static com.webobjects.directtoweb.QueryPageInterface |
queryPageWithFetchSpecificationForEntityNamed(java.lang.String fsName,
java.lang.String entityName,
com.webobjects.appserver.WOSession session)
Deprecated. use ERD2WFactory.erFactory().queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession session) |
static void |
reportException(java.lang.Exception ex,
com.webobjects.directtoweb.D2WContext d2wContext)
Logs some debugging info and and throws a D2WException that wraps the original exception. |
void |
resetModel(com.webobjects.foundation.NSNotification n)
|
static java.lang.String |
resolveUnit(java.lang.String userInfoUnitString,
com.webobjects.eocontrol.EOEnterpriseObject object,
java.lang.String prefixKeyPath)
|
static void |
setD2wComponentNameDebuggingEnabled(com.webobjects.appserver.WOSession s,
boolean enabled)
|
static void |
setD2wDebuggingEnabled(com.webobjects.appserver.WOSession s,
boolean enabled)
|
static void |
setD2wPropertyKeyDebuggingEnabled(com.webobjects.appserver.WOSession s,
boolean enabled)
|
static void |
setDetailedPageMetricsEnabled(boolean value)
|
static void |
setPageMetricsEnabled(boolean value)
|
static boolean |
shouldRaiseException(boolean defaultValue)
Checks the system property er.directtoweb.ERDirectToWeb.shouldRaiseExceptions . |
static com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOSortOrdering> |
sortOrderings(com.webobjects.directtoweb.D2WContext d2wContext)
Returns a valid sort ordering based on the defaultSortOrdering key. |
void |
sortRules(com.webobjects.foundation.NSNotification n)
|
static java.lang.String |
userInfoUnit(com.webobjects.eocontrol.EOEnterpriseObject object,
java.lang.String key)
|
static void |
warmUpRuleCache()
|
Methods inherited from class er.extensions.ERXFrameworkPrincipal |
---|
didFinishInitialization, initialize, setUpFrameworkPrincipalClass, sharedInstance, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class[] REQUIRES
public static final org.apache.log4j.Logger log
public static final java.lang.String D2WDEBUGGING_ENABLED_KEY
public static final java.lang.String D2WDISPLAY_COMPONENTNAMES_KEY
public static final java.lang.String D2WDISPLAY_PROPERTYKEYS_KEY
public static final java.lang.String D2WDISPLAY_PAGE_METRICS_KEY
public static final java.lang.String D2WDISPLAY_DETAILED_PAGE_METRICS_KEY
public static final org.apache.log4j.Logger debugLog
public static final org.apache.log4j.Logger componentNameLog
public static final org.apache.log4j.Logger propertyKeyLog
public static final com.webobjects.foundation.NSSelector D2WCONTEXT_SELECTOR
public static org.apache.log4j.Logger trace
Constructor Detail |
---|
public ERDirectToWeb()
Method Detail |
---|
public void finishInitialization()
ERXFrameworkPrincipal
finishInitialization
in class ERXFrameworkPrincipal
public void resetModel(com.webobjects.foundation.NSNotification n)
public void sortRules(com.webobjects.foundation.NSNotification n)
public static void setD2wDebuggingEnabled(com.webobjects.appserver.WOSession s, boolean enabled)
public static boolean d2wDebuggingEnabled(com.webobjects.appserver.WOSession s)
public static void setD2wComponentNameDebuggingEnabled(com.webobjects.appserver.WOSession s, boolean enabled)
public static boolean d2wComponentNameDebuggingEnabled(com.webobjects.appserver.WOSession s)
public static void setD2wPropertyKeyDebuggingEnabled(com.webobjects.appserver.WOSession s, boolean enabled)
public static boolean d2wPropertyKeyDebuggingEnabled(com.webobjects.appserver.WOSession s)
public static boolean pageMetricsEnabled()
public static void setPageMetricsEnabled(boolean value)
public static boolean detailedPageMetricsEnabled()
public static void setDetailedPageMetricsEnabled(boolean value)
public static java.lang.String resolveUnit(java.lang.String userInfoUnitString, com.webobjects.eocontrol.EOEnterpriseObject object, java.lang.String prefixKeyPath)
public static java.lang.String convertedPropertyKeyFromString(java.lang.String s, char start, char end)
s
- the String to convertstart
- the start charend
- the end char to check for
start
and ends with end
.public static com.webobjects.foundation.NSMutableArray convertedPropertyKeyArray(com.webobjects.foundation.NSArray keyArray, char startChar, char endChar)
keyArray
- the NSArray to convertstartChar
- the start charendChar
- the end char to check for
public static com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOSortOrdering> sortOrderings(com.webobjects.directtoweb.D2WContext d2wContext)
defaultSortOrdering
key.
d2wContext
-
public static boolean booleanForKey(com.webobjects.directtoweb.D2WContext context, java.lang.String key)
public static java.lang.String userInfoUnit(com.webobjects.eocontrol.EOEnterpriseObject object, java.lang.String key)
public static com.webobjects.appserver.WOComponent printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context, com.webobjects.appserver.WOSession session)
public static com.webobjects.appserver.WOComponent csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context, com.webobjects.appserver.WOSession session)
public static com.webobjects.appserver.WOComponent pageForTaskSubTaskAndEntityNamed(java.lang.String task, java.lang.String subtask, java.lang.String entityName, com.webobjects.appserver.WOSession session)
public static com.webobjects.directtoweb.QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(java.lang.String fsName, java.lang.String entityName, com.webobjects.appserver.WOSession session)
public static com.webobjects.appserver.WOComponent errorPageForException(java.lang.Throwable e, com.webobjects.appserver.WOSession session)
public static void reportException(java.lang.Exception ex, com.webobjects.directtoweb.D2WContext d2wContext)
ex
- d2wContext
- public static com.webobjects.foundation.NSMutableDictionary informationForContext(com.webobjects.appserver.WOContext context)
context
- the current context
public static com.webobjects.foundation.NSMutableDictionary informationForD2WContext(com.webobjects.directtoweb.D2WContext d2wContext)
d2wContext
- the D2W context from which to derive the debugging information
public static boolean shouldRaiseException(boolean defaultValue)
er.directtoweb.ERDirectToWeb.shouldRaiseExceptions
.
defaultValue
- public static java.lang.String displayNameForPropertyKey(java.lang.String key, java.lang.String entityName)
public static java.lang.Object d2wContextValueForKey(java.lang.String key, java.lang.String entityName)
public static java.lang.Object d2wContextValueForKey(java.lang.String key, java.lang.String entityName, com.webobjects.foundation.NSDictionary extraValuesForContext)
public static java.lang.String createConfigurationForEntityNamed(java.lang.String entityName)
public static void warmUpRuleCache()
public void configureTraceRuleFiring(com.webobjects.foundation.NSNotification n)
public static void configureTraceRuleFiring()
public static com.webobjects.foundation.NSArray displayableArrayForKeyPathArray(com.webobjects.foundation.NSArray array, java.lang.String entityForReportName)
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |