it.eng.spagobi.security
Class LiferayUserProfileImpl

java.lang.Object
  extended by it.eng.spagobi.security.LiferayUserProfileImpl
All Implemented Interfaces:
it.eng.spago.security.IEngUserProfile, java.io.Serializable

public class LiferayUserProfileImpl
extends java.lang.Object
implements it.eng.spago.security.IEngUserProfile

Implementation of the Spago IEngUserProfile interface

See Also:
Serialized Form

Field Summary
static java.lang.String E_MAIL
           
static java.lang.String NAME
           
static java.lang.String SURNAME
           
static java.lang.String USER_ID
           
 
Fields inherited from interface it.eng.spago.security.IEngUserProfile
ENG_USER_PROFILE
 
Constructor Summary
LiferayUserProfileImpl(java.security.Principal userPrincipal)
           
 
Method Summary
 java.util.Collection getFunctionalities()
           
 java.util.Collection getFunctionalitiesByRole(java.lang.String arg0)
           
 java.util.Collection getRoles()
          (non-Javadoc)
 java.lang.Object getUserAttribute(java.lang.String attributeName)
           
 java.util.Collection getUserAttributeNames()
           
 java.lang.Object getUserUniqueIdentifier()
           
 boolean hasRole(java.lang.String roleName)
          (non-Javadoc)
 boolean isAbleToExecuteAction(java.lang.String arg0)
           
 boolean isAbleToExecuteModuleInPage(java.lang.String arg0, java.lang.String arg1)
           
 void setApplication(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

SURNAME

public static final java.lang.String SURNAME
See Also:
Constant Field Values

USER_ID

public static final java.lang.String USER_ID
See Also:
Constant Field Values

E_MAIL

public static final java.lang.String E_MAIL
See Also:
Constant Field Values
Constructor Detail

LiferayUserProfileImpl

public LiferayUserProfileImpl(java.security.Principal userPrincipal)
Parameters:
userUniqueIdentifier -
userAttributes -
roles -
Method Detail

getUserUniqueIdentifier

public java.lang.Object getUserUniqueIdentifier()
Specified by:
getUserUniqueIdentifier in interface it.eng.spago.security.IEngUserProfile
See Also:
IEngUserProfile.getUserUniqueIdentifier()

getUserAttribute

public java.lang.Object getUserAttribute(java.lang.String attributeName)
                                  throws it.eng.spago.error.EMFInternalError
Specified by:
getUserAttribute in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.getUserAttribute(java.lang.String)

hasRole

public boolean hasRole(java.lang.String roleName)
                throws it.eng.spago.error.EMFInternalError
(non-Javadoc)

Specified by:
hasRole in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.hasRole(java.lang.String)

getRoles

public java.util.Collection getRoles()
                              throws it.eng.spago.error.EMFInternalError
(non-Javadoc)

Specified by:
getRoles in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.getRoles()

getFunctionalities

public java.util.Collection getFunctionalities()
                                        throws it.eng.spago.error.EMFInternalError
Specified by:
getFunctionalities in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.getFunctionalities()

isAbleToExecuteAction

public boolean isAbleToExecuteAction(java.lang.String arg0)
                              throws it.eng.spago.error.EMFInternalError
Specified by:
isAbleToExecuteAction in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.isAbleToExecuteAction(java.lang.String)

isAbleToExecuteModuleInPage

public boolean isAbleToExecuteModuleInPage(java.lang.String arg0,
                                           java.lang.String arg1)
                                    throws it.eng.spago.error.EMFInternalError
Specified by:
isAbleToExecuteModuleInPage in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.isAbleToExecuteModuleInPage(java.lang.String, java.lang.String)

setApplication

public void setApplication(java.lang.String arg0)
                    throws it.eng.spago.error.EMFInternalError
Specified by:
setApplication in interface it.eng.spago.security.IEngUserProfile
Throws:
it.eng.spago.error.EMFInternalError
See Also:
IEngUserProfile.setApplication(java.lang.String)

getUserAttributeNames

public java.util.Collection getUserAttributeNames()

getFunctionalitiesByRole

public java.util.Collection getFunctionalitiesByRole(java.lang.String arg0)
                                              throws it.eng.spago.error.EMFInternalError
Throws:
it.eng.spago.error.EMFInternalError