org.syncope.console.commons
Class XMLRolesReader

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

public class XMLRolesReader
extends Object

XMLRolesReader singleton class.


Constructor Summary
XMLRolesReader()
           
XMLRolesReader(String authFilename)
          Class constructor.
 
Method Summary
 String getAllAllowedRoles(String pageId, String actionId)
          Get all roles allowed for specific page and actio requested.
 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(String authFilename)
               throws SAXException,
                      IOException
Class constructor.

Parameters:
authFilename - - name of the authorizations file placed in "/WEB-INF/classes"
Throws:
SAXException
IOException
Method Detail

getAllAllowedRoles

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

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

getDocumentBuilder

public Document getDocumentBuilder()
                            throws SAXException,
                                   IOException,
                                   ParserConfigurationException
Throws:
SAXException
IOException
ParserConfigurationException


Copyright © 2010. All Rights Reserved.