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