public class PolicyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getActions(org.jboss.security.xacml.sunxacml.EvaluationCtx context)
Get the action ids.
|
static javax.jcr.Node |
getFirstRealNode(String modepath,
javax.jcr.Session session)
Find the nearest real Modeshape node for a given Modeshape path.
|
static String |
getID(Document doc)
Get the ID of the XACML policy document.
|
static String |
getID(InputStream policyStream)
Extract a policy set or policy ID for the document.
|
static String |
getPathForId(String id)
Gets the repository path for a policy ID.
|
public static String getID(InputStream policyStream)
policyStream
- the policy inputpublic static String getID(Document doc)
doc
- the DOMpublic static String getPathForId(String id)
id
- the policy idpublic static javax.jcr.Node getFirstRealNode(String modepath, javax.jcr.Session session)
modepath
- the path in ModeShapesession
- a sessionpublic static Set<String> getActions(org.jboss.security.xacml.sunxacml.EvaluationCtx context)
context
- the evaluation contextCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.