Class BambooPermission

  • All Implemented Interfaces:
    Serializable, org.acegisecurity.acls.Permission

    public class BambooPermission
    extends Object
    implements org.acegisecurity.acls.Permission, Serializable
    Notes: - permissions name strings should not contain '_' character to avoid interfering with UI field id creation
    See Also:
    Serialized Form
    • Method Detail

      • determineNameFromPermission

        @Nullable
        public static @Nullable String determineNameFromPermission​(org.acegisecurity.acls.Permission permission)
        Determine the name of the permission based on the bit mask. TODO: Do we still need it? We should be operating on BambooPermission objects instead of Strings
      • getPlanPermissionsList

        @NotNull
        @Deprecated
        public static @NotNull com.google.common.collect.ImmutableList<BambooPermission> getPlanPermissionsList()
        Returns collection of all possible collections for plan. Has to be updated, when new permission is added
        Returns:
        collection of all possible permissions for plan
      • buildFromMask

        public static org.acegisecurity.acls.Permission buildFromMask​(int mask)
        Dynamically creates a CumulativePermission or BambooPermission representing the active bits in the passed mask.
        Parameters:
        mask - to build
        Returns:
        a Permission representing the requested object
      • buildFromMask

        public static org.acegisecurity.acls.Permission[] buildFromMask​(int[] inputMasks)
      • buildFromName

        @NotNull
        public static @NotNull org.acegisecurity.acls.Permission buildFromName​(String name)
      • buildFromName

        public static org.acegisecurity.acls.Permission[] buildFromName​(String[] names)
      • isGlobalPermissionGrantedForRestrictedAdmin

        public static boolean isGlobalPermissionGrantedForRestrictedAdmin​(org.acegisecurity.acls.Permission permission)
        Check if global permission is granted for restricted admin
      • convertToBambooPermission

        public static BambooPermission convertToBambooPermission​(org.acegisecurity.acls.Permission permission)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getMask

        public int getMask()
        Specified by:
        getMask in interface org.acegisecurity.acls.Permission
      • getName

        public String getName()
      • getPattern

        public String getPattern()
        Specified by:
        getPattern in interface org.acegisecurity.acls.Permission