it.eng.spagobi.utilities
Class SpagoBIAccessUtils

java.lang.Object
  extended byit.eng.spagobi.utilities.SpagoBIAccessUtils

public class SpagoBIAccessUtils
extends java.lang.Object

This class has been created to provide SpagoBI Access Utils, in order to customize operations with clients.

Author:
zoppello

Constructor Summary
SpagoBIAccessUtils()
           
 
Method Summary
 byte[] getContent(java.lang.String spagoBIBaseUrl, java.lang.String path)
          Starting from the base url and the path as input, gets content information (response body).
 byte[] getSubObjectContent(java.lang.String spagoBIBaseUrl, java.lang.String path, java.lang.String nameSubObj, java.lang.String user)
          Gets the content of a subObject of the principal object
 byte[] saveSubObject(java.lang.String spagoBIBaseUrl, java.lang.String path, java.lang.String nameSubObj, java.lang.String description, java.lang.String user, boolean visibility, java.lang.String content)
          Save the content of a subObject into SpagoBI Repository
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpagoBIAccessUtils

public SpagoBIAccessUtils()
Method Detail

getContent

public byte[] getContent(java.lang.String spagoBIBaseUrl,
                         java.lang.String path)
Starting from the base url and the path as input, gets content information (response body).

Parameters:
spagoBIBaseUrl - The SpagoBI input base URL
path - The input path
Returns:
The output response body

getSubObjectContent

public byte[] getSubObjectContent(java.lang.String spagoBIBaseUrl,
                                  java.lang.String path,
                                  java.lang.String nameSubObj,
                                  java.lang.String user)
Gets the content of a subObject of the principal object

Parameters:
spagoBIBaseUrl - The SpagoBI service URL
path - The cms path
Returns:
The output response body

saveSubObject

public byte[] saveSubObject(java.lang.String spagoBIBaseUrl,
                            java.lang.String path,
                            java.lang.String nameSubObj,
                            java.lang.String description,
                            java.lang.String user,
                            boolean visibility,
                            java.lang.String content)
                     throws GenericSavingException
Save the content of a subObject into SpagoBI Repository

Parameters:
spagoBIBaseUrl - The SpagoBI service URL
path - The cms path
visibility - if true the object is public, else if false is visible only to current user
content - byte array of the suobject content
Returns:
The output response body
Throws:
GenericSavingException