
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) |
| void | delete (EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) throws ERXRestException, ERXRestSecurityException |
| ERXUnsafeReadOnlyRestEntityDelegate () | |
| void | initializeEntityNamed (String entityName) |
| void | inserted (EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) throws ERXRestException, ERXRestSecurityException |
| NSArray | objectsForEntity (EOEntity entity, ERXRestContext context) |
| void | updated (EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) throws ERXRestException, ERXRestSecurityException |
| NSArray | visibleObjects (EOEntity parentEntity, Object parent, String key, EOEntity entity, NSArray objects, ERXRestContext context) |
Private Attributes | |
| NSMutableSet< String > | _initializedEntityNames |
| 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 true if propertyName is declared as an insert property.
| entity | the entity | |
| eo | the object to check | |
| propertyName | the property name to check | |
| context | the rest context |
Reimplemented from ERXStandardRestEntityDelegate.
| 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 true if propertyName is declared as an update property.
| entity | the entity | |
| eo | the object to check | |
| propertyName | the property name to check | |
| context | the rest context |
Reimplemented from ERXStandardRestEntityDelegate.
| 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 true if propertyName is declared as a view property.
| entity | the entity | |
| obj | the object to check | |
| propertyName | the property name to check | |
| context | the rest context |
Reimplemented from ERXStandardRestEntityDelegate.
| void delete | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| ERXRestContext | context | |||
| ) | throws ERXRestException, ERXRestSecurityException |
Deletes the given object.
| entity | the entity of the object | |
| eo | the object to delete | |
| context | the rest context |
| ERXRestException | if a general failure occurs. | |
| ERXRestSecurityException | if a security failure occurs |
Reimplemented from ERXAbstractRestEntityDelegate.
| void initializeEntityNamed | ( | String | entityName | ) |
Do nothing by default
Reimplemented from ERXAbstractRestEntityDelegate.
| void inserted | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| ERXRestContext | context | |||
| ) | throws ERXRestException, ERXRestSecurityException [virtual] |
Default empty implementation. Extend to do custom insertion processing for the object.
| entity | the entity of the object | |
| eo | the inserted object | |
| context | the rest context |
| ERXRestException | if a general error occurs | |
| ERXRestSecurityException | if a security exception occurs |
Reimplemented from ERXStandardRestEntityDelegate.
| NSArray objectsForEntity | ( | EOEntity | entity, | |
| ERXRestContext | context | |||
| ) |
Returns an array of all of the EOs visible to the user for the given entity.
| entity | the entity to fetch | |
| context | the rest context |
| ERXRestException | if there is a general failure | |
| ERXRestSecurityException | if the user requests objects that he/she is not permitted to see |
Implements IERXRestEntityDelegate.
| void updated | ( | EOEntity | entity, | |
| EOEnterpriseObject | eo, | |||
| ERXRestContext | context | |||
| ) | throws ERXRestException, ERXRestSecurityException [virtual] |
Default empty implementation. Extend to do custom update processing for the object.
| entity | the entity of the object | |
| eo | the updated object | |
| context | the rest context |
| ERXRestException | if a general error occurs | |
| ERXRestSecurityException | if a security exception occurs |
Reimplemented from ERXStandardRestEntityDelegate.
| NSArray visibleObjects | ( | EOEntity | parentEntity, | |
| Object | parentObject, | |||
| String | parentKey, | |||
| EOEntity | entity, | |||
| NSArray | objects, | |||
| ERXRestContext | context | |||
| ) |
Given an array, this method filters the array based on the callers permission level. This method should never return null. To cut off access to the array entirely, return NSArray.EmptyArray. This method is only called after having verified access to the specified key on the parent object.
| parentEntity | the entity of the parent | |
| parentObject | the parent object | |
| parentKey | the key in the parent that references this array | |
| entity | the entity of the objects in the array | |
| objects | the actual array of objects to filter | |
| context | 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 found |
Implements IERXRestEntityDelegate.
NSMutableSet<String> _initializedEntityNames [private] |
1.5.8