|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.access.mcrimpl.MCRRuleStore
org.mycore.backend.hibernate.MCRHIBRuleStore
public class MCRHIBRuleStore
Hibernate implementation for RuleStore, storing access rules
| Field Summary |
|---|
| Fields inherited from class org.mycore.access.mcrimpl.MCRRuleStore |
|---|
logger, ruletablename, sqlDateformat |
| Constructor Summary | |
|---|---|
MCRHIBRuleStore()
|
|
| Method Summary | |
|---|---|
void |
createRule(MCRAccessRule rule)
Method creates new rule in database by given rule-object |
void |
deleteRule(String ruleid)
Method deletes accessrule for given ruleid |
boolean |
existsRule(String ruleid)
Method checks existance of rule in db |
int |
getNextFreeRuleID(String prefix)
|
MCRAccessRule |
getRule(String ruleid)
Method returns MCRAccessRule by given id |
Collection<String> |
retrieveAllIDs()
|
MCRAccessRule |
retrieveRule(String ruleid)
Method returns accessrule for given ruleid |
Collection<String> |
retrieveRuleIDs(String ruleExpression,
String description)
Method retrieves the ruleIDs of rules, whose string-representation starts with given data |
void |
updateRule(MCRAccessRule rule)
Method updates accessrule by given rule. |
| Methods inherited from class org.mycore.access.mcrimpl.MCRRuleStore |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRHIBRuleStore()
| Method Detail |
|---|
public void createRule(MCRAccessRule rule)
createRule in class MCRRuleStorerule - as MCRAccessRule
public Collection<String> retrieveRuleIDs(String ruleExpression,
String description)
retrieveRuleIDs in class MCRRuleStorepublic void updateRule(MCRAccessRule rule)
updateRule in class MCRRuleStorepublic void deleteRule(String ruleid)
deleteRule in class MCRRuleStorepublic MCRAccessRule retrieveRule(String ruleid)
retrieveRule in class MCRRuleStoreruleid - as string
public MCRAccessRule getRule(String ruleid)
getRule in class MCRRuleStoreruleid - as string
public Collection<String> retrieveAllIDs()
retrieveAllIDs in class MCRRuleStore
public boolean existsRule(String ruleid)
throws MCRException
existsRule in class MCRRuleStoreruleid - id as string
MCRExceptionpublic int getNextFreeRuleID(String prefix)
getNextFreeRuleID in class MCRRuleStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||