it.eng.spagobi.sdk
Class AbstractSDKService
java.lang.Object
it.eng.spagobi.sdk.AbstractSDKService
- Direct Known Subclasses:
- DataSetsSDKServiceImpl, DataSourcesSDKServiceImpl, DocumentsServiceImpl, EnginesServiceImpl, MapsSDKServiceImpl, TestConnectionServiceImpl
public class AbstractSDKService
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSDKService
public AbstractSDKService()
getUserProfile
protected it.eng.spago.security.IEngUserProfile getUserProfile()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkUserPermissionForFunctionality
protected void checkUserPermissionForFunctionality(java.lang.String userFunctionality,
java.lang.String errorMessage)
throws it.eng.spagobi.sdk.exceptions.NotAllowedOperationException,
java.lang.Exception
- Retrieves user profile and check if he has rights for the functionality in input.
In case he has no rights, a
NotAllowedOperationException
with the error message in input is thrown.
- Parameters:
userFunctionality
- The user functionalityerrorMessage
- The error message to be used in case a NotAllowedOperationException
must be thrown
- Throws:
it.eng.spagobi.sdk.exceptions.NotAllowedOperationException
- In case the user has no rights for the specified user functionality
java.lang.Exception
- is case of any other error
setTenant
protected void setTenant()
unsetTenant
protected void unsetTenant()