Interface PermissionFactory

  • All Known Implementing Classes:
    DefaultPermissionFactory

    public interface PermissionFactory
    Provides a simple mechanism to retrieve Permission instances from integer masks.
    Since:
    2.0.3
    • Method Detail

      • buildFromMask

        Permission buildFromMask​(int mask)
        Dynamically creates a CumulativePermission or BasePermission representing the active bits in the passed mask.
        Parameters:
        mask - to build
        Returns:
        a Permission representing the requested object
      • buildFromName

        Permission buildFromName​(java.lang.String name)
      • buildFromNames

        java.util.List<Permission> buildFromNames​(java.util.List<java.lang.String> names)