Project Wonder 5.0

er.directtoweb
Class ERD2WFactory

java.lang.Object
  extended by com.webobjects.directtoweb.D2W
      extended by er.directtoweb.ERD2WFactory
Direct Known Subclasses:
ERD2WControllerFactory

public class ERD2WFactory
extends com.webobjects.directtoweb.D2W

Not used at the moment, but shows how it might be used in the future.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.directtoweb.D2W
com.webobjects.directtoweb.D2W._Observer
 
Field Summary
protected  Object defaultListPageDisplayGroupDelegate
          holds a reference to the default delegate
protected static Logger log
          logging support
 
Fields inherited from class com.webobjects.directtoweb.D2W
trackingObserver
 
Constructor Summary
ERD2WFactory()
           
 
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.
 com.webobjects.directtoweb.ConfirmPageInterface confirmPageForEntityNamed(String entityName, WOSession session)
           
 WOComponent csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context, WOSession session)
           
 Object defaultListPageDisplayGroupDelegate()
          Gets the default list page delegate for display groups
 WOComponent defaultPage(WOSession wosession)
           
 com.webobjects.directtoweb.EditPageInterface editPageForEntityNamed(String entityName, WOSession session)
           
 com.webobjects.directtoweb.EditPageInterface editPageForNewObjectWithConfigurationNamed(String configurationName, WOSession session)
           
 com.webobjects.directtoweb.EditPageInterface editPageForNewObjectWithEntityNamed(String entityName, WOSession session)
           
 com.webobjects.directtoweb.EditRelationshipPageInterface editRelationshipPageForEntityNamed(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)
           
 WOComponent errorPageWithMessage(String message, WOSession session)
          Produces an error page that displays the provided message and returns the user to the current page.
 WOComponent errorPageWithMessageAndDestination(String message, WOComponent destination, WOSession session)
          Produces an error page that displays the provided message and returns the user to the destination page.
protected  void init()
           
 com.webobjects.directtoweb.InspectPageInterface inspectPageForEntityNamed(String entityName, WOSession session)
           
 com.webobjects.directtoweb.ListPageInterface listPageForEntityNamed(String entityName, WOSession session)
           
 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)
           
protected  WOComponent pageWithContextTaskEntity(com.webobjects.directtoweb.D2WContext d2wcontext, String s, String s1, WOContext wocontext)
           
 WOComponent printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context, WOSession session)
           
 com.webobjects.directtoweb.D2WContext privateContext(WOSession s)
           
 com.webobjects.directtoweb.QueryAllPageInterface queryAllPage(WOSession session)
           
 com.webobjects.directtoweb.QueryPageInterface queryPageForEntityNamed(String entityName, WOSession session)
           
 com.webobjects.directtoweb.QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession s)
           
 com.webobjects.directtoweb.SelectPageInterface selectPageForEntityNamed(String entityName, WOSession session)
           
 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, errorPage, errorPage, factory, homeHrefInContext, isLiveAssistantEnabled, isWebAssistantEnabled, newSignificantKey, packetForPropertyAndSettingsWithPage, packetForSettingsWithPage, pageForTaskAndEntityNamed, requestWasHandled, 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
 

Field Detail

log

protected static final Logger log
logging support


defaultListPageDisplayGroupDelegate

protected Object defaultListPageDisplayGroupDelegate
holds a reference to the default delegate

Constructor Detail

ERD2WFactory

public ERD2WFactory()
Method Detail

init

protected void init()
Overrides:
init in class com.webobjects.directtoweb.D2W

editPageForEntityNamed

public com.webobjects.directtoweb.EditPageInterface editPageForEntityNamed(String entityName,
                                                                           WOSession session)
Overrides:
editPageForEntityNamed in class com.webobjects.directtoweb.D2W

editRelationshipPageForEntityNamed

public com.webobjects.directtoweb.EditRelationshipPageInterface editRelationshipPageForEntityNamed(String entityName,
                                                                                                   WOSession session)
Overrides:
editRelationshipPageForEntityNamed in class com.webobjects.directtoweb.D2W

inspectPageForEntityNamed

public com.webobjects.directtoweb.InspectPageInterface inspectPageForEntityNamed(String entityName,
                                                                                 WOSession session)
Overrides:
inspectPageForEntityNamed in class com.webobjects.directtoweb.D2W

confirmPageForEntityNamed

public com.webobjects.directtoweb.ConfirmPageInterface confirmPageForEntityNamed(String entityName,
                                                                                 WOSession session)
Overrides:
confirmPageForEntityNamed in class com.webobjects.directtoweb.D2W

listPageForEntityNamed

public com.webobjects.directtoweb.ListPageInterface listPageForEntityNamed(String entityName,
                                                                           WOSession session)
Overrides:
listPageForEntityNamed in class com.webobjects.directtoweb.D2W

queryAllPage

public com.webobjects.directtoweb.QueryAllPageInterface queryAllPage(WOSession session)
Overrides:
queryAllPage in class com.webobjects.directtoweb.D2W

queryPageForEntityNamed

public com.webobjects.directtoweb.QueryPageInterface queryPageForEntityNamed(String entityName,
                                                                             WOSession session)
Overrides:
queryPageForEntityNamed in class com.webobjects.directtoweb.D2W

selectPageForEntityNamed

public com.webobjects.directtoweb.SelectPageInterface selectPageForEntityNamed(String entityName,
                                                                               WOSession session)
Overrides:
selectPageForEntityNamed in class com.webobjects.directtoweb.D2W

erFactory

public static ERD2WFactory erFactory()
Gets the D2W factory cast as an ERD2WFactory objects.

Returns:
the singleton factory

privateContext

public com.webobjects.directtoweb.D2WContext privateContext(WOSession s)

visibleEntityNames

public NSArray visibleEntityNames(WOSession s)
Overrides:
visibleEntityNames in class com.webobjects.directtoweb.D2W

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)
Overrides:
defaultPage in class com.webobjects.directtoweb.D2W

pageWithContextTaskEntity

protected WOComponent pageWithContextTaskEntity(com.webobjects.directtoweb.D2WContext d2wcontext,
                                                String s,
                                                String s1,
                                                WOContext wocontext)

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)
Overrides:
pageForConfigurationNamed in class com.webobjects.directtoweb.D2W

editPageForNewObjectWithEntityNamed

public com.webobjects.directtoweb.EditPageInterface editPageForNewObjectWithEntityNamed(String entityName,
                                                                                        WOSession session)
Overrides:
editPageForNewObjectWithEntityNamed in class com.webobjects.directtoweb.D2W

editPageForNewObjectWithConfigurationNamed

public com.webobjects.directtoweb.EditPageInterface editPageForNewObjectWithConfigurationNamed(String configurationName,
                                                                                               WOSession session)
Overrides:
editPageForNewObjectWithConfigurationNamed in class com.webobjects.directtoweb.D2W

pageForTaskAndEntityNamed

public WOComponent pageForTaskAndEntityNamed(String task,
                                             String entityName,
                                             WOSession session)
Overrides:
pageForTaskAndEntityNamed in class com.webobjects.directtoweb.D2W

printerFriendlyPageForD2WContext

public WOComponent printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context,
                                                    WOSession session)

csvExportPageForD2WContext

public WOComponent csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context,
                                              WOSession session)

pageForTaskSubTaskAndEntityNamed

public WOComponent pageForTaskSubTaskAndEntityNamed(String task,
                                                    String subtask,
                                                    String entityName,
                                                    WOSession session)

queryPageWithFetchSpecificationForEntityNamed

public com.webobjects.directtoweb.QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName,
                                                                                                   String entityName,
                                                                                                   WOSession s)

errorPageForException

public WOComponent errorPageForException(Throwable e,
                                         WOSession s)

errorPageWithMessage

public WOComponent errorPageWithMessage(String message,
                                        WOSession session)
Produces an error page that displays the provided message and returns the user to the current page.

Parameters:
message - to display
session - - the active session
Returns:
the error page

errorPageWithMessageAndDestination

public WOComponent errorPageWithMessageAndDestination(String message,
                                                      WOComponent destination,
                                                      WOSession session)
Produces an error page that displays the provided message and returns the user to the destination page.

Parameters:
message - to display
destination - page to which the error component returns the user
session - - the active session
Returns:
the error page

_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).


Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.