public class ERDirectToWeb extends ERXFrameworkPrincipal
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.| Modifier and Type | Class and Description |
|---|---|
static class |
ERDirectToWeb.D2WException
Subclass of NSForwardException that can hold a d2wContext.
|
ERXFrameworkPrincipal.Observer| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
componentNameLog |
static 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 |
initializedFrameworks, launchingFrameworks| Constructor and Description |
|---|
ERDirectToWeb() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
booleanForKey(com.webobjects.directtoweb.D2WContext context,
java.lang.String key) |
static void |
configureTraceRuleFiring() |
void |
configureTraceRuleFiring(NSNotification n) |
static NSMutableArray |
convertedPropertyKeyArray(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 WOComponent |
csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context,
WOSession session)
Deprecated.
use ERD2WFactory.erFactory().csvExportPageForD2WContext(D2WContext context, WOSession session)
|
static boolean |
d2wComponentNameDebuggingEnabled(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,
NSDictionary extraValuesForContext) |
static boolean |
d2wDebuggingEnabled(WOSession s) |
static boolean |
d2wPropertyKeyDebuggingEnabled(WOSession s) |
static boolean |
detailedPageMetricsEnabled() |
static NSArray |
displayableArrayForKeyPathArray(NSArray array,
java.lang.String entityForReportName) |
static java.lang.String |
displayNameForPropertyKey(java.lang.String key,
java.lang.String entityName) |
static WOComponent |
errorPageForException(java.lang.Throwable e,
WOSession session)
Deprecated.
use ERD2WFactory.erFactory().errorPageForException(Throwable e, WOSession session)
|
void |
finishInitialization()
Overridden by subclasses to provide framework initialization.
|
static NSMutableDictionary |
informationForContext(WOContext context)
Gathers D2W-related information from the current context.
|
static NSMutableDictionary |
informationForD2WContext(com.webobjects.directtoweb.D2WContext d2wContext)
Gathers D2W-related information from the current context.
|
static WOComponent |
pageForTaskSubTaskAndEntityNamed(java.lang.String task,
java.lang.String subtask,
java.lang.String entityName,
WOSession session)
Deprecated.
use ERD2WFactory.erFactory().pageForTaskSubTaskAndEntityNamed(String task, String subtask, String entityName, WOSession session)
|
static boolean |
pageMetricsEnabled() |
static WOComponent |
printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context,
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,
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(NSNotification n) |
static java.lang.String |
resolveUnit(java.lang.String userInfoUnitString,
EOEnterpriseObject object,
java.lang.String prefixKeyPath) |
static void |
setD2wComponentNameDebuggingEnabled(WOSession s,
boolean enabled) |
static void |
setD2wDebuggingEnabled(WOSession s,
boolean enabled) |
static void |
setD2wPropertyKeyDebuggingEnabled(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 NSArray<EOSortOrdering> |
sortOrderings(com.webobjects.directtoweb.D2WContext d2wContext)
Returns a valid sort ordering based on the
defaultSortOrdering key. |
void |
sortRules(NSNotification n) |
static java.lang.String |
userInfoUnit(EOEnterpriseObject object,
java.lang.String key)
Deprecated.
This is duplicated from {link: er.extensions.ERXExtensions#userInfoUnit(EOEnterpriseObject, String)}
|
static void |
warmUpRuleCache() |
didFinishInitialization, hasFrameworkInstalled, initialize, setUpFrameworkPrincipalClass, sharedInstance, toStringpublic 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 NSSelector D2WCONTEXT_SELECTOR
public static org.apache.log4j.Logger trace
public void finishInitialization()
ERXFrameworkPrincipalfinishInitialization in class ERXFrameworkPrincipalpublic void resetModel(NSNotification n)
public void sortRules(NSNotification n)
public static void setD2wDebuggingEnabled(WOSession s, boolean enabled)
public static boolean d2wDebuggingEnabled(WOSession s)
public static void setD2wComponentNameDebuggingEnabled(WOSession s, boolean enabled)
public static boolean d2wComponentNameDebuggingEnabled(WOSession s)
public static void setD2wPropertyKeyDebuggingEnabled(WOSession s, boolean enabled)
public static boolean d2wPropertyKeyDebuggingEnabled(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,
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 forstart and ends with end.public static NSMutableArray convertedPropertyKeyArray(NSArray keyArray, char startChar, char endChar)
keyArray - the NSArray to convertstartChar - the start charendChar - the end char to check forpublic static NSArray<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(EOEnterpriseObject object, java.lang.String key)
@Deprecated public static WOComponent printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context, WOSession session)
@Deprecated public static WOComponent csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context, WOSession session)
@Deprecated public static WOComponent pageForTaskSubTaskAndEntityNamed(java.lang.String task, java.lang.String subtask, java.lang.String entityName, WOSession session)
@Deprecated
public static com.webobjects.directtoweb.QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(java.lang.String fsName,
java.lang.String entityName,
WOSession session)
@Deprecated public static WOComponent errorPageForException(java.lang.Throwable e, WOSession session)
public static void reportException(java.lang.Exception ex,
com.webobjects.directtoweb.D2WContext d2wContext)
ex - d2wContext - public static NSMutableDictionary informationForContext(WOContext context)
context - the current contextpublic static NSMutableDictionary informationForD2WContext(com.webobjects.directtoweb.D2WContext d2wContext)
d2wContext - the D2W context from which to derive the debugging informationpublic 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,
NSDictionary extraValuesForContext)
public static java.lang.String createConfigurationForEntityNamed(java.lang.String entityName)
public static void warmUpRuleCache()
public void configureTraceRuleFiring(NSNotification n)
public static void configureTraceRuleFiring()
Copyright © 2002 – 2022 Project Wonder.