org.syncope.console.commons
Class XMLRolesReader

java.lang.Object
  extended by org.syncope.console.commons.XMLRolesReader

public class XMLRolesReader
extends java.lang.Object

XMLRolesReader singleton class.


Constructor Summary
XMLRolesReader()
           
XMLRolesReader(java.lang.String authFilename)
          Class constructor.
 
Method Summary
 java.lang.String getAllAllowedRoles(java.lang.String pageId, java.lang.String actionId)
          Get all roles allowed for specific page and actio requested.
 org.w3c.dom.Document getDocumentBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRolesReader

public XMLRolesReader()

XMLRolesReader

public XMLRolesReader(java.lang.String authFilename)
               throws org.xml.sax.SAXException,
                      java.io.IOException
Class constructor.

Parameters:
authFilename - - name of the authorizations file placed in "/WEB-INF/classes"
Throws:
org.xml.sax.SAXException
java.io.IOException
Method Detail

getAllAllowedRoles

public java.lang.String getAllAllowedRoles(java.lang.String pageId,
                                           java.lang.String actionId)
Get all roles allowed for specific page and actio requested.

Parameters:
pageId -
actionId -
Returns:
roles list comma separated

getDocumentBuilder

public org.w3c.dom.Document getDocumentBuilder()
                                        throws org.xml.sax.SAXException,
                                               java.io.IOException,
                                               javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException


Copyright © 2010. All Rights Reserved.