public class ERD2RestDefaultSecurityDelegate implements IERXRestSecurityDelegate {
protected boolean booleanValueForKey(String key, String propertyKey, EOEnterpriseObject eo) {
D2WContext context = ERDirectToRest.d2wContext();
context.setPropertyKey(propertyKey);
context.takeValueForKey(eo, "object");
return ERXValueUtilities.booleanValue(context.valueForKey(key));
}
public boolean canDeleteObject(EOEntity entity, EOEnterpriseObject eo, ERXRestContext context) {
return booleanValueForKey("restCanDelete", null, eo);