it.eng.spago.security.xmlauthorizations
Class XMLUserProfile

java.lang.Object
  extended by it.eng.spago.security.xmlauthorizations.XMLUserProfile

public class XMLUserProfile
extends java.lang.Object

Author:
zoppello This class implement the IEngUserProfile interface basing on the engiweb profile manager system

Constructor Summary
XMLUserProfile(java.lang.String userID)
           
 
Method Summary
 boolean canAccessResource(java.lang.String resourceID)
           
 boolean canExecuteFunctionality(java.lang.String functionalityID)
           
 java.util.Collection getAccessibleResources()
           
 java.util.Collection getFunctionalities()
           
 java.util.Collection getFunctionalitiesByRole(java.lang.String roleName)
           
 java.util.Collection getRoles()
           
 java.lang.Object getUserAttribute(java.lang.String attributeName)
           
 java.util.Collection getUserAttributeNames()
           
 java.lang.Object getUserUniqueIdentifier()
           
 boolean hasRole(java.lang.String roleName)
           
 boolean isAbleToExecuteAction(java.lang.String actionName)
           
 boolean isAbleToExecuteModuleInPage(java.lang.String pageName, java.lang.String moduleName)
           
 void setApplication(java.lang.String applicationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUserProfile

public XMLUserProfile(java.lang.String userID)
               throws EMFInternalError
Throws:
EMFInternalError
Method Detail

getUserAttribute

public java.lang.Object getUserAttribute(java.lang.String attributeName)
                                  throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#getUserAttribute(java.lang.String)

getUserAttributeNames

public java.util.Collection getUserAttributeNames()

hasRole

public boolean hasRole(java.lang.String roleName)
                throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#hasRole(java.lang.String)

getRoles

public java.util.Collection getRoles()
                              throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#getRoles()

getFunctionalities

public java.util.Collection getFunctionalities()
                                        throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#getFunctionalities()

getFunctionalitiesByRole

public java.util.Collection getFunctionalitiesByRole(java.lang.String roleName)
                                              throws EMFInternalError
Throws:
EMFInternalError

isAbleToExecuteAction

public boolean isAbleToExecuteAction(java.lang.String actionName)
                              throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#isAbleToExecuteAction(java.lang.String, java.lang.String)

isAbleToExecuteModuleInPage

public boolean isAbleToExecuteModuleInPage(java.lang.String pageName,
                                           java.lang.String moduleName)
                                    throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#isAbleToExecuteModuleInPage(java.lang.String, java.lang.String)

setApplication

public void setApplication(java.lang.String applicationName)
                    throws EMFInternalError
Throws:
EMFInternalError
See Also:
it.eng.spago.security.IEngUserProfile#setApplication(java.lang.String)

getUserUniqueIdentifier

public java.lang.Object getUserUniqueIdentifier()
See Also:
it.eng.spago.security.IEngUserProfile#getUserUniqueIdentifier()

canAccessResource

public boolean canAccessResource(java.lang.String resourceID)
                          throws EMFInternalError
Throws:
EMFInternalError

canExecuteFunctionality

public boolean canExecuteFunctionality(java.lang.String functionalityID)
                                throws EMFInternalError
Throws:
EMFInternalError

getAccessibleResources

public java.util.Collection getAccessibleResources()
                                            throws EMFInternalError
Throws:
EMFInternalError