Package org.mycore.access.mcrimpl
Class MCRAccessRule
java.lang.Object
org.mycore.access.mcrimpl.MCRAccessRule
- All Implemented Interfaces:
MCRAccessRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkAccess
(String userID, Date date, MCRIPAddress ip) Deprecated.boolean
checkAccess
(MCRUserInformation userInfo, Date date, MCRIPAddress ip) getId()
getRule()
void
setCreationTime
(Date creationTime) void
setCreator
(String creator) void
setDescription
(String description) void
void
boolean
validate()
determines whether the current user has the permission to perform a certain action.
-
Constructor Details
-
MCRAccessRule
public MCRAccessRule(String id, String creator, Date creationTime, String rule, String description) throws MCRParseException - Throws:
MCRParseException
-
-
Method Details
-
checkAccess
Deprecated. -
checkAccess
-
getRule
-
setRule
-
getRuleString
-
getCreationTime
-
setCreationTime
-
getCreator
-
setCreator
-
getDescription
-
setDescription
-
getId
-
setId
-
getRuleElement
-
validate
public boolean validate()Description copied from interface:MCRAccessRule
determines whether the current user has the permission to perform a certain action.- Specified by:
validate
in interfaceMCRAccessRule
- Returns:
- true if the permission is granted, else false
-