|
Project Wonder 5.0.0.8660 | |||||||||
| 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 Logger |
componentNameLog
|
static NSSelector |
D2WCONTEXT_SELECTOR
|
static String |
D2WDEBUGGING_ENABLED_KEY
|
static String |
D2WDISPLAY_COMPONENTNAMES_KEY
|
static String |
D2WDISPLAY_PROPERTYKEYS_KEY
|
static Logger |
debugLog
|
static Logger |
log
logging support |
static Logger |
propertyKeyLog
|
static Class[] |
REQUIRES
|
static Logger |
trace
|
| Constructor Summary | |
|---|---|
ERDirectToWeb()
|
|
| Method Summary | |
|---|---|
static boolean |
booleanForKey(D2WContext context,
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 String |
convertedPropertyKeyFromString(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 String |
createConfigurationForEntityNamed(String entityName)
|
static WOComponent |
csvExportPageForD2WContext(D2WContext context,
WOSession session)
Deprecated. use ERD2WFactory.erFactory().csvExportPageForD2WContext(D2WContext context, WOSession session) |
static boolean |
d2wComponentNameDebuggingEnabled(WOSession s)
|
static Object |
d2wContextValueForKey(String key,
String entityName)
|
static Object |
d2wContextValueForKey(String key,
String entityName,
NSDictionary extraValuesForContext)
|
static boolean |
d2wDebuggingEnabled(WOSession s)
|
static boolean |
d2wPropertyKeyDebuggingEnabled(WOSession s)
|
static NSArray |
displayableArrayForKeyPathArray(NSArray array,
String entityForReportName)
|
static String |
displayNameForPropertyKey(String key,
String entityName)
|
static WOComponent |
errorPageForException(Throwable e,
WOSession session)
Deprecated. use ERD2WFactory.erFactory().errorPageForException(Throwable e, WOSession session) |
void |
finishInitialization()
Overridden by subclasses to provide framework initialization. |
static WOComponent |
pageForTaskSubTaskAndEntityNamed(String task,
String subtask,
String entityName,
WOSession session)
Deprecated. use ERD2WFactory.erFactory().pageForTaskSubTaskAndEntityNamed(String task, String subtask, String entityName, WOSession session) |
static WOComponent |
printerFriendlyPageForD2WContext(D2WContext context,
WOSession session)
Deprecated. use ERD2WFactory.erFactory().printerFriendlyPageForD2WContext(D2WContext context, WOSession session) |
static QueryPageInterface |
queryPageWithFetchSpecificationForEntityNamed(String fsName,
String entityName,
WOSession session)
Deprecated. use ERD2WFactory.erFactory().queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession session) |
static void |
reportException(Exception ex,
D2WContext d2wContext)
Logs some debugging info and and throws a D2WException that wraps the original exception. |
void |
resetModel(NSNotification n)
|
static String |
resolveUnit(String userInfoUnitString,
EOEnterpriseObject object,
String prefixKeyPath)
|
static void |
setD2wComponentNameDebuggingEnabled(WOSession s,
boolean enabled)
|
static void |
setD2wDebuggingEnabled(WOSession s,
boolean enabled)
|
static void |
setD2wPropertyKeyDebuggingEnabled(WOSession s,
boolean enabled)
|
static boolean |
shouldRaiseException(boolean defaultValue)
Checks the system property er.directtoweb.ERDirectToWeb.shouldRaiseExceptions. |
void |
sortRules(NSNotification n)
|
static String |
userInfoUnit(EOEnterpriseObject object,
String key)
|
static void |
warmUpRuleCache()
|
| Methods inherited from class er.extensions.ERXFrameworkPrincipal |
|---|
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 Class[] REQUIRES
public static final Logger log
public static final String D2WDEBUGGING_ENABLED_KEY
public static final String D2WDISPLAY_COMPONENTNAMES_KEY
public static final String D2WDISPLAY_PROPERTYKEYS_KEY
public static final Logger debugLog
public static final Logger componentNameLog
public static final Logger propertyKeyLog
public static final NSSelector D2WCONTEXT_SELECTOR
public static Logger trace
| Constructor Detail |
|---|
public ERDirectToWeb()
| Method Detail |
|---|
public void finishInitialization()
ERXFrameworkPrincipal
finishInitialization 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 String resolveUnit(String userInfoUnitString,
EOEnterpriseObject object,
String prefixKeyPath)
public static String convertedPropertyKeyFromString(String s,
char start,
char end)
s - the String to convertstart - the start charstart - the end char to check for
start 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 for
public static boolean booleanForKey(D2WContext context,
String key)
public static String userInfoUnit(EOEnterpriseObject object,
String key)
public static WOComponent printerFriendlyPageForD2WContext(D2WContext context,
WOSession session)
public static WOComponent csvExportPageForD2WContext(D2WContext context,
WOSession session)
public static WOComponent pageForTaskSubTaskAndEntityNamed(String task,
String subtask,
String entityName,
WOSession session)
public static QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName,
String entityName,
WOSession session)
public static WOComponent errorPageForException(Throwable e,
WOSession session)
public static void reportException(Exception ex,
D2WContext d2wContext)
ex - d2wContext - public static boolean shouldRaiseException(boolean defaultValue)
er.directtoweb.ERDirectToWeb.shouldRaiseExceptions.
defaultValue -
public static String displayNameForPropertyKey(String key,
String entityName)
public static Object d2wContextValueForKey(String key,
String entityName)
public static Object d2wContextValueForKey(String key,
String entityName,
NSDictionary extraValuesForContext)
public static String createConfigurationForEntityNamed(String entityName)
public static void warmUpRuleCache()
public void configureTraceRuleFiring(NSNotification n)
public static void configureTraceRuleFiring()
public static NSArray displayableArrayForKeyPathArray(NSArray array,
String entityForReportName)
|
Last updated: Sat, Nov 22, 2008 04:41 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||