ERD2WFactory Class Reference

Inherits com::webobjects::directtoweb::D2W.

Inherited by Factory, and ERD2WControllerFactory.

Collaboration diagram for ERD2WFactory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

ConfirmPageInterface confirmPageForEntityNamed (String entityName, WOSession session)
WOComponent csvExportPageForD2WContext (D2WContext context, WOSession session)
Object defaultListPageDisplayGroupDelegate ()
WOComponent defaultPage (WOSession wosession)
EditPageInterface editPageForEntityNamed (String entityName, WOSession session)
EditPageInterface editPageForNewObjectWithConfigurationNamed (String configurationName, WOSession session)
EditPageInterface editPageForNewObjectWithEntityNamed (String entityName, WOSession session)
EditRelationshipPageInterface editRelationshipPageForEntityNamed (String entityName, WOSession session)
WOComponent errorPageForException (Throwable e, WOSession s)
WOComponent errorPageWithMessage (String message, WOSession session)
WOComponent errorPageWithMessageAndDestination (String message, WOComponent destination, WOSession session)
InspectPageInterface inspectPageForEntityNamed (String entityName, WOSession session)
ListPageInterface listPageForEntityNamed (String entityName, WOSession session)
void myCheckRules ()
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)
QueryAllPageInterface queryAllPage (WOSession session)
QueryPageInterface queryPageForEntityNamed (String entityName, WOSession session)
QueryPageInterface queryPageWithFetchSpecificationForEntityNamed (String fsName, String entityName, WOSession s)
SelectPageInterface selectPageForEntityNamed (String entityName, WOSession session)
void setDefaultListPageDisplayGroupDelegate (Object delegate)
NSArray visibleEntityNames (WOSession s)

Static Public Member Functions

static String entityNameFromPage (WOComponent page)
static ERD2WFactory erFactory ()
static String pageConfigurationFromPage (WOComponent page)
static String taskFromPage (WOComponent page)

Protected Member Functions

String _entityNameFromPage (WOComponent page)
String _pageConfigurationFromPage (WOComponent page)
String _taskFromPage (WOComponent page)
void init ()
WOComponent pageWithContextTaskEntity (D2WContext d2wcontext, String s, String s1, WOContext wocontext)

Protected Attributes

Object defaultListPageDisplayGroupDelegate

Static Protected Attributes

static final Logger log = Logger.getLogger(ERD2WFactory.class)

Private Member Functions

EOEntity _entityNamed (String entityName, WOSession session)
EOEnterpriseObject _newObjectWithEntity (EOEntity entity, EOEditingContext ec)

Private Attributes

D2WContext _privateContext


Detailed Description

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

Member Function Documentation

EOEntity _entityNamed ( String  entityName,
WOSession  session 
) [private]

String _entityNameFromPage ( WOComponent  page  )  [protected]

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.

EOEnterpriseObject _newObjectWithEntity ( EOEntity  entity,
EOEditingContext  ec 
) [private]

String _pageConfigurationFromPage ( WOComponent  page  )  [protected]

Gets the pageConfiguration from the current page.

String _taskFromPage ( WOComponent  page  )  [protected]

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.

ConfirmPageInterface confirmPageForEntityNamed ( String  entityName,
WOSession  session 
)

WOComponent csvExportPageForD2WContext ( D2WContext  context,
WOSession  session 
)

Gets the default list page delegate for display groups

Returns:
default list page display group delegate

WOComponent defaultPage ( WOSession  wosession  ) 

EditPageInterface editPageForEntityNamed ( String  entityName,
WOSession  session 
)

EditPageInterface editPageForNewObjectWithConfigurationNamed ( String  configurationName,
WOSession  session 
)

EditPageInterface editPageForNewObjectWithEntityNamed ( String  entityName,
WOSession  session 
)

EditRelationshipPageInterface editRelationshipPageForEntityNamed ( String  entityName,
WOSession  session 
)

static String entityNameFromPage ( WOComponent  page  )  [static]

Gets the entityName from the current page. Simply wrap the factory method _entityNameFromPage(WOComponent).

static ERD2WFactory erFactory (  )  [static]

Gets the D2W factory cast as an ERD2WFactory objects.

Returns:
the singleton factory

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.

Parameters:
message to display
session - the active session
Returns:
the error 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.

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

void init (  )  [protected]

InspectPageInterface inspectPageForEntityNamed ( String  entityName,
WOSession  session 
)

ListPageInterface listPageForEntityNamed ( String  entityName,
WOSession  session 
)

void myCheckRules (  ) 

static String pageConfigurationFromPage ( WOComponent  page  )  [static]

Gets the pageConfiguration from the current page. Simply wrap the factory method _pageConfigurationFromPage(WOComponent).

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 pageWithContextTaskEntity ( D2WContext  d2wcontext,
String  s,
String  s1,
WOContext  wocontext 
) [protected]

Reimplemented in Factory.

WOComponent printerFriendlyPageForD2WContext ( D2WContext  context,
WOSession  session 
)

D2WContext privateContext ( WOSession  s  ) 

QueryAllPageInterface queryAllPage ( WOSession  session  ) 

QueryPageInterface queryPageForEntityNamed ( String  entityName,
WOSession  session 
)

QueryPageInterface queryPageWithFetchSpecificationForEntityNamed ( String  fsName,
String  entityName,
WOSession  s 
)

SelectPageInterface selectPageForEntityNamed ( String  entityName,
WOSession  session 
)

void setDefaultListPageDisplayGroupDelegate ( Object  delegate  ) 

Sets the default display group delegate for list pages

Parameters:
delegate object

static String taskFromPage ( WOComponent  page  )  [static]

Gets the task from the current page. Simply wrap the factory method _taskFromPage(WOComponent).

NSArray visibleEntityNames ( WOSession  s  ) 


Member Data Documentation

D2WContext _privateContext [private]

holds a reference to the default delegate

final Logger log = Logger.getLogger(ERD2WFactory.class) [static, protected]

logging support

Reimplemented in ERD2WControllerFactory.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:48 2012 for Project Wonder by  doxygen 1.5.8