org.openpermis.policy.io
Class StrictPolicyReader

java.lang.Object
  extended by org.openpermis.policy.io.StrictPolicyReader
All Implemented Interfaces:
PolicyReader

public class StrictPolicyReader
extends Object
implements PolicyReader

Strict policy reader, which only successfully reads valid policies.

Since:
0.4.0

Constructor Summary
StrictPolicyReader(PolicyReader policyReader)
          Creates a new strict policy reader that uses the specified reader.
 
Method Summary
 Policy readPolicy()
          Reads a policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictPolicyReader

public StrictPolicyReader(PolicyReader policyReader)
                   throws PolicyException
Creates a new strict policy reader that uses the specified reader.

Parameters:
policyReader - the policy reader.
Throws:
PolicyException - if the XML reader cannot be created.
Since:
0.4.0
Method Detail

readPolicy

public Policy readPolicy()
                  throws PolicyException
Description copied from interface: PolicyReader
Reads a policy.

Specified by:
readPolicy in interface PolicyReader
Returns:
the policy read.
Throws:
PolicyException - if there is an error reading the policy.
Since:
0.4.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG