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  java.lang.Object defaultListPageDisplayGroupDelegate
          holds a reference to the default delegate
protected static org.apache.log4j.Logger log
          logging support
 
Constructor Summary
ERD2WFactory()
           
 
Method Summary
protected  java.lang.String _entityNameFromPage(com.webobjects.appserver.WOComponent page)
          Gets the entity name from the current page.
protected  java.lang.String _pageConfigurationFromPage(com.webobjects.appserver.WOComponent page)
          Gets the pageConfiguration from the current page.
protected  java.lang.String _taskFromPage(com.webobjects.appserver.WOComponent page)
          Gets the task from the current page.
 com.webobjects.directtoweb.ConfirmPageInterface confirmPageForEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.appserver.WOComponent csvExportPageForD2WContext(com.webobjects.directtoweb.D2WContext context, com.webobjects.appserver.WOSession session)
           
 java.lang.Object defaultListPageDisplayGroupDelegate()
          Gets the default list page delegate for display groups
 com.webobjects.appserver.WOComponent defaultPage(com.webobjects.appserver.WOSession wosession)
           
 com.webobjects.directtoweb.EditPageInterface editPageForEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.EditPageInterface editPageForNewObjectWithConfigurationNamed(java.lang.String configurationName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.EditPageInterface editPageForNewObjectWithEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.EditRelationshipPageInterface editRelationshipPageForEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
static java.lang.String entityNameFromPage(com.webobjects.appserver.WOComponent page)
          Gets the entityName from the current page.
static ERD2WFactory erFactory()
          Gets the D2W factory cast as an ERD2WFactory objects.
 com.webobjects.appserver.WOComponent errorPageForException(java.lang.Throwable e, com.webobjects.appserver.WOSession s)
           
 com.webobjects.appserver.WOComponent errorPageWithMessage(java.lang.String message, com.webobjects.appserver.WOSession session)
          Produces an error page that displays the provided message and returns the user to the current page.
 com.webobjects.appserver.WOComponent errorPageWithMessageAndDestination(java.lang.String message, com.webobjects.appserver.WOComponent destination, com.webobjects.appserver.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(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.ListPageInterface listPageForEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 void myCheckRules()
           
static java.lang.String pageConfigurationFromPage(com.webobjects.appserver.WOComponent page)
          Gets the pageConfiguration from the current page.
 com.webobjects.appserver.WOComponent pageForConfigurationNamed(java.lang.String name, com.webobjects.appserver.WOSession s)
           
 com.webobjects.appserver.WOComponent pageForTaskAndEntityNamed(java.lang.String task, java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.appserver.WOComponent pageForTaskSubTaskAndEntityNamed(java.lang.String task, java.lang.String subtask, java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
protected  com.webobjects.appserver.WOComponent pageWithContextTaskEntity(com.webobjects.directtoweb.D2WContext d2wcontext, java.lang.String s, java.lang.String s1, com.webobjects.appserver.WOContext wocontext)
           
 com.webobjects.appserver.WOComponent printerFriendlyPageForD2WContext(com.webobjects.directtoweb.D2WContext context, com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.D2WContext privateContext(com.webobjects.appserver.WOSession s)
           
 com.webobjects.directtoweb.QueryAllPageInterface queryAllPage(com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.QueryPageInterface queryPageForEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 com.webobjects.directtoweb.QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(java.lang.String fsName, java.lang.String entityName, com.webobjects.appserver.WOSession s)
           
 com.webobjects.directtoweb.SelectPageInterface selectPageForEntityNamed(java.lang.String entityName, com.webobjects.appserver.WOSession session)
           
 void setDefaultListPageDisplayGroupDelegate(java.lang.Object delegate)
          Sets the default display group delegate for list pages
static java.lang.String taskFromPage(com.webobjects.appserver.WOComponent page)
          Gets the task from the current page.
 com.webobjects.foundation.NSArray visibleEntityNames(com.webobjects.appserver.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 org.apache.log4j.Logger log
logging support


defaultListPageDisplayGroupDelegate

protected java.lang.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(java.lang.String entityName,
                                                                           com.webobjects.appserver.WOSession session)
Overrides:
editPageForEntityNamed in class com.webobjects.directtoweb.D2W

editRelationshipPageForEntityNamed

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

inspectPageForEntityNamed

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

confirmPageForEntityNamed

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

listPageForEntityNamed

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

queryAllPage

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

queryPageForEntityNamed

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

selectPageForEntityNamed

public com.webobjects.directtoweb.SelectPageInterface selectPageForEntityNamed(java.lang.String entityName,
                                                                               com.webobjects.appserver.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(com.webobjects.appserver.WOSession s)

visibleEntityNames

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

defaultListPageDisplayGroupDelegate

public java.lang.Object defaultListPageDisplayGroupDelegate()
Gets the default list page delegate for display groups

Returns:
default list page display group delegate

defaultPage

public com.webobjects.appserver.WOComponent defaultPage(com.webobjects.appserver.WOSession wosession)
Overrides:
defaultPage in class com.webobjects.directtoweb.D2W

pageWithContextTaskEntity

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

setDefaultListPageDisplayGroupDelegate

public void setDefaultListPageDisplayGroupDelegate(java.lang.Object delegate)
Sets the default display group delegate for list pages

Parameters:
delegate - object

myCheckRules

public void myCheckRules()

pageForConfigurationNamed

public com.webobjects.appserver.WOComponent pageForConfigurationNamed(java.lang.String name,
                                                                      com.webobjects.appserver.WOSession s)
Overrides:
pageForConfigurationNamed in class com.webobjects.directtoweb.D2W

editPageForNewObjectWithEntityNamed

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

editPageForNewObjectWithConfigurationNamed

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

pageForTaskAndEntityNamed

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

printerFriendlyPageForD2WContext

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

csvExportPageForD2WContext

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

pageForTaskSubTaskAndEntityNamed

public com.webobjects.appserver.WOComponent pageForTaskSubTaskAndEntityNamed(java.lang.String task,
                                                                             java.lang.String subtask,
                                                                             java.lang.String entityName,
                                                                             com.webobjects.appserver.WOSession session)

queryPageWithFetchSpecificationForEntityNamed

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

errorPageForException

public com.webobjects.appserver.WOComponent errorPageForException(java.lang.Throwable e,
                                                                  com.webobjects.appserver.WOSession s)

errorPageWithMessage

public com.webobjects.appserver.WOComponent errorPageWithMessage(java.lang.String message,
                                                                 com.webobjects.appserver.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 com.webobjects.appserver.WOComponent errorPageWithMessageAndDestination(java.lang.String message,
                                                                               com.webobjects.appserver.WOComponent destination,
                                                                               com.webobjects.appserver.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 java.lang.String _pageConfigurationFromPage(com.webobjects.appserver.WOComponent page)
Gets the pageConfiguration from the current page.


_taskFromPage

protected java.lang.String _taskFromPage(com.webobjects.appserver.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 java.lang.String _entityNameFromPage(com.webobjects.appserver.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 java.lang.String entityNameFromPage(com.webobjects.appserver.WOComponent page)
Gets the entityName from the current page. Simply wrap the factory method _entityNameFromPage(WOComponent).


taskFromPage

public static java.lang.String taskFromPage(com.webobjects.appserver.WOComponent page)
Gets the task from the current page. Simply wrap the factory method _taskFromPage(WOComponent).


pageConfigurationFromPage

public static java.lang.String pageConfigurationFromPage(com.webobjects.appserver.WOComponent page)
Gets the pageConfiguration from the current page. Simply wrap the factory method _pageConfigurationFromPage(WOComponent).


Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.