it.eng.spagobi.sdk
Class AbstractSDKService

java.lang.Object
  extended by it.eng.spagobi.sdk.AbstractSDKService
Direct Known Subclasses:
DataSetsSDKServiceImpl, DocumentsServiceImpl, EnginesServiceImpl, TestConnectionServiceImpl

public class AbstractSDKService
extends java.lang.Object


Constructor Summary
AbstractSDKService()
           
 
Method Summary
protected  void checkUserPermissionForFunctionality(java.lang.String userFunctionality, java.lang.String errorMessage)
          Retrieves user profile and check if he has rights for the functionality in input.
protected  it.eng.spago.security.IEngUserProfile getUserProfile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSDKService

public AbstractSDKService()
Method Detail

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 functionality
errorMessage - 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