AnimalController Class Reference

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

Collaboration diagram for AnimalController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Animal animal ()
 AnimalController (WORequest request)
WOActionResults createAction ()
WOActionResults destroyAction () throws Throwable
WOActionResults indexAction ()
WOActionResults newAction () throws Throwable
WOActionResults showAction ()
WOActionResults updateAction ()

Static Public Member Functions

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


Detailed Description

AnimalController uses the non-annotation-based approach to routing and accessing objects.

Author:
mschrag

Constructor & Destructor Documentation

AnimalController ( WORequest  request  ) 


Member Function Documentation

Animal animal (  ) 

Returns the value of the "animal" variable from the route.

Returns:

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]

indexAction uses an ERXRestFetchSpecification, which optionally allows you to expose sorting, qualifying, and batching in query parameters

Implements ERXDefaultRouteController.

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.

static ERXKeyFilter queryFilter (  )  [static]

The query filter is used in indexAction to control what attributes and relationships you expose to qualifiers through query parameters

Returns:

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 showFilter is used by indexAction and showAction and says to return all attributes of an Animal as well as the Owner relationship, and for the owner, include all of its attributes.

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 updateFilter us used by updateAction and createAction and says to allow updating any attributes of an Animal as well as the Owner relationship.

Returns:


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