it.eng.spagobi.engines.documentcomposition.utils
Class DocumentCompositionUtils

java.lang.Object
  extended by it.eng.spagobi.engines.documentcomposition.utils.DocumentCompositionUtils

public class DocumentCompositionUtils
extends java.lang.Object

Author:
Antonella Giachino (antonella.giachino@eng.it) Utility Class for document composition

Field Summary
static java.lang.String messageBundle
           
 
Constructor Summary
DocumentCompositionUtils()
           
 
Method Summary
static java.util.List getAvailableExporters(java.lang.String objLabel, it.eng.spago.base.SessionContainer sessionContainer, it.eng.spago.base.SourceBean requestSB)
          Method called by document composition publisher , that returns alla available exporters for a single document contained in the composed one.
static java.lang.String getEngineTestUrl(java.lang.String objLabel, it.eng.spago.base.SessionContainer sessionContainer, it.eng.spago.base.SourceBean requestSB)
          Returns an url for the test of the EXTERNAL engine.
static java.lang.String getExecutionUrl(java.lang.String objLabel, it.eng.spago.base.SessionContainer sessionContainer, it.eng.spago.base.SourceBean requestSB)
          Returns an url for execute the document with the engine associated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageBundle

public static final java.lang.String messageBundle
See Also:
Constant Field Values
Constructor Detail

DocumentCompositionUtils

public DocumentCompositionUtils()
Method Detail

getExecutionUrl

public static java.lang.String getExecutionUrl(java.lang.String objLabel,
                                               it.eng.spago.base.SessionContainer sessionContainer,
                                               it.eng.spago.base.SourceBean requestSB)
Returns an url for execute the document with the engine associated. It calls relative driver.

Parameters:
objLabel - the logical label of the document (gets from the template file)
sessionContainer - session object
requestSB - request object
Returns:
String the complete url. It use this format: |. If there is an error during the execution is valorized and url is null, else it is null and the url is complete.

getEngineTestUrl

public static java.lang.String getEngineTestUrl(java.lang.String objLabel,
                                                it.eng.spago.base.SessionContainer sessionContainer,
                                                it.eng.spago.base.SourceBean requestSB)
Returns an url for the test of the EXTERNAL engine.

Parameters:
objLabel - the logical label of the document (gets from the template file)
sessionContainer - session object
requestSB - request object
Returns:
String the complete url. It use this format: |. If there is an error during the execution is valorized and url is null, else it is null and the url is complete.

getAvailableExporters

public static java.util.List getAvailableExporters(java.lang.String objLabel,
                                                   it.eng.spago.base.SessionContainer sessionContainer,
                                                   it.eng.spago.base.SourceBean requestSB)
Method called by document composition publisher , that returns alla available exporters for a single document contained in the composed one.

Parameters:
objLabel -
sessionContainer -
requestSB -
Returns: