it.eng.spagobi.engines.qbe.services.formviewer
Class SaveFormValuesSubObjectAction

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.utilities.engines.AbstractEngineAction
                      extended by it.eng.spagobi.engines.qbe.services.core.AbstractQbeEngineAction
                          extended by it.eng.spagobi.engines.qbe.services.formviewer.SaveFormValuesSubObjectAction
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 SaveFormValuesSubObjectAction
extends AbstractQbeEngineAction

The Class ExecuteQueryAction.

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger auditlogger
           
static org.apache.log4j.Logger logger
          Logger component.
 
Fields inherited from class it.eng.spagobi.utilities.engines.AbstractEngineAction
PRIVATE_SCOPE, PUBLIC_SCOPE
 
Constructor Summary
SaveFormValuesSubObjectAction()
           
 
Method Summary
static org.json.JSONObject parseValues(org.json.JSONObject formState, java.util.Map<java.lang.String,java.lang.String> idNameMap)
          Get the form state of the subobject and changes the names of the fields with the ids Take a look at the method it.eng.spagobi.engines.qbe.FormState.setIdNameMap
 java.lang.String saveAnalysisState(org.json.JSONObject form, java.lang.String scope, java.lang.String name, java.lang.String description)
           
 void service(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
           
 
Methods inherited from class it.eng.spagobi.engines.qbe.services.core.AbstractQbeEngineAction
getDataSource, getEngineInstance, getFilteredQuery, getQuery, setDataSource
 
Methods inherited from class it.eng.spagobi.utilities.engines.AbstractEngineAction
getAuditServiceProxy, getConetxtManager, getEnv, getLocale, getSpagoBIHttpSessionContainer, getSpagoBISessionContainer, init, saveAnalysisState, setLocale
 
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, getSpagoBIRequestContainer, getSpagoBIResponseContainer, 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

logger

public static transient org.apache.log4j.Logger logger
Logger component.


auditlogger

public static transient org.apache.log4j.Logger auditlogger
Constructor Detail

SaveFormValuesSubObjectAction

public SaveFormValuesSubObjectAction()
Method Detail

service

public void service(it.eng.spago.base.SourceBean request,
                    it.eng.spago.base.SourceBean response)
Specified by:
service in interface it.eng.spago.dispatching.service.ServiceIFace
Overrides:
service in class it.eng.spagobi.utilities.engines.AbstractEngineAction

saveAnalysisState

public java.lang.String saveAnalysisState(org.json.JSONObject form,
                                          java.lang.String scope,
                                          java.lang.String name,
                                          java.lang.String description)
                                   throws it.eng.spagobi.utilities.engines.SpagoBIEngineException
Throws:
it.eng.spagobi.utilities.engines.SpagoBIEngineException

parseValues

public static org.json.JSONObject parseValues(org.json.JSONObject formState,
                                              java.util.Map<java.lang.String,java.lang.String> idNameMap)
Get the form state of the subobject and changes the names of the fields with the ids Take a look at the method it.eng.spagobi.engines.qbe.FormState.setIdNameMap

Parameters:
formState - the values of the form
Returns:
the values of the form but with the ids of the fields instead of the names