Class PermissionSet

    • Constructor Detail

      • PermissionSet

        public PermissionSet()
        Constructs an empty PermissionSet
      • PermissionSet

        public PermissionSet​(Collection<? extends Permission> permissions)
        Constructs a new PermissionSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.
        Parameters:
        permissions - A collection of permissions to be contained in the set.
    • Method Detail

      • getPermissionByName

        @Deprecated
        public Permission getPermissionByName​(String permissionName)
        Deprecated.
        use getByName()
        Returns a Permission with the given name, if it is contained in this PermissionSet.
        Parameters:
        permissionName - Name of Permission.
        Returns:
        Permission if argument matched a Permission in this PermissionSet; null if no match.
      • getPermissionById

        @Deprecated
        public Permission getPermissionById​(Object permissionId)
        Deprecated.
        Use getById()
        Returns a Permission with the given id, if it is contained in this PermissionSet.
        Parameters:
        permissionId - Id of the Permission.
        Returns:
        Permission if argument matched a Permission in this PermissionSet; null if no match.