ERXUnsafeReadOnlyRouteController< T extends EOEnterpriseObject > Class Reference

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

Collaboration diagram for ERXUnsafeReadOnlyRouteController< T extends EOEnterpriseObject >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

WOActionResults createAction ()
WOActionResults destroyAction () throws Throwable
 ERXUnsafeReadOnlyRouteController (WORequest request)
WOActionResults indexAction ()
WOActionResults newAction () throws Throwable
WOActionResults showAction ()
WOActionResults updateAction ()

Protected Member Functions

boolean allowUpdates ()
object ()
ERXKeyFilter queryFilter ()
ERXKeyFilter showFilter ()
ERXKeyFilter updateFilter ()


Detailed Description

If you just want to quickly drop in a controller to test your entities, you can use or extend ERXUnsafeReadOnlyRouteController. This provides a default read-only interface to the attributes and to-one relationships of the specified entity.

 routeRequestHandler.addDefaultRoutes(YourEntity.ENTITY_NAME, ERXUnsafeReadOnlyRouteController.class);
 

Author:
mschrag
Parameters:
<T> the type of your entity

Constructor & Destructor Documentation

ERXUnsafeReadOnlyRouteController ( WORequest  request  ) 


Member Function Documentation

boolean allowUpdates (  )  [protected]

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.

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.

T object (  )  [protected]

ERXKeyFilter queryFilter (  )  [protected]

WOActionResults showAction (  )  [virtual]

Called when you want to view a single instance.

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

ERXKeyFilter showFilter (  )  [protected]

WOActionResults updateAction (  )  [virtual]

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

Returns:
the response
Exceptions:
Throwable if something goes wrong

Implements ERXDefaultRouteController.

ERXKeyFilter updateFilter (  )  [protected]


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

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