PersonController Class Reference

Inherits er::rest::routes::ERXDefaultRouteController.

Collaboration diagram for PersonController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

WOActionResults createAction ()
WOActionResults destroyAction () throws Throwable
WOActionResults indexAction ()
WOActionResults lockedUpdateAction ()
WOActionResults newAction () throws Throwable
 PersonController (WORequest request)
WOActionResults securityUpdateAction ()
WOActionResults showAction ()
WOActionResults updateAction ()

Static Public Member Functions

static ERXKeyFilter queryFilter ()
static ERXKeyFilter showFilter ()
static ERXKeyFilter updateFilter ()

Protected Member Functions

boolean isAutomaticHtmlRoutingEnabled ()
Person person ()


Detailed Description

PersonController shows the non-annotation style of accessing parameters (i.e. using the routeObjectForKey methods)

Author:
mschrag

Constructor & Destructor Documentation

PersonController ( WORequest  request  ) 


Member Function Documentation

WOActionResults createAction (  )  [virtual]

Called when you want to commit a new instance.

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

WOActionResults destroyAction (  )  throws Throwable [virtual]

Called when you want to delete an instance.

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

WOActionResults indexAction (  )  [virtual]

Called when you want to list instances.

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

boolean isAutomaticHtmlRoutingEnabled (  )  [protected]

Automatic HTML routing means that if someone requests Entity/X/action.html, the router controller will automatically look for an EntityActionPage component. For example, if you go to /Person/1.html, it will look for PersonShowPage. You can manually handle these as well but checking the current request format and choosing the appropriate component to return.

Reimplemented from ERXRouteController.

WOActionResults lockedUpdateAction (  ) 

lockedUpdate is just like update except that the "company" relationships is locked, which means that you can update the object on the other side of the relationship, but you can't change the related object itself.

WOActionResults newAction (  )  throws Throwable [virtual]

Called when you need an uncommitted blank new instance.

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

Person person (  )  [protected]

static ERXKeyFilter queryFilter (  )  [static]

WOActionResults securityUpdateAction (  ) 

securityUpdate is just like a regular update except that it will not let you change the person's company name to Microsoft when updating the Person using the ERXKeyFilter.Delegate API

WOActionResults showAction (  )  [virtual]

Called when you want to view a single instance.

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

static ERXKeyFilter showFilter (  )  [static]

This shows adding a derived attribute into the filter results.

Returns:

WOActionResults updateAction (  )  [virtual]

Called when you want to update an instance (or instances).

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

static ERXKeyFilter updateFilter (  )  [static]


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

Generated on Sat May 26 06:43:30 2012 for Project Wonder by  doxygen 1.5.8