|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.impl.PolicyBuilder
public class PolicyBuilder
Builds policies from input streams.
| Field Summary | |
|---|---|
protected static java.lang.String |
GROUP_ELEMENT
|
protected static java.lang.String |
ID_ATTRIBUTE
|
protected static java.lang.String |
IP_RANGE_ELEMENT
|
protected static java.lang.String |
METHOD_ATTRIBUTE
|
protected static java.lang.String |
POLICY_ELEMENT
|
protected static java.lang.String |
ROLE_ELEMENT
|
protected static java.lang.String |
SSL_ATTRIBUTE
|
protected static java.lang.String |
USER_ELEMENT
|
protected static java.lang.String |
WORLD_ELEMENT
|
| Constructor Summary | |
|---|---|
PolicyBuilder(org.apache.lenya.ac.AccreditableManager _accreditableManager)
Ctor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
build(java.io.InputStream stream)
|
org.apache.lenya.ac.ModifiablePolicy |
buildPolicy(org.w3c.dom.Document document)
Builds a policy from an XML document. |
org.apache.lenya.ac.ModifiablePolicy |
buildPolicy(java.io.InputStream stream)
Builds a policy from an input stream. |
protected org.apache.lenya.ac.Accreditable |
getAccreditable(java.lang.String elementName,
java.lang.String id)
Creates an accredtiable for an element. |
org.apache.lenya.ac.AccreditableManager |
getAccreditableManager()
Returns the accreditable manager. |
protected static org.w3c.dom.Element |
save(org.apache.lenya.ac.Accreditable accreditable,
org.apache.lenya.xml.NamespaceHelper helper)
Saves an accreditable to an XML element. |
static org.w3c.dom.Document |
savePolicy(org.apache.lenya.ac.Policy policy)
Saves a policy to an XML document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String POLICY_ELEMENT
protected static final java.lang.String GROUP_ELEMENT
protected static final java.lang.String USER_ELEMENT
protected static final java.lang.String ROLE_ELEMENT
protected static final java.lang.String WORLD_ELEMENT
protected static final java.lang.String IP_RANGE_ELEMENT
protected static final java.lang.String ID_ATTRIBUTE
protected static final java.lang.String SSL_ATTRIBUTE
protected static final java.lang.String METHOD_ATTRIBUTE
| Constructor Detail |
|---|
public PolicyBuilder(org.apache.lenya.ac.AccreditableManager _accreditableManager)
_accreditableManager - An accreditable manager.| Method Detail |
|---|
public org.apache.lenya.ac.AccreditableManager getAccreditableManager()
public org.apache.lenya.ac.ModifiablePolicy buildPolicy(java.io.InputStream stream)
throws org.apache.lenya.ac.AccessControlException
stream - The input stream to read the policy from.
org.apache.lenya.ac.AccessControlException - when something went wrong.
public org.apache.lenya.ac.ModifiablePolicy buildPolicy(org.w3c.dom.Document document)
throws org.apache.lenya.ac.AccessControlException
document - The XML document.
org.apache.lenya.ac.AccessControlException - when something went wrong.
protected org.apache.lenya.ac.Accreditable getAccreditable(java.lang.String elementName,
java.lang.String id)
throws org.apache.lenya.ac.AccessControlException
elementName - The elment name.id - The ID of the accreditable.
org.apache.lenya.ac.AccessControlException - when something went wrong.
public static org.w3c.dom.Document savePolicy(org.apache.lenya.ac.Policy policy)
throws org.apache.lenya.ac.AccessControlException
policy - The policy to save.
org.apache.lenya.ac.AccessControlException - when something went wrong.
protected static org.w3c.dom.Element save(org.apache.lenya.ac.Accreditable accreditable,
org.apache.lenya.xml.NamespaceHelper helper)
throws org.apache.lenya.ac.AccessControlException
accreditable - The accreditable.helper - The namespace helper to be used.
org.apache.lenya.ac.AccessControlException - when something went wrong.
public java.lang.Object build(java.io.InputStream stream)
throws org.apache.lenya.ac.cache.BuildException
build in interface org.apache.lenya.ac.cache.InputStreamBuilderorg.apache.lenya.ac.cache.BuildExceptionInputStreamBuilder.build(java.io.InputStream)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||