use of org.mycore.access.mcrimpl.MCRRuleStore in project mycore by MyCoRe-Org.
the class MCRWCMSAccessResource method getRuleList.
@GET
public String getRuleList() {
JsonObject returnObject = new JsonObject();
MCRRuleStore store = MCRRuleStore.getInstance();
Collection<String> ruleIds = store.retrieveAllIDs();
for (String id : ruleIds) {
MCRAccessRule rule = store.getRule(id);
returnObject.addProperty(rule.getId(), rule.getDescription());
}
return returnObject.toString();
}
Aggregations