it.eng.spagobi.commons.utilities
Class ExecutionProxy

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.ExecutionProxy

public class ExecutionProxy
extends java.lang.Object


Constructor Summary
ExecutionProxy()
           
 
Method Summary
 void adjustParametersForExecutionProxy(IEngineDriver driver, java.util.Map mapPars)
          Adjust paramters set by driver for use by Execution proxy
 byte[] exec(it.eng.spago.security.IEngUserProfile profile, java.lang.String modality, java.lang.String defaultOutputFormat)
          Executes a document in background with the given profile.
 BIObject getBiObject()
          Gets the bi object.
 java.lang.String getFileExtensionFromContType(java.lang.String contentType)
          Gets the file extension from cont type.
 java.lang.String getReturnedContentType()
          Gets the returned content type.
 void setBiObject(BIObject biObject)
          Sets the bi object.
 void setReturnedContentType(java.lang.String returnedContentType)
          Sets the returned content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionProxy

public ExecutionProxy()
Method Detail

getBiObject

public BIObject getBiObject()
Gets the bi object.

Returns:
the bi object

setBiObject

public void setBiObject(BIObject biObject)
Sets the bi object.

Parameters:
biObject - the new bi object

exec

public byte[] exec(it.eng.spago.security.IEngUserProfile profile,
                   java.lang.String modality,
                   java.lang.String defaultOutputFormat)
Executes a document in background with the given profile.

Parameters:
profile - The user profile
modality - The execution modality (for auditing)
defaultOutputFormat - The default output format (optional), considered if the document has no output format parameter set
Returns:
the byte[]

getReturnedContentType

public java.lang.String getReturnedContentType()
Gets the returned content type.

Returns:
the returned content type

setReturnedContentType

public void setReturnedContentType(java.lang.String returnedContentType)
Sets the returned content type.

Parameters:
returnedContentType - the new returned content type

getFileExtensionFromContType

public java.lang.String getFileExtensionFromContType(java.lang.String contentType)
Gets the file extension from cont type.

Parameters:
contentType - the content type
Returns:
the file extension from cont type

adjustParametersForExecutionProxy

public void adjustParametersForExecutionProxy(IEngineDriver driver,
                                              java.util.Map mapPars)
Adjust paramters set by driver for use by Execution proxy