Interface ShareTypePermissionChecker

All Known Implementing Classes:
AuthenticatedUserShareTypePermissionChecker, GlobalShareTypePermissionChecker, GroupShareTypePermissionChecker, ProjectShareTypePermissionChecker, UserShareTypePermissionChecker

public interface ShareTypePermissionChecker
Classes that implement this interface check that a user has permission to see a SharedEntity shared by the associated ShareType.
Since:
v3.13
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the passed user is given rights by the ShareType to user/view a SharedEntity with the passed permission.
  • Method Details

    • hasPermission

      boolean hasPermission(ApplicationUser user, SharePermission permission)
      Checks if the passed user is given rights by the ShareType to user/view a SharedEntity with the passed permission.
      Parameters:
      user - the user whose permission should be validated.
      permission - the permission to validate against.
      Returns:
      true if the user is given rights or false otherwise.