Package org.mycore.access.mcrimpl
Class MCRAccessStore
java.lang.Object
org.mycore.access.mcrimpl.MCRAccessStore
- Direct Known Subclasses:
MCRJPAAccessStore
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.Access.Store.Class
from mycore.properties.access- Version:
- $Revision$ $Date$
- Author:
- Arne Seifert
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
createAccessDefinition
(MCRRuleMapping accessdata) abstract void
deleteAccessDefinition
(MCRRuleMapping accessdata) abstract boolean
existsRule
(String objid, String pool) abstract MCRRuleMapping
getAccessDefinition
(String pool, String objid) abstract Collection<String>
getDefinition
(String type) alle Elemente eines Datentypes aufbereitenabstract Collection<String>
static MCRAccessStore
abstract Collection<String>
getMappedObjectId
(String pool) static Collection<String>
getPools()
abstract Collection<String>
getPoolsForObject
(String objid) abstract String
abstract boolean
isRuleInUse
(String ruleid) abstract void
updateAccessDefinition
(MCRRuleMapping accessdata)
-
Field Details
-
SQL_DATEFORMAT
- See Also:
-
ACCESS_POOLS
-
-
Constructor Details
-
MCRAccessStore
public MCRAccessStore()
-
-
Method Details
-
getRuleID
-
createAccessDefinition
-
deleteAccessDefinition
-
updateAccessDefinition
-
getAccessDefinition
-
getMappedObjectId
-
getPoolsForObject
-
getDatabasePools
-
existsRule
-
isRuleInUse
-
getDistinctStringIDs
- Returns:
- a collection of all String IDs an access rule is assigned to
-
getInstance
-
getPools
-
getDefinition
alle Elemente eines Datentypes aufbereiten- Parameters:
type
- document type- Returns:
- List of MCRAccessDefinition
- See Also:
-
getRules
-