Interface MCRRequestScopeACL
- All Superinterfaces:
MCRAccessInterface
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
checkPermission
(String id, String permission, MCRUserInformation userInfo) determines whether a given user has the permission to perform a certain action. no session data will be checked here.default boolean
checkPermissionForUser
(String permission, MCRUserInformation userInfo) determines whether a given user has the permission to perform a certain action. no session data will be checked here.static MCRRequestScopeACL
getInstance
(jakarta.ws.rs.container.ContainerRequestContext requestContext) boolean
Methods inherited from interface org.mycore.access.MCRAccessInterface
checkPermission, checkPermission
-
Method Details
-
isPrivate
boolean isPrivate() -
getInstance
static MCRRequestScopeACL getInstance(jakarta.ws.rs.container.ContainerRequestContext requestContext) -
checkPermissionForUser
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 interfaceMCRAccessInterface
- 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
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 parameterid
serves as an identifier for the concrete underlying rule, e.g. a MCRObjectID.- Specified by:
checkPermission
in interfaceMCRAccessInterface
- Parameters:
id
- the ID-String of the objectpermission
- 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
-