org.pelds.store
Class RuleStore

java.lang.Object
  extended by org.pelds.store.DbInterface
      extended by org.pelds.store.RuleStore

public class RuleStore
extends DbInterface

API for access policy (rule) storage

Author:
Hannes Muehleisen (hannes@muehleisen.org)

Constructor Summary
RuleStore(java.lang.String aDatasetUri)
          Constructor, create a rule storage instance for the given graph
 
Method Summary
 java.lang.String getRuleStr()
          Get the current access policy in its String representation
 void setRuleStr(java.lang.String ruleStr)
          Save a new access policy to the policy store
 
Methods inherited from class org.pelds.store.DbInterface
closeConnection, getConfig, getConnection, setConfig
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleStore

public RuleStore(java.lang.String aDatasetUri)
Constructor, create a rule storage instance for the given graph

Parameters:
aDatasetUri - named graph identifier in form of an URI
Method Detail

getRuleStr

public java.lang.String getRuleStr()
Get the current access policy in its String representation

Returns:
access policy as String

setRuleStr

public void setRuleStr(java.lang.String ruleStr)
Save a new access policy to the policy store

Parameters:
ruleStr - access policy as String