|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.rest.entityDelegates.ERXDefaultRestDelegate
er.directtorest.ERD2RestDelegate
public class ERD2RestDelegate
| Constructor Summary | |
|---|---|
ERD2RestDelegate()
Constructs an ERXDefaultRestDelegate with an ERXDenyRestEntityDelegate as the default entity delegate. |
|
| Method Summary | |
|---|---|
void |
addDelegateForEntityNamed(IERXRestEntityDelegate entityDelegate,
java.lang.String entityName)
Call this method to register an entity-specific delegate for a particular entity name. |
void |
delete(ERXRestRequest restRequest,
ERXRestContext restContext)
Deletes the given object (NSArray of EOEnterpriseObject). |
IERXRestEntityDelegate |
entityDelegate(com.webobjects.eoaccess.EOEntity entity)
Returns the per-entity rest delegate. |
java.lang.String |
entityNameForAlias(java.lang.String entityAlias)
Returns the actual name for the entity from its aliased name. |
ERXRestKey |
insert(ERXRestRequest restRequest,
ERXRestContext restContext)
Creates the objects defined by the XML document (which can contain a single object or an array inserts). |
void |
removeDelegateForEntityNamed(java.lang.String entityName)
Removes the delegate for the given entity name. |
void |
update(ERXRestRequest restRequest,
ERXRestContext restContext)
Updates the objects defined by the XML document (which can contain partial updates or array updates). |
protected void |
updateDynamicPage(java.lang.String task,
ERXRestRequest restRequest,
ERXRestContext restContext)
|
ERXRestKey |
view(ERXRestRequest restRequest,
ERXRestContext restContext)
Views the object defined by the incoming url. |
| Methods inherited from class er.rest.entityDelegates.ERXDefaultRestDelegate |
|---|
insertInto, process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERD2RestDelegate()
| Method Detail |
|---|
public java.lang.String entityNameForAlias(java.lang.String entityAlias)
IERXRestDelegate
entityNameForAlias in interface IERXRestDelegateentityNameForAlias in class ERXDefaultRestDelegateentityAlias - the entity alias
public IERXRestEntityDelegate entityDelegate(com.webobjects.eoaccess.EOEntity entity)
IERXRestDelegate
entityDelegate in interface IERXRestDelegateentityDelegate in class ERXDefaultRestDelegateentity - the entity
public void addDelegateForEntityNamed(IERXRestEntityDelegate entityDelegate,
java.lang.String entityName)
addDelegateForEntityNamed in class ERXDefaultRestDelegateentityDelegate - the entity delegateentityName - the entity name to associate the delegate withpublic void removeDelegateForEntityNamed(java.lang.String entityName)
removeDelegateForEntityNamed in class ERXDefaultRestDelegateentityName - the name of the entity
protected void updateDynamicPage(java.lang.String task,
ERXRestRequest restRequest,
ERXRestContext restContext)
public ERXRestKey view(ERXRestRequest restRequest,
ERXRestContext restContext)
IERXRestDelegate
view in interface IERXRestDelegateview in class ERXDefaultRestDelegaterestRequest - the incoming viewing request.restContext - the rest context
public ERXRestKey insert(ERXRestRequest restRequest,
ERXRestContext restContext)
IERXRestDelegate
insert in interface IERXRestDelegateinsert in class ERXDefaultRestDelegaterestRequest - the incoming insertsrestContext - the rest context
public void update(ERXRestRequest restRequest,
ERXRestContext restContext)
throws ERXRestException,
ERXRestSecurityException,
ERXRestNotFoundException
IERXRestDelegate
update in interface IERXRestDelegateupdate in class ERXDefaultRestDelegaterestRequest - the incoming updatesrestContext - 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
public void delete(ERXRestRequest restRequest,
ERXRestContext restContext)
throws ERXRestException,
ERXRestSecurityException,
ERXRestNotFoundException
IERXRestDelegate
delete in interface IERXRestDelegatedelete in class ERXDefaultRestDelegaterestRequest - the incoming deleterestContext - 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
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||