/** * Get whether the given user id is *explicitly* allowed to read this object. Even if this returns * false, the user may still be able to access it if getPublicReadAccess returns true or a role * that the user belongs to has read access. * * @param userId user id * @return Get whether the given user id is *explicitly* allowed to read this object */ public boolean getReadAccess(String userId) { return isReadAllowed(userId); }
/** * Get whether the public is allowed to read this object. */ public boolean getPublicReadAccess() { return isReadAllowed(publicTag); }
/** * Get whether users belonging to the role with the given roleName are allowed to read this * object. Even if this returns false, the role may still be able to read it if a parent role has * read access. * * @param roleName The name of the role. * @return true if the role has read access. false otherwise. */ public boolean getRoleReadAccess(String roleName) { return isReadAllowed(roleName); }
/** * Get whether users belonging to the role with the given roleName are allowed to read this * object. Even if this returns false, the role may still be able to read it if a parent role has * read access. * * @param roleName The name of the role. * @return true if the role has read access. false otherwise. */ public boolean getRoleReadAccess(String roleName) { return isReadAllowed(roleName); }
/** * Get whether the given user id is *explicitly* allowed to read this object. Even if this returns * false, the user may still be able to access it if getPublicReadAccess returns true or a role * that the user belongs to has read access. */ public boolean getReadAccess(String userId) { return isReadAllowed(userId); }
/** * Get whether the public is allowed to read this object. * * @return Get whether the public is allowed to read this objec */ public boolean getPublicReadAccess() { return isReadAllowed(publicTag); }