Class SecurityUtils

java.lang.Object
ubic.gemma.persistence.util.SecurityUtils

public class SecurityUtils extends Object
  • Constructor Details

    • SecurityUtils

      public SecurityUtils()
  • Method Details

    • getPermissions

      public static boolean[] getPermissions(gemma.gsec.acl.domain.AclObjectIdentity aoi)
      Checks ACL related properties from the AclObjectIdentity. Some of the code is adapted from SecurityUtil, but allows usage without an Acl object.
      Parameters:
      aoi - the acl object identity of an object whose permissions are to be checked.
      Returns:
      an array of booleans that represent permissions of currently logged in user as follows:
      1. is object public
      2. can user write to object
      3. is object shared
      (note that actual indexing in the array starts at 0).