ERD2RestDelegate Class Reference

Inherits er::rest::entityDelegates::ERXDefaultRestDelegate.

Collaboration diagram for ERD2RestDelegate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addDelegateForEntityNamed (IERXRestEntityDelegate entityDelegate, String entityName)
void delete (ERXRestRequest restRequest, ERXRestContext restContext) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException
IERXRestEntityDelegate entityDelegate (EOEntity entity)
String entityNameForAlias (String entityAlias)
 ERD2RestDelegate ()
ERXRestKey insert (ERXRestRequest restRequest, ERXRestContext restContext)
void removeDelegateForEntityNamed (String entityName)
void update (ERXRestRequest restRequest, ERXRestContext restContext) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException
ERXRestKey view (ERXRestRequest restRequest, ERXRestContext restContext)

Protected Member Functions

void updateDynamicPage (String task, ERXRestRequest restRequest, ERXRestContext restContext)

Private Member Functions

D2WContext d2wContext ()

Private Attributes

IERXRestEntityDelegate _defaultDelegate


Constructor & Destructor Documentation

Constructs an ERXDefaultRestDelegate with an ERXDenyRestEntityDelegate as the default entity delegate.


Member Function Documentation

void addDelegateForEntityNamed ( IERXRestEntityDelegate  entityDelegate,
String  entityName 
)

Call this method to register an entity-specific delegate for a particular entity name.

Parameters:
entityDelegate the entity delegate
entityName the entity name to associate the delegate with

Reimplemented from ERXDefaultRestDelegate.

D2WContext d2wContext (  )  [private]

Deletes the given object (NSArray of EOEnterpriseObject).

Parameters:
deleteRequest the incoming delete
context the rest context
Exceptions:
ERXRestException if there is a general failure
ERXRestSecurityException if the user attempts to delete objects that he/she is not permitted to delete
ERXRestNotFoundException if one of the requested objects does not exist

Reimplemented from ERXDefaultRestDelegate.

IERXRestEntityDelegate entityDelegate ( EOEntity  entity  ) 

Returns the per-entity rest delegate.

Parameters:
entity the entity
Returns:
the per-entity rest delegate

Reimplemented from ERXDefaultRestDelegate.

String entityNameForAlias ( String  entityAlias  ) 

Returns the actual name for the entity from its aliased name. The mappings for aliases is acquired when entity delegates are registered by calling entityAliasForEntityNamed.

Parameters:
entityAlias the entity alias
Returns:
the actual entity name

Reimplemented from ERXDefaultRestDelegate.

ERXRestKey insert ( ERXRestRequest  insertRequest,
ERXRestContext  context 
)

Creates the objects defined by the XML document (which can contain a single object or an array inserts).

Parameters:
insertRequest the incoming inserts
context the rest context
Returns:
the inserted objects as an ERXRestResult
Exceptions:
ERXRestException if there is a general failure
ERXRestSecurityException if the user attempts to insert objects that he/she is not permitted to insert
ERXRestNotFoundException if one of the requested objects does not exist

Reimplemented from ERXDefaultRestDelegate.

void removeDelegateForEntityNamed ( String  entityName  ) 

Removes the delegate for the given entity name.

Parameters:
entityName the name of the entity

Reimplemented from ERXDefaultRestDelegate.

Updates the objects defined by the XML document (which can contain partial updates or array updates).

Parameters:
updateRequest the incoming updates
context the rest context
Exceptions:
ERXRestException if there is a general failure
ERXRestSecurityException if the user attempts to update objects that he/she is not permitted to update
ERXRestNotFoundException if one of the requested objects does not exist

Reimplemented from ERXDefaultRestDelegate.

void updateDynamicPage ( String  task,
ERXRestRequest  restRequest,
ERXRestContext  restContext 
) [protected]

ERXRestKey view ( ERXRestRequest  restRequest,
ERXRestContext  restContext 
)

Views the object defined by the incoming url.

Parameters:
restRequest the incoming viewing request.
restContext the rest context
Returns:
the actual result as an ERXRestResult
Exceptions:
ERXRestException if there is a general failure
ERXRestSecurityException if the user attempts to insert or updates objects that he/she is not permitted to
ERXRestNotFoundException if one of the requested objects does not exist

Reimplemented from ERXDefaultRestDelegate.


Member Data Documentation

Reimplemented from ERXDefaultRestDelegate.


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