Class MCRAccessKeyStrategy

java.lang.Object
org.mycore.mcr.acl.accesskey.strategy.MCRAccessKeyStrategy
All Implemented Interfaces:
MCRAccessCheckStrategy

public class MCRAccessKeyStrategy extends Object implements MCRAccessCheckStrategy
Strategy for MCRAccessKey.
  • Constructor Details

    • MCRAccessKeyStrategy

      public MCRAccessKeyStrategy()
  • Method Details

    • checkPermission

      public boolean checkPermission(String objectIdString, String permission)
      Description copied from interface: MCRAccessCheckStrategy
      determines whether the current user has the permission to perform a certain action.
      Specified by:
      checkPermission in interface MCRAccessCheckStrategy
      Parameters:
      objectIdString - the MCRObjectID of the object
      permission - the access permission for the rule
      Returns:
      true if the access is allowed otherwise it return
      See Also:
    • checkObjectPermission

      public boolean checkObjectPermission(MCRObjectID objectId, String permission)
      Fetches access key and checks object permission
      Parameters:
      objectId - the MCRObjectID
      permission - permission type
      Returns:
      true if permitted, otherwise false
    • checkDerivatePermission

      public boolean checkDerivatePermission(MCRObjectID objectId, String permission)
      Fetches access key and checks derivate permission
      Parameters:
      objectId - the MCRObjectID
      permission - permission type
      Returns:
      true if permitted, otherwise false