Package org.mycore.access.mcrimpl
Class MCRRuleStore
java.lang.Object
org.mycore.access.mcrimpl.MCRRuleStore
- Direct Known Subclasses:
MCRJPARuleStore
The purpose of this interface is to make the choice of the persistence layer
configurable. Any concrete database-class which stores MyCoRe Access control
must implement this interface. Which database actually will be used can then
be configured by reading the value
MCR.Persistence.Rule.Store_Class
from mycore.properties.access- Author:
- Arne Seifert
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
createRule
(MCRAccessRule rule) abstract void
deleteRule
(String ruleid) abstract boolean
existsRule
(String ruleid) static MCRRuleStore
abstract int
getNextFreeRuleID
(String prefix) abstract MCRAccessRule
abstract Collection<String>
abstract Collection<String>
retrieveRuleIDs
(String ruleExpression, String description) abstract void
updateRule
(MCRAccessRule rule)
-
Field Details
-
SQL_DATE_FORMAT
- See Also:
-
RULETABLENAME
- See Also:
-
-
Constructor Details
-
MCRRuleStore
public MCRRuleStore()
-
-
Method Details
-
createRule
-
updateRule
-
deleteRule
-
getRule
-
existsRule
-
retrieveAllIDs
-
retrieveRuleIDs
-
getNextFreeRuleID
-
getInstance
-