Interface AccessControlled

    • Method Detail

      • hasPermission

        boolean hasPermission​(Permission permission)
        Check if the logged in user has the desired permission on the item.
        Parameters:
        permission - The permission to check if the user has.
        Returns:
        TRUE if the user has the permission, FALSE otherwise
      • checkPermission

        void checkPermission​(Permission permission)
                      throws PermissionDeniedException
        Check if the logged in user has the desired permission on the item, otherwise throw an exception.
        Parameters:
        permission - Permission the user should have.
        Throws:
        PermissionDeniedException - If the user doesn't have the requested permission
      • getPermissions

        Set<Permission> getPermissions()
        Get the logged in user's permissions on the item.