Package ubic.gemma.persistence.util
Class SecurityUtils
java.lang.Object
ubic.gemma.persistence.util.SecurityUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean[]
getPermissions
(gemma.gsec.acl.domain.AclObjectIdentity aoi) Checks ACL related properties from the AclObjectIdentity.
-
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 fromSecurityUtil
, 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:
- is object public
- can user write to object
- is object shared
-