com.softwareag.centrasite.appl.framework.validation.acl
Class DefaultAclControllerConfigurationParser

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.acl.DefaultAclControllerConfigurationParser

public class DefaultAclControllerConfigurationParser
extends java.lang.Object

This parser is used to create instances of DefaultAclControllerConfiguration by reading XML documents.


Field Summary
protected  java.lang.ClassLoader classLoader
          The class loader to use for loading classes.
protected static java.lang.String NS_DEFAULT_ACL_CONTROLLER
          The defaultAclController namespace.
 
Constructor Summary
DefaultAclControllerConfigurationParser()
          Creates a new instance with the current threads context class loader.
DefaultAclControllerConfigurationParser(java.lang.ClassLoader pClassLoader)
          Creates a new instance with the given class loader.
 
Method Summary
protected  DefaultAclControllerConfiguration newDefaultAclControllerConfiguration()
          Creates a new, empty instance of DefaultAclControllerConfiguration.
protected  void parse(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc)
          Called to fill the given configuration object from the given XML documents contents.
 DefaultAclControllerConfiguration parse(java.io.File pFile)
          Parses the given File and returns the created instance of settings to the given instance of DefaultAclControllerConfiguration.
 DefaultAclControllerConfiguration parse(org.xml.sax.InputSource pSource)
          Parses the given InputSource and returns the created instance of settings to the given instance of DefaultAclControllerConfiguration.
 DefaultAclControllerConfiguration parse(java.net.URL pURL)
          Parses the given URL and returns the created instance of settings to the given instance of DefaultAclControllerConfiguration.
protected  Acl parseAcl(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pAcl)
          Called to create an acl specification by reading the given elements contents.
protected  void parseAcls(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pAcls)
          Called to fill the acl specifications in the given configuration object from the given elements contents.
protected  Action parseAction(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pAction)
          Called to create an action specification by reading the given elements contents.
protected  void parseActions(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pActions)
          Called to fill the action specifications in the given configuration object from the given elements contents.
protected  Provider parseProvider(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pProvider)
          Called to create a provider specification by reading the given elements contents.
protected  void parseProviders(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pProviders)
          Called to fill the provider specifications in the given configuration object from the given elements contents.
protected  Rule parseRule(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, org.w3c.dom.Element pRule)
          Called to parse a rule specification by reading the given elements contents.
protected  void parseRules(DefaultAclControllerConfiguration pDefaults, com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc, Acl pAcl, org.w3c.dom.Element pRules)
          Called to parse the rule specifications by reading the given elements contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NS_DEFAULT_ACL_CONTROLLER

protected static final java.lang.String NS_DEFAULT_ACL_CONTROLLER
The defaultAclController namespace.

See Also:
Constant Field Values

classLoader

protected final java.lang.ClassLoader classLoader
The class loader to use for loading classes.

Constructor Detail

DefaultAclControllerConfigurationParser

public DefaultAclControllerConfigurationParser()
Creates a new instance with the current threads context class loader.


DefaultAclControllerConfigurationParser

public DefaultAclControllerConfigurationParser(java.lang.ClassLoader pClassLoader)
Creates a new instance with the given class loader.

Method Detail

newDefaultAclControllerConfiguration

protected DefaultAclControllerConfiguration newDefaultAclControllerConfiguration()
Creates a new, empty instance of DefaultAclControllerConfiguration.


parse

public DefaultAclControllerConfiguration parse(java.net.URL pURL)
                                        throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Parses the given URL and returns the created instance of settings to the given instance of DefaultAclControllerConfiguration.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parse

public DefaultAclControllerConfiguration parse(java.io.File pFile)
                                        throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Parses the given File and returns the created instance of settings to the given instance of DefaultAclControllerConfiguration.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parse

public DefaultAclControllerConfiguration parse(org.xml.sax.InputSource pSource)
                                        throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException,
                                               java.io.IOException
Parses the given InputSource and returns the created instance of settings to the given instance of DefaultAclControllerConfiguration.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException
java.io.IOException

parse

protected void parse(DefaultAclControllerConfiguration pDefaults,
                     com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc)
              throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to fill the given configuration object from the given XML documents contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseProviders

protected void parseProviders(DefaultAclControllerConfiguration pDefaults,
                              com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                              org.w3c.dom.Element pProviders)
                       throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to fill the provider specifications in the given configuration object from the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseProvider

protected Provider parseProvider(DefaultAclControllerConfiguration pDefaults,
                                 com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                                 org.w3c.dom.Element pProvider)
                          throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to create a provider specification by reading the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseAcls

protected void parseAcls(DefaultAclControllerConfiguration pDefaults,
                         com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                         org.w3c.dom.Element pAcls)
                  throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to fill the acl specifications in the given configuration object from the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseAcl

protected Acl parseAcl(DefaultAclControllerConfiguration pDefaults,
                       com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                       org.w3c.dom.Element pAcl)
                throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to create an acl specification by reading the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseRules

protected void parseRules(DefaultAclControllerConfiguration pDefaults,
                          com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                          Acl pAcl,
                          org.w3c.dom.Element pRules)
                   throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to parse the rule specifications by reading the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseRule

protected Rule parseRule(DefaultAclControllerConfiguration pDefaults,
                         com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                         org.w3c.dom.Element pRule)
                  throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to parse a rule specification by reading the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseActions

protected void parseActions(DefaultAclControllerConfiguration pDefaults,
                            com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                            org.w3c.dom.Element pActions)
                     throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to fill the action specifications in the given configuration object from the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

parseAction

protected Action parseAction(DefaultAclControllerConfiguration pDefaults,
                             com.softwareag.centrasite.appl.framework.parser.ParsedXMLDocument pDoc,
                             org.w3c.dom.Element pAction)
                      throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Called to create an action specification by reading the given elements contents.

Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException