er.directtoweb
Class ERD2WFactory
java.lang.Object
com.webobjects.directtoweb.D2W
er.directtoweb.ERD2WFactory
- Direct Known Subclasses:
- ERD2WControllerFactory
- public class ERD2WFactory
- extends D2W
Not used at the moment, but shows how it might be used in the future.
Nested classes inherited from class com.webobjects.directtoweb.D2W |
D2W._Observer |
Method Summary |
protected String |
_entityNameFromPage(WOComponent page)
Gets the entity name from the current page. |
protected String |
_pageConfigurationFromPage(WOComponent page)
Gets the pageConfiguration from the current page. |
protected String |
_taskFromPage(WOComponent page)
Gets the task from the current page. |
WOComponent |
csvExportPageForD2WContext(D2WContext context,
WOSession session)
|
Object |
defaultListPageDisplayGroupDelegate()
Gets the default list page delegate for display groups |
WOComponent |
defaultPage(WOSession wosession)
|
EditPageInterface |
editPageForNewObjectWithConfigurationNamed(String configurationName,
WOSession session)
|
EditPageInterface |
editPageForNewObjectWithEntityNamed(String entityName,
WOSession session)
|
static String |
entityNameFromPage(WOComponent page)
Gets the entityName from the current page. |
static ERD2WFactory |
erFactory()
Gets the D2W factory cast as an ERD2WFactory objects. |
WOComponent |
errorPageForException(Throwable e,
WOSession s)
|
void |
myCheckRules()
|
static String |
pageConfigurationFromPage(WOComponent page)
Gets the pageConfiguration from the current page. |
WOComponent |
pageForConfigurationNamed(String name,
WOSession s)
|
WOComponent |
pageForTaskAndEntityNamed(String task,
String entityName,
WOSession session)
|
WOComponent |
pageForTaskSubTaskAndEntityNamed(String task,
String subtask,
String entityName,
WOSession session)
|
WOComponent |
printerFriendlyPageForD2WContext(D2WContext context,
WOSession session)
|
D2WContext |
privateContext(WOSession s)
|
QueryPageInterface |
queryPageWithFetchSpecificationForEntityNamed(String fsName,
String entityName,
WOSession s)
|
void |
setDefaultListPageDisplayGroupDelegate(Object delegate)
Sets the default display group delegate for list pages |
static String |
taskFromPage(WOComponent page)
Gets the task from the current page. |
NSArray |
visibleEntityNames(WOSession s)
|
Methods inherited from class com.webobjects.directtoweb.D2W |
_applicationDidFinishLaunching, _applicationWillFinishLaunching, _init, activateWebAssistantServer, checkMultithreading, confirmPageForEntityNamed, editPageForEntityNamed, editRelationshipPageForEntityNamed, errorPage, errorPage, factory, homeHrefInContext, init, inspectPageForEntityNamed, isLiveAssistantEnabled, isWebAssistantEnabled, listPageForEntityNamed, newSignificantKey, packetForPropertyAndSettingsWithPage, packetForSettingsWithPage, pageForTaskAndEntityNamed, queryAllPage, queryPageForEntityNamed, requestWasHandled, selectPageForEntityNamed, setFactory, setLiveAssistantEnabled, setWebAssistantEnabled, traceRuleFiringEnabled, traceRuleModificationsEnabled, visibleEntityNames, webAssistantInContext, willCheckRules |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final ERXLogger log
- logging support
defaultListPageDisplayGroupDelegate
protected Object defaultListPageDisplayGroupDelegate
- holds a reference to the default delegate
ERD2WFactory
public ERD2WFactory()
erFactory
public static ERD2WFactory erFactory()
- Gets the D2W factory cast as an ERD2WFactory objects.
- Returns:
- the singleton factory
privateContext
public D2WContext privateContext(WOSession s)
visibleEntityNames
public NSArray visibleEntityNames(WOSession s)
defaultListPageDisplayGroupDelegate
public Object defaultListPageDisplayGroupDelegate()
- Gets the default list page delegate for display groups
- Returns:
- default list page display group delegate
defaultPage
public WOComponent defaultPage(WOSession wosession)
setDefaultListPageDisplayGroupDelegate
public void setDefaultListPageDisplayGroupDelegate(Object delegate)
- Sets the default display group delegate for list pages
- Parameters:
delegate
- object
myCheckRules
public void myCheckRules()
pageForConfigurationNamed
public WOComponent pageForConfigurationNamed(String name,
WOSession s)
editPageForNewObjectWithEntityNamed
public EditPageInterface editPageForNewObjectWithEntityNamed(String entityName,
WOSession session)
editPageForNewObjectWithConfigurationNamed
public EditPageInterface editPageForNewObjectWithConfigurationNamed(String configurationName,
WOSession session)
pageForTaskAndEntityNamed
public WOComponent pageForTaskAndEntityNamed(String task,
String entityName,
WOSession session)
printerFriendlyPageForD2WContext
public WOComponent printerFriendlyPageForD2WContext(D2WContext context,
WOSession session)
csvExportPageForD2WContext
public WOComponent csvExportPageForD2WContext(D2WContext context,
WOSession session)
pageForTaskSubTaskAndEntityNamed
public WOComponent pageForTaskSubTaskAndEntityNamed(String task,
String subtask,
String entityName,
WOSession session)
queryPageWithFetchSpecificationForEntityNamed
public QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName,
String entityName,
WOSession s)
errorPageForException
public WOComponent errorPageForException(Throwable e,
WOSession s)
_pageConfigurationFromPage
protected String _pageConfigurationFromPage(WOComponent page)
- Gets the
pageConfiguration
from the current page.
_taskFromPage
protected String _taskFromPage(WOComponent page)
- Gets the task from the current page. Currently we have this class because
the corresponding method in D2W is protected. But it will be enhanced to
take the ERD2W interfaces into account.
_entityNameFromPage
protected String _entityNameFromPage(WOComponent page)
- Gets the entity name from the current page. Not that this does not go up
the component tree, but rather calls
entityName()
and
tries the "super" implementation if that fails.
entityNameFromPage
public static String entityNameFromPage(WOComponent page)
- Gets the
entityName
from the current page. Simply wrap the
factory method _entityNameFromPage(WOComponent)
.
taskFromPage
public static String taskFromPage(WOComponent page)
- Gets the
task
from the current page. Simply wrap the
factory method _taskFromPage(WOComponent)
.
pageConfigurationFromPage
public static String pageConfigurationFromPage(WOComponent page)
- Gets the
pageConfiguration
from the current page. Simply
wrap the factory method _pageConfigurationFromPage(WOComponent)
.
Copyright © 2002 – 2004 Project Wonder.