|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.security.xacml.pdp.decorator.PolicyObject
public class PolicyObject
Wrapper for a FeSL XACML policy stored as a Fedora digital object. Contains method for determining whether or not this is a digital object that represents an active FeSL XACML policy. Only objects that have a policy datastream which is active within an active object are deemed to be active policies.
| Field Summary | |
|---|---|
static String |
POLICY_DATASTREAM
|
| Constructor Summary | |
|---|---|
PolicyObject(DOManager manager,
Context context,
String pid,
String objectState,
String dsID,
String dsState)
Create a new PolicyObject, initialising the object based on the supplied parameters. |
|
| Method Summary | |
|---|---|
InputStream |
getDsContent()
get the policy datastream content |
boolean |
hasPolicyDatastream()
determines if this object contains a policy datastream |
boolean |
isDatastreamActive()
determines if the policy datastream in this object is active |
boolean |
isObjectActive()
determines if this digital object is active |
boolean |
isPolicyActive()
determines if this object represents an active FeSL policy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String POLICY_DATASTREAM
| Constructor Detail |
|---|
public PolicyObject(DOManager manager,
Context context,
String pid,
String objectState,
String dsID,
String dsState)
manager - context - pid - objectState - dsID - dsState - | Method Detail |
|---|
public boolean isPolicyActive()
throws ServerException
ServerException
public boolean isObjectActive()
throws ServerException
ServerException
public boolean isDatastreamActive()
throws ServerException
ServerException
public boolean hasPolicyDatastream()
throws ServerException
ServerException
public InputStream getDsContent()
throws ServerException
ServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||