Package org.mycore.access.strategies
Class MCRParentRuleStrategy
java.lang.Object
org.mycore.access.strategies.MCRParentRuleStrategy
- All Implemented Interfaces:
MCRAccessCheckStrategy
Use this class if you want to have a fallback to ancestor access rules.
First a check is done for the MCRObjectID. If no rule for the ID is specified
it will be tried to check the permission agains the MCRObjectID of the parent
object and so on.
- Version:
- $Revision$ $Date$
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPermission
(String id, String permission) determines whether the current user has the permission to perform a certain action.
-
Constructor Details
-
MCRParentRuleStrategy
public MCRParentRuleStrategy()
-
-
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:
id
- the MCRObjectID of the objectpermission
- the access permission for the rule- Returns:
- true if the access is allowed otherwise it return
- See Also:
-