Interface MCRRequestScopeACL

All Superinterfaces:
MCRAccessInterface

public interface MCRRequestScopeACL extends MCRAccessInterface
  • Method Details

    • isPrivate

      boolean isPrivate()
    • getInstance

      static MCRRequestScopeACL getInstance(jakarta.ws.rs.container.ContainerRequestContext requestContext)
    • checkPermissionForUser

      default boolean checkPermissionForUser(String permission, MCRUserInformation userInfo)
      Description copied from interface: MCRAccessInterface
      determines whether a given user has the permission to perform a certain action. no session data will be checked here. This method is used for checking "a priori permissions" like "create-document" where a String ID does not exist yet
      Specified by:
      checkPermissionForUser in interface MCRAccessInterface
      Parameters:
      permission - the permission/action to be granted, e.g. "create-document"
      userInfo - the MCRUser, whose permissions are checked
      Returns:
      true if the permission is granted, else false
    • checkPermission

      default boolean checkPermission(String id, String permission, MCRUserInformation userInfo)
      Description copied from interface: MCRAccessInterface
      determines whether a given user has the permission to perform a certain action. no session data will be checked here. The parameter id serves as an identifier for the concrete underlying rule, e.g. a MCRObjectID.
      Specified by:
      checkPermission in interface MCRAccessInterface
      Parameters:
      id - the ID-String of the object
      permission - the permission/action to be granted, e.g. "read"
      userInfo - the MCRUser, whose permissions are checked
      Returns:
      true if the permission is granted, else false