|
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.ERXAbstractRestEntityDelegate
er.directtorest.ERD2RestDefaultEntityDelegate
public class ERD2RestDefaultEntityDelegate
| Constructor Summary | |
|---|---|
ERD2RestDefaultEntityDelegate()
|
|
| Method Summary | |
|---|---|
boolean |
canDeleteObject(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
Returns whether or not the given object can be deleted. |
boolean |
canInsertObject(com.webobjects.eoaccess.EOEntity entity,
ERXRestContext context)
Returns whether or not the caller is allowed to insert a new object of the given entity. |
boolean |
canInsertObject(com.webobjects.eoaccess.EOEntity parentEntity,
java.lang.Object parentObject,
java.lang.String parentKey,
com.webobjects.eoaccess.EOEntity entity,
ERXRestContext context)
Returns whether or not a new object can be inserted into the specified relationship of an existing object. |
boolean |
canInsertProperty(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
java.lang.String propertyName,
ERXRestContext context)
Returns whether or not the given property can be set during an insert. |
boolean |
canUpdateObject(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
Returns whether or not the given object can be updated. |
boolean |
canUpdateProperty(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
java.lang.String propertyName,
ERXRestContext context)
Returns whether or not the given property can be set during an update. |
boolean |
canViewObject(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
Returns whether or not the given object can be seen. |
boolean |
canViewProperty(com.webobjects.eoaccess.EOEntity entity,
java.lang.Object obj,
java.lang.String propertyName,
ERXRestContext context)
Returns whether or not the given property can be seen. |
boolean |
displayDetails(ERXRestKey key,
ERXRestContext context)
|
java.lang.String[] |
displayProperties(ERXRestKey key,
boolean allProperties,
boolean allToMany,
ERXRestContext context)
|
java.lang.String |
entityAliasForEntityNamed(java.lang.String entityName)
Returns entityName; |
void |
inserted(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
Called after performing the user's requested insert. |
com.webobjects.eoaccess.EOEntity |
nextEntity(com.webobjects.eoaccess.EOEntity entity,
java.lang.String key)
Returns the destination entity for the given key on the specified entity. |
com.webobjects.foundation.NSArray |
objectsForEntity(com.webobjects.eoaccess.EOEntity entity,
ERXRestContext context)
Returns an array of all of the EOs visible to the user for the given entity. |
java.lang.String |
propertyAliasForPropertyNamed(com.webobjects.eoaccess.EOEntity entity,
java.lang.String propertyName)
Returns propertyName. |
java.lang.String |
propertyNameForPropertyAlias(com.webobjects.eoaccess.EOEntity entity,
java.lang.String propertyAlias)
Returns propertyAlias. |
IERXRestSecurityDelegate |
securityHandler()
|
void |
updated(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
Called after performing the user's requested updates. |
protected java.lang.Object |
valueForKey(java.lang.String key,
java.lang.String secondKey,
com.webobjects.foundation.NSKeyValueCoding first,
com.webobjects.foundation.NSKeyValueCoding second,
java.lang.Object defaultValue)
|
com.webobjects.foundation.NSArray |
visibleObjects(com.webobjects.eoaccess.EOEntity parentEntity,
java.lang.Object parentObject,
java.lang.String parentKey,
com.webobjects.eoaccess.EOEntity entity,
com.webobjects.foundation.NSArray objects,
ERXRestContext context)
Given an array, this method filters the array based on the callers permission level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERD2RestDefaultEntityDelegate()
| Method Detail |
|---|
public void inserted(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
throws ERXRestException,
ERXRestSecurityException
ERXAbstractRestEntityDelegate
inserted in class ERXAbstractRestEntityDelegateentity - the entity of the object being insertedeo - the inserted objectcontext - the rest context
ERXRestException - if a general error occurs
ERXRestSecurityException - if a security error occurs
public void updated(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
throws ERXRestException,
ERXRestSecurityException
ERXAbstractRestEntityDelegate
updated in class ERXAbstractRestEntityDelegateentity - the entity of the object being updatedeo - the updated objectcontext - the rest context
ERXRestException - if a general error occurs
ERXRestSecurityException - if a security error occurs
public java.lang.String[] displayProperties(ERXRestKey key,
boolean allProperties,
boolean allToMany,
ERXRestContext context)
throws ERXRestException,
ERXRestNotFoundException,
ERXRestSecurityException
displayProperties in interface IERXRestEntityDelegatedisplayProperties in class ERXAbstractRestEntityDelegateERXRestException
ERXRestNotFoundException
ERXRestSecurityException
public boolean displayDetails(ERXRestKey key,
ERXRestContext context)
throws ERXRestException,
ERXRestNotFoundException,
ERXRestSecurityException
displayDetails in interface IERXRestEntityDelegatedisplayDetails in class ERXAbstractRestEntityDelegateERXRestException
ERXRestNotFoundException
ERXRestSecurityExceptionpublic java.lang.String entityAliasForEntityNamed(java.lang.String entityName)
entityAliasForEntityNamed in interface IERXRestEntityDelegateentityAliasForEntityNamed in class ERXAbstractRestEntityDelegateentityName - the name of the entity to lookup
public java.lang.String propertyNameForPropertyAlias(com.webobjects.eoaccess.EOEntity entity,
java.lang.String propertyAlias)
propertyNameForPropertyAlias in interface IERXRestEntityDelegatepropertyNameForPropertyAlias in class ERXAbstractRestEntityDelegateentity - the entity that contains the propertypropertyAlias - the alias to lookup
public java.lang.String propertyAliasForPropertyNamed(com.webobjects.eoaccess.EOEntity entity,
java.lang.String propertyName)
propertyAliasForPropertyNamed in interface IERXRestEntityDelegatepropertyAliasForPropertyNamed in class ERXAbstractRestEntityDelegateentity - the entity that contains the propertypropertyName - the property name
public com.webobjects.eoaccess.EOEntity nextEntity(com.webobjects.eoaccess.EOEntity entity,
java.lang.String key)
IERXRestEntityDelegate
entity - the entity to checkkey - the key to return the entity for
protected java.lang.Object valueForKey(java.lang.String key,
java.lang.String secondKey,
com.webobjects.foundation.NSKeyValueCoding first,
com.webobjects.foundation.NSKeyValueCoding second,
java.lang.Object defaultValue)
public com.webobjects.foundation.NSArray objectsForEntity(com.webobjects.eoaccess.EOEntity entity,
ERXRestContext context)
throws ERXRestException,
ERXRestSecurityException
IERXRestEntityDelegate
entity - the entity to fetchcontext - the rest context
ERXRestException - if there is a general failure
ERXRestSecurityException - if the user requests objects that he/she is not permitted to see
public com.webobjects.foundation.NSArray visibleObjects(com.webobjects.eoaccess.EOEntity parentEntity,
java.lang.Object parentObject,
java.lang.String parentKey,
com.webobjects.eoaccess.EOEntity entity,
com.webobjects.foundation.NSArray objects,
ERXRestContext context)
throws ERXRestException,
ERXRestSecurityException,
ERXRestNotFoundException
IERXRestEntityDelegate
parentEntity - the entity of the parentparentObject - the parent objectparentKey - the key in the parent that references this arrayentity - the entity of the objects in the arrayobjects - the actual array of objects to filtercontext - the rest context
ERXRestException - if a general failure occurs
ERXRestSecurityException - if a security violation occurs (note that filtering results should not constitute a security
violation)
ERXRestNotFoundException - if an object cannot be foundpublic IERXRestSecurityDelegate securityHandler()
public boolean canDeleteObject(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the objecteo - the object to checkcontext - the rest context
public final boolean canInsertObject(com.webobjects.eoaccess.EOEntity entity,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the object to insertcontext - the rest context
public final boolean canInsertObject(com.webobjects.eoaccess.EOEntity parentEntity,
java.lang.Object parentObject,
java.lang.String parentKey,
com.webobjects.eoaccess.EOEntity entity,
ERXRestContext context)
IERXRestSecurityDelegate
parentEntity - the entity of the parentparentObject - the parentparentKey - the name of the relationship on the parententity - the entity of the object to insertcontext - the rest context
public final boolean canInsertProperty(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
java.lang.String propertyName,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the objecteo - the objectpropertyName - the property name to checkcontext - the rest context
public final boolean canUpdateObject(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the objecteo - the object to checkcontext - the rest context
public final boolean canUpdateProperty(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
java.lang.String propertyName,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the objecteo - the objectpropertyName - the property name to checkcontext - the rest context
public boolean canViewObject(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOEnterpriseObject eo,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the objecteo - the object to checkcontext - the rest context
public boolean canViewProperty(com.webobjects.eoaccess.EOEntity entity,
java.lang.Object obj,
java.lang.String propertyName,
ERXRestContext context)
IERXRestSecurityDelegate
entity - the entity of the objectobj - the objectpropertyName - the property name to checkcontext - the rest context
|
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 | |||||||||||