|
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 IERXRestDelegate
entityNameForAlias
in class ERXDefaultRestDelegate
entityAlias
- the entity alias
public IERXRestEntityDelegate entityDelegate(com.webobjects.eoaccess.EOEntity entity)
IERXRestDelegate
entityDelegate
in interface IERXRestDelegate
entityDelegate
in class ERXDefaultRestDelegate
entity
- the entity
public void addDelegateForEntityNamed(IERXRestEntityDelegate entityDelegate, java.lang.String entityName)
addDelegateForEntityNamed
in class ERXDefaultRestDelegate
entityDelegate
- the entity delegateentityName
- the entity name to associate the delegate withpublic void removeDelegateForEntityNamed(java.lang.String entityName)
removeDelegateForEntityNamed
in class ERXDefaultRestDelegate
entityName
- the name of the entityprotected void updateDynamicPage(java.lang.String task, ERXRestRequest restRequest, ERXRestContext restContext)
public ERXRestKey view(ERXRestRequest restRequest, ERXRestContext restContext)
IERXRestDelegate
view
in interface IERXRestDelegate
view
in class ERXDefaultRestDelegate
restRequest
- the incoming viewing request.restContext
- the rest context
public ERXRestKey insert(ERXRestRequest restRequest, ERXRestContext restContext)
IERXRestDelegate
insert
in interface IERXRestDelegate
insert
in class ERXDefaultRestDelegate
restRequest
- the incoming insertsrestContext
- the rest context
public void update(ERXRestRequest restRequest, ERXRestContext restContext) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException
IERXRestDelegate
update
in interface IERXRestDelegate
update
in class ERXDefaultRestDelegate
restRequest
- 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 existpublic void delete(ERXRestRequest restRequest, ERXRestContext restContext) throws ERXRestException, ERXRestSecurityException, ERXRestNotFoundException
IERXRestDelegate
delete
in interface IERXRestDelegate
delete
in class ERXDefaultRestDelegate
restRequest
- 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 |