Class MCRRuleStore

java.lang.Object
org.mycore.access.mcrimpl.MCRRuleStore
Direct Known Subclasses:
MCRJPARuleStore

public abstract class MCRRuleStore extends Object
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 Details

  • Constructor Details

    • MCRRuleStore

      public MCRRuleStore()
  • Method Details

    • createRule

      public abstract void createRule(MCRAccessRule rule)
    • updateRule

      public abstract void updateRule(MCRAccessRule rule)
    • deleteRule

      public abstract void deleteRule(String ruleid)
    • getRule

      public abstract MCRAccessRule getRule(String ruleid)
    • existsRule

      public abstract boolean existsRule(String ruleid)
    • retrieveAllIDs

      public abstract Collection<String> retrieveAllIDs()
    • retrieveRuleIDs

      public abstract Collection<String> retrieveRuleIDs(String ruleExpression, String description)
    • getNextFreeRuleID

      public abstract int getNextFreeRuleID(String prefix)
    • getInstance

      public static MCRRuleStore getInstance()