
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 |
| ERD2RestDelegate | ( | ) |
Constructs an ERXDefaultRestDelegate with an ERXDenyRestEntityDelegate as the default entity delegate.
| void addDelegateForEntityNamed | ( | IERXRestEntityDelegate | entityDelegate, | |
| String | entityName | |||
| ) |
Call this method to register an entity-specific delegate for a particular entity name.
| entityDelegate | the entity delegate | |
| entityName | the entity name to associate the delegate with |
Reimplemented from ERXDefaultRestDelegate.
| D2WContext d2wContext | ( | ) | [private] |
| void delete | ( | ERXRestRequest | deleteRequest, | |
| ERXRestContext | context | |||
| ) | throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException |
Deletes the given object (NSArray of EOEnterpriseObject).
| deleteRequest | the incoming delete | |
| context | the rest context |
| 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.
| entity | the entity |
Reimplemented from ERXDefaultRestDelegate.
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.
| entityAlias | the entity alias |
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).
| insertRequest | the incoming inserts | |
| context | the rest context |
| 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.
| entityName | the name of the entity |
Reimplemented from ERXDefaultRestDelegate.
| void update | ( | ERXRestRequest | updateRequest, | |
| ERXRestContext | context | |||
| ) | throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException |
Updates the objects defined by the XML document (which can contain partial updates or array updates).
| updateRequest | the incoming updates | |
| context | the rest context |
| 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.
| restRequest | the incoming viewing request. | |
| restContext | the rest context |
| 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.
IERXRestEntityDelegate _defaultDelegate [private] |
Reimplemented from ERXDefaultRestDelegate.
1.5.8