CompanyController Class Reference

Inherits er::rest::routes::ERXRouteController.

Collaboration diagram for CompanyController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CompanyController (WORequest request)
WOActionResults createAction ()
WOActionResults destroyAction (@PathParam("company") Company company) throws Throwable
WOActionResults employeesAction (@PathParam("company") Company company)
WOActionResults indexAction ()
WOActionResults newAction ()
WOActionResults showAction (@PathParam("company") Company company)
WOActionResults updateAction (@PathParam("company") Company company)

Static Public Member Functions

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


Detailed Description

CompanyController is implemented with JSR-311 annotations for all parameters, and adds a custom "employees" route at the bottom that shows JSR-311 annotation for registration.

Author:
mschrag

Constructor & Destructor Documentation

CompanyController ( WORequest  request  ) 


Member Function Documentation

WOActionResults createAction (  ) 

WOActionResults destroyAction ( @PathParam("company") Company  company  )  throws Throwable

WOActionResults employeesAction ( @PathParam("company") Company  company  ) 

JSR-311 registration of an employees route. This also creates a custom filter that says that when we show employees through a company, use the showFilter from PersonController, but remove the company relationship (since you specified a company) and include the "pets" relationship, but don't include any attributes from pets.

Parameters:
company 
Returns:

WOActionResults indexAction (  ) 

WOActionResults newAction (  ) 

static ERXKeyFilter queryFilter (  )  [static]

WOActionResults showAction ( @PathParam("company") Company  company  ) 

static ERXKeyFilter showFilter (  )  [static]

WOActionResults updateAction ( @PathParam("company") Company  company  ) 

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