
Public Member Functions | |
| boolean | canDeleteObject (EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) |
| boolean | canInsertObject (EOEntity parentEntity, Object parentObject, String parentKey, EOEntity entity, ERXRestContext context) |
| boolean | canInsertObject (EOEntity entity, ERXRestContext context) |
| boolean | canInsertProperty (EOEntity entity, EOEnterpriseObject eo, String propertyName, ERXRestContext context) |
| boolean | canUpdateObject (EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) |
| boolean | canUpdateProperty (EOEntity entity, EOEnterpriseObject eo, String propertyName, ERXRestContext context) |
| boolean | canViewObject (EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) |
| boolean | canViewProperty (EOEntity entity, Object obj, String propertyName, ERXRestContext context) |
Protected Member Functions | |
| boolean | booleanValueForKey (String key, String propertyKey, EOEnterpriseObject eo) |
| boolean canDeleteObject | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the given object can be deleted. This is called prior to calling canDeleteProperty on any properties and acts as a first line of defenese to completely cut-off access to an object for delete. Note that the actual meaning of "delete" can be defined in your delete method, so returning true for this does not *necessarily* mean the object will be deleted. Instead it just means you will allow access to the delete method.
| entity | the entity of the object | |
| eo | the object to check | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canInsertObject | ( | EOEntity | parentEntity, | |
| Object | parentObject, | |||
| String | parentKey, | |||
| EOEntity | entity, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not a new object can be inserted into the specified relationship of an existing object.
| parentEntity | the entity of the parent | |
| parentObject | the parent | |
| parentKey | the name of the relationship on the parent | |
| entity | the entity of the object to insert | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canInsertObject | ( | EOEntity | entity, | |
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the caller is allowed to insert a new object of the given entity. This variant is called if the caller tries to insert an object without traversing a keypath -- that is, a top level insert. You can return false from this without implying that canInsertObject(..., parentObject, parentKey ..) returns false -- the two are mutually exclusive.
| entity | the entity of the object to insert | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canInsertProperty | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| String | propertyName, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the given property can be set during an insert. This is only called if canInsertObject has returned true.
| entity | the entity of the object | |
| eo | the object | |
| propertyName | the property name to check | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canUpdateObject | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the given object can be updated. This is called prior to calling canUpdateProperty on any properties and acts as a first line of defenese to completely cut-off access to an object for update
| entity | the entity of the object | |
| eo | the object to check | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canUpdateProperty | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| String | propertyName, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the given property can be set during an update. This is only called if canUpdateObject has returned true.
| entity | the entity of the object | |
| eo | the object | |
| propertyName | the property name to check | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canViewObject | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the given object can be seen. This is called prior to calling canViewProperty on any properties and acts as a first line of defenese to completely cut-off access to an object.
| entity | the entity of the object | |
| eo | the object to check | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
| boolean canViewProperty | ( | EOEntity | entity, | |
| Object | obj, | |||
| String | propertyName, | |||
| ERXRestContext | context | |||
| ) | [virtual] |
Returns whether or not the given property can be seen. This is only called if canViewObject has returned true.
| entity | the entity of the object | |
| obj | the object | |
| propertyName | the property name to check | |
| context | the rest context |
Implements IERXRestSecurityDelegate.
1.5.8