it.eng.spagobi.engines.chart.utils
Class DataSetAccessFunctions

java.lang.Object
  extended by it.eng.spagobi.engines.chart.utils.DataSetAccessFunctions

public class DataSetAccessFunctions
extends java.lang.Object

Internal Engine


Field Summary
static java.lang.String FILE
           
static java.lang.String QUERY
           
static java.lang.String WEBSERVER
           
 
Constructor Summary
DataSetAccessFunctions()
           
 
Method Summary
static java.lang.String getDataSetResult(it.eng.spago.security.IEngUserProfile profile, it.eng.spagobi.tools.dataset.bo.IDataSet ds, java.util.Map parameters)
          Gets the data set result.
static java.lang.String getDataSetResultFromId(it.eng.spago.security.IEngUserProfile profile, java.lang.String dsId, java.util.Map parameters)
          returns the result of a LOV
static java.lang.String getDataSetResultFromLabel(it.eng.spago.security.IEngUserProfile profile, java.lang.String label, java.util.Map parameters)
          Gets the data set result from label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE

public static final java.lang.String FILE
See Also:
Constant Field Values

QUERY

public static final java.lang.String QUERY
See Also:
Constant Field Values

WEBSERVER

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

DataSetAccessFunctions

public DataSetAccessFunctions()
Method Detail

getDataSetResultFromId

public static java.lang.String getDataSetResultFromId(it.eng.spago.security.IEngUserProfile profile,
                                                      java.lang.String dsId,
                                                      java.util.Map parameters)
                                               throws java.lang.Exception
returns the result of a LOV

it is used both to get the value of the chart and to get its configuration parameters if there defined.

Parameters:
profile - IEngUserProfile of the user
dsId - the ds id
parameters - the parameters
Returns:
the data set result from id
Throws:
it.eng.spago.error.EMFUserError - * @throws NumberFormatException * @throws Exception the exception
java.lang.Exception

getDataSetResultFromLabel

public static java.lang.String getDataSetResultFromLabel(it.eng.spago.security.IEngUserProfile profile,
                                                         java.lang.String label,
                                                         java.util.Map parameters)
                                                  throws java.lang.Exception
Gets the data set result from label.

Parameters:
profile - the profile
label - the label
parameters - the parameters
Returns:
the data set result from label
Throws:
java.lang.Exception - the exception

getDataSetResult

public static java.lang.String getDataSetResult(it.eng.spago.security.IEngUserProfile profile,
                                                it.eng.spagobi.tools.dataset.bo.IDataSet ds,
                                                java.util.Map parameters)
                                         throws java.lang.Exception
Gets the data set result.

Parameters:
profile - the profile
ds - the ds
parameters - the parameters
Returns:
the data set result
Throws:
java.lang.Exception - the exception