/** * Set whether users belonging to the given role are allowed to read this object. The role must * already be saved on the server and its data must have been fetched in order to use this method. * * @param role The role to assign access. * @param allowed Whether the given role can read this object. */ public void setRoleReadAccess(AVRole role, boolean allowed) { setRoleReadAccess(role.getName(), allowed); }
/** * Set whether users belonging to the given role are allowed to read this object. The role must * already be saved on the server and its data must have been fetched in order to use this method. * * @param role The role to assign access. * @param allowed Whether the given role can read this object. */ public void setRoleReadAccess(AVRole role, boolean allowed) { setRoleReadAccess(role.getName(), allowed); }