it.eng.spagobi.analiticalmodel.document.x
Class GetParameterValuesForExecutionAction

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.service.DefaultHttpRequestContext
          extended by it.eng.spago.dispatching.action.AbstractHttpAction
              extended by it.eng.spagobi.utilities.service.AbstractBaseHttpAction
                  extended by it.eng.spagobi.analiticalmodel.document.x.AbstractSpagoBIAction
                      extended by it.eng.spagobi.analiticalmodel.document.x.GetParameterValuesForExecutionAction
All Implemented Interfaces:
it.eng.spago.dispatching.action.ActionIFace, it.eng.spago.dispatching.service.HttpRequestContextIFace, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable

public class GetParameterValuesForExecutionAction
extends AbstractSpagoBIAction

Author:
Andrea Gioia (andrea.gioia@eng.it)
See Also:
Serialized Form

Field Summary
static java.lang.String FILTERS
           
static java.lang.String LIMIT
           
static java.lang.String MODE
           
static java.lang.String MODE_COMPLETE
           
static java.lang.String MODE_SIMPLE
           
static java.lang.String PARAMETER_ID
           
static java.lang.String SELECTED_PARAMETER_VALUES
           
static java.lang.String SERVICE_NAME
           
static java.lang.String START
           
 
Constructor Summary
GetParameterValuesForExecutionAction()
           
 
Method Summary
 void doService()
           
 java.util.List filterList(java.util.List list, java.lang.String[] valuesfilter, java.lang.String valuetypefilter, java.lang.String columnfilter, java.lang.String typeFilter)
          Filters the list with a list of filtering values.
 java.util.List filterList(java.util.List list, java.lang.String valuefilter, java.lang.String valuetypefilter, java.lang.String columnfilter, java.lang.String typeFilter)
           
protected static java.util.List intersectLists(java.util.List list1, java.util.List list2)
           
 java.util.Date toDate(java.lang.String dateStr, java.lang.String format)
           
 
Methods inherited from class it.eng.spagobi.analiticalmodel.document.x.AbstractSpagoBIAction
checkError, createContext, getContext, getLocale, getTheme, getUserProfile, handleException, init, localize, service, writeErrorsBackToClient
 
Methods inherited from class it.eng.spagobi.utilities.service.AbstractBaseHttpAction
delAttributeFromHttpSession, delAttributeFromSession, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsCsvStringList, getAttributeAsInteger, getAttributeAsJSONArray, getAttributeAsJSONObject, getAttributeAsList, getAttributeAsString, getAttributeFromHttpSession, getAttributeFromHttpSessionAsBoolean, getAttributeFromHttpSessionAsBoolean, getAttributeFromHttpSessionAsString, getAttributeFromSession, getAttributeFromSessionAsBoolean, getAttributeFromSessionAsBoolean, getAttributeFromSessionAsString, getAttributesAsMap, getHttpSession, getSessionContainer, getSpagoBIHttpSessionContainer, getSpagoBIRequestContainer, getSpagoBIResponseContainer, getSpagoBISessionContainer, httpSessionContainsAttribute, requestContainsAttribute, requestContainsAttribute, sessionContainsAttribute, setAttribute, setAttributeInHttpSession, setAttributeInSession, setSpagoBIRequestContainer, setSpagoBIResponseContainer, tryToWriteBackToClient, writeBackToClient, writeBackToClient, writeBackToClient, writeBackToClient, writeBackToClient
 
Methods inherited from class it.eng.spago.dispatching.action.AbstractHttpAction
getActionMethod, getActionName, getConfig, setActionMethod, setActionName
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultHttpRequestContext
freezeHttpResponse, getHttpRequest, getHttpResponse, getServletConfig, isHttpResponseFreezed, setRequestContext, unfreezeHttpResponse
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spago.dispatching.service.RequestContextIFace
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse
 

Field Detail

SERVICE_NAME

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

PARAMETER_ID

public static java.lang.String PARAMETER_ID

SELECTED_PARAMETER_VALUES

public static java.lang.String SELECTED_PARAMETER_VALUES

FILTERS

public static java.lang.String FILTERS

MODE

public static java.lang.String MODE

MODE_SIMPLE

public static java.lang.String MODE_SIMPLE

MODE_COMPLETE

public static java.lang.String MODE_COMPLETE

START

public static java.lang.String START

LIMIT

public static java.lang.String LIMIT
Constructor Detail

GetParameterValuesForExecutionAction

public GetParameterValuesForExecutionAction()
Method Detail

doService

public void doService()
Specified by:
doService in class AbstractSpagoBIAction

intersectLists

protected static java.util.List intersectLists(java.util.List list1,
                                               java.util.List list2)

filterList

public java.util.List filterList(java.util.List list,
                                 java.lang.String[] valuesfilter,
                                 java.lang.String valuetypefilter,
                                 java.lang.String columnfilter,
                                 java.lang.String typeFilter)
Filters the list with a list of filtering values.

Parameters:
list - The list to be filtered
valuesfilter - The list of filtering values
valuetypefilter - The type of the value of the filter (STRING/NUM/DATE)
columnfilter - The column to be filtered
typeFilter - The type of the filter
errorHandler - The EMFErrorHandler object, in which errors are stored if they occurs
Returns:
the filtered list

filterList

public java.util.List filterList(java.util.List list,
                                 java.lang.String valuefilter,
                                 java.lang.String valuetypefilter,
                                 java.lang.String columnfilter,
                                 java.lang.String typeFilter)

toDate

public java.util.Date toDate(java.lang.String dateStr,
                             java.lang.String format)
                      throws java.lang.Exception
Throws:
java.lang.Exception