it.eng.spagobi.security
Class ExoGroupAsRoleSecurityProviderImpl

java.lang.Object
  extended by it.eng.spagobi.security.ExoGroupAsRoleSecurityProviderImpl
All Implemented Interfaces:
it.eng.spagobi.security.IPortalSecurityProvider

public class ExoGroupAsRoleSecurityProviderImpl
extends java.lang.Object
implements it.eng.spagobi.security.IPortalSecurityProvider

Implements the IPortalSecurityProvider interface defining method to get the system and user roles.


Constructor Summary
ExoGroupAsRoleSecurityProviderImpl()
           
 
Method Summary
 boolean authenticateUser(java.lang.String userName, byte[] password)
          Authenticate a user
 java.util.List getAllProfileAttributesNames()
          Get the names of all the profile attributes defined
 java.util.List getRoles()
          Get all the portal roles
 java.util.List getUserRoles(java.lang.String user, it.eng.spago.base.SourceBean config)
          Get the list of the user roles.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExoGroupAsRoleSecurityProviderImpl

public ExoGroupAsRoleSecurityProviderImpl()
Method Detail

getRoles

public java.util.List getRoles()
Get all the portal roles

Specified by:
getRoles in interface it.eng.spagobi.security.IPortalSecurityProvider
Returns:
List of the portal roles (list of it it.eng.spagobi.bo.Role)

getUserRoles

public java.util.List getUserRoles(java.lang.String user,
                                   it.eng.spago.base.SourceBean config)
Get the list of the user roles. If the user doesn't exist the roles list is empty

Specified by:
getUserRoles in interface it.eng.spagobi.security.IPortalSecurityProvider
Parameters:
user - Username
config - The SourceBean configuration
Returns:
List of user roles (list of it.eng.spagobi.bo.Role)

getAllProfileAttributesNames

public java.util.List getAllProfileAttributesNames()
Get the names of all the profile attributes defined

Specified by:
getAllProfileAttributesNames in interface it.eng.spagobi.security.IPortalSecurityProvider
Returns:
a list containig the names of all the profile attributes defined

authenticateUser

public boolean authenticateUser(java.lang.String userName,
                                byte[] password)
Authenticate a user

Specified by:
authenticateUser in interface it.eng.spagobi.security.IPortalSecurityProvider
Parameters:
userName - the username
password - bytes of the password, certificate, ...
Returns:
true if the user is autheticated false otherwise