@Override public OIdentifiable allowUser(final ODocument iDocument, final String iAllowFieldName, final String iUserName) { final ORID user = getUserRID(iUserName); if (user == null) throw new IllegalArgumentException("User '" + iUserName + "' not found"); return allowIdentity(iDocument, iAllowFieldName, user); }
@Override public OIdentifiable allowRole(final ODocument iDocument, final String iAllowFieldName, final String iRoleName) { final ORID role = getRoleRID(iRoleName); if (role == null) throw new IllegalArgumentException("Role '" + iRoleName + "' not found"); return allowIdentity(iDocument, iAllowFieldName, role); }
@Override public OIdentifiable allowRole(final ODocument iDocument, final ORestrictedOperation iOperation, final String iRoleName) { final ORID role = getRoleRID(iRoleName); if (role == null) throw new IllegalArgumentException("Role '" + iRoleName + "' not found"); return allowIdentity(iDocument, iOperation.getFieldName(), role); }
@Override public OIdentifiable allowUser(final ODocument iDocument, final ORestrictedOperation iOperation, final String iUserName) { final ORID user = getUserRID(iUserName); if (user == null) throw new IllegalArgumentException("User '" + iUserName + "' not found"); return allowIdentity(iDocument, iOperation.getFieldName(), user); }