Class MCRAccessKeyStrategy
java.lang.Object
org.mycore.mcr.acl.accesskey.strategy.MCRAccessKeyStrategy
- All Implemented Interfaces:
MCRAccessCheckStrategy
Strategy for
MCRAccessKey
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkDerivatePermission
(MCRObjectID objectId, String permission) Fetches access key and checks derivate permissionboolean
checkObjectPermission
(MCRObjectID objectId, String permission) Fetches access key and checks object permissionboolean
checkPermission
(String objectIdString, String permission) determines whether the current user has the permission to perform a certain action.
-
Constructor Details
-
MCRAccessKeyStrategy
public MCRAccessKeyStrategy()
-
-
Method Details
-
checkPermission
Description copied from interface:MCRAccessCheckStrategy
determines whether the current user has the permission to perform a certain action.- Specified by:
checkPermission
in interfaceMCRAccessCheckStrategy
- Parameters:
objectIdString
- the MCRObjectID of the objectpermission
- the access permission for the rule- Returns:
- true if the access is allowed otherwise it return
- See Also:
-
checkObjectPermission
Fetches access key and checks object permission- Parameters:
objectId
- theMCRObjectID
permission
- permission type- Returns:
- true if permitted, otherwise false
-
checkDerivatePermission
Fetches access key and checks derivate permission- Parameters:
objectId
- theMCRObjectID
permission
- permission type- Returns:
- true if permitted, otherwise false
-