/** * Set whether the public is allowed to read this object. */ public void setPublicReadAccess(boolean allowed) { allowRead(allowed, publicTag); }
/** * Set whether the given user is allowed to read this object. */ public void setReadAccess(String userId, boolean allowed) { allowRead(allowed, userId); }
/** * Set whether the public is allowed to read this object. * * @param allowed public read permission */ public void setPublicReadAccess(boolean allowed) { allowRead(allowed, publicTag); }
/** * Set whether the given user is allowed to read this object. * * @param userId specified user id * * @param allowed read permission for specified user */ public void setReadAccess(String userId, boolean allowed) { allowRead(allowed, userId); }
/** * Set whether users belonging to the role with the given roleName are allowed to read this * object. * * @param roleName The name of the role. * @param allowed Whether the given role can read this object. */ public void setRoleReadAccess(String roleName, boolean allowed) { allowRead(allowed, getRoleTagKey(roleName)); }
/** * Set whether users belonging to the role with the given roleName are allowed to read this * object. * * @param roleName The name of the role. * @param allowed Whether the given role can read this object. */ public void setRoleReadAccess(String roleName, boolean allowed) { allowRead(allowed, getRoleTagKey(roleName)); }