|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.services.common.AbstractServiceImpl
it.eng.spagobi.services.security.service.SecurityServiceImpl
public class SecurityServiceImpl
This class create the user profile and implements the security check
Constructor Summary | |
---|---|
SecurityServiceImpl()
Instantiates a new security service impl. |
Method Summary | |
---|---|
boolean |
checkAuthorization(java.lang.String token,
java.lang.String userId,
java.lang.String function)
check if the user can execute the function. |
it.eng.spagobi.services.security.bo.SpagoBIUserProfile |
getUserProfile(java.lang.String token,
java.lang.String userId)
User profile creation. |
boolean |
isAuthorized(java.lang.String token,
java.lang.String userId,
java.lang.String idFolder,
java.lang.String state)
check if user can access to the folder "idFolder". |
Methods inherited from class it.eng.spagobi.services.common.AbstractServiceImpl |
---|
setTenantByUserId, setTenantByUserProfile, unsetTenant, validateTicket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityServiceImpl()
Method Detail |
---|
public it.eng.spagobi.services.security.bo.SpagoBIUserProfile getUserProfile(java.lang.String token, java.lang.String userId)
getUserProfile
in interface it.eng.spagobi.services.security.SecurityService
token
- the tokenuserId
- the user id
public boolean isAuthorized(java.lang.String token, java.lang.String userId, java.lang.String idFolder, java.lang.String state)
isAuthorized
in interface it.eng.spagobi.services.security.SecurityService
token
- the tokenuserId
- the user ididFolder
- the id folderstate
- the state
public boolean checkAuthorization(java.lang.String token, java.lang.String userId, java.lang.String function)
checkAuthorization
in interface it.eng.spagobi.services.security.SecurityService
token
- the tokenuserId
- the user idfunction
- the function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |