fedora.utilities.install
Class XACMLPolicy

java.lang.Object
  extended by fedora.utilities.XMLDocument
      extended by fedora.utilities.install.XACMLPolicy

public class XACMLPolicy
extends XMLDocument


Constructor Summary
XACMLPolicy(java.io.File policyFile, InstallOptions installOptions)
           
XACMLPolicy(java.io.InputStream policyFile, InstallOptions installOptions)
           
 
Method Summary
 void addServerHost(java.lang.String host)
          If the Apply element returned by the following XPath /Policy/Condition[@FunctionId='urn:oasis:names:tc:xacml:1.0:function:not'] /Apply'][@FunctionId='urn:oasis:names:tc:xacml:1.0:function:or'] /Apply'][@FunctionId='urn:oasis:names:tc:xacml:1.0:function:string-at-least-one-member-of'] /Apply'][@FunctionId='urn:oasis:names:tc:xacml:1.0:function:string-bag'] does not already have a child AttributeValue element that matches the host, add a new AttributeValue element that does.
 
Methods inherited from class fedora.utilities.XMLDocument
getDocument, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XACMLPolicy

public XACMLPolicy(java.io.File policyFile,
                   InstallOptions installOptions)
            throws java.io.FileNotFoundException,
                   org.dom4j.DocumentException
Throws:
java.io.FileNotFoundException
org.dom4j.DocumentException

XACMLPolicy

public XACMLPolicy(java.io.InputStream policyFile,
                   InstallOptions installOptions)
            throws java.io.FileNotFoundException,
                   org.dom4j.DocumentException
Throws:
java.io.FileNotFoundException
org.dom4j.DocumentException
Method Detail

addServerHost

public void addServerHost(java.lang.String host)
If the Apply element returned by the following XPath /Policy/Condition[@FunctionId='urn:oasis:names:tc:xacml:1.0:function:not'] /Apply'][@FunctionId='urn:oasis:names:tc:xacml:1.0:function:or'] /Apply'][@FunctionId='urn:oasis:names:tc:xacml:1.0:function:string-at-least-one-member-of'] /Apply'][@FunctionId='urn:oasis:names:tc:xacml:1.0:function:string-bag'] does not already have a child AttributeValue element that matches the host, add a new AttributeValue element that does. This is used by the Installer in the event the user chooses a host other than the default localhost for the Fedora server.

Parameters:
host -