|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.services.proxy.AbstractServiceProxy
it.eng.spagobi.services.proxy.SecurityServiceProxy
public final class SecurityServiceProxy
Security Service Proxy. Use in engine component only
Field Summary |
---|
Fields inherited from class it.eng.spagobi.services.proxy.AbstractServiceProxy |
---|
isSecure, serviceUrl, userId |
Constructor Summary | |
---|---|
SecurityServiceProxy(java.lang.String user,
javax.servlet.http.HttpSession session)
Use this constructor. |
Method Summary | |
---|---|
boolean |
checkAuthorization(java.security.Principal principal,
java.lang.String function)
Check if the user can execute the function ( user function ). |
boolean |
checkAuthorization(java.lang.String function)
Check if the user can execute the function ( user function ). |
it.eng.spago.security.IEngUserProfile |
getUserProfile()
Gets the user profile. |
boolean |
isAuthorized(java.lang.String folderId,
java.lang.String mode)
Check if the user is authorized to access the folder. |
Methods inherited from class it.eng.spagobi.services.proxy.AbstractServiceProxy |
---|
init, readTicket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityServiceProxy(java.lang.String user, javax.servlet.http.HttpSession session)
user
- user IDsession
- HttpSessionMethod Detail |
---|
public it.eng.spago.security.IEngUserProfile getUserProfile() throws SecurityException
SecurityException
- if the process has generated an errorpublic boolean isAuthorized(java.lang.String folderId, java.lang.String mode)
folderId
- folder idmode
- mode
public boolean checkAuthorization(java.lang.String function)
function
- function id
public boolean checkAuthorization(java.security.Principal principal, java.lang.String function)
function
- functionprincipal
- user principal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |