it.eng.spagobi.tools.catalogue.service
Class GetMetaModelsAction

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.commons.services.AbstractSpagoBIAction
                      extended by it.eng.spagobi.tools.catalogue.service.GetMetaModelsAction
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
Direct Known Subclasses:
GetMetaModelsForFinalUserAction

public class GetMetaModelsAction
extends AbstractSpagoBIAction

See Also:
Serialized Form

Field Summary
static java.lang.String DOMAIN_TYPE
           
static java.lang.String FILTERS
           
static java.lang.String LIMIT
           
static java.lang.Integer LIMIT_DEFAULT
           
static org.apache.log4j.Logger logger
           
static java.lang.String START
           
static java.lang.Integer START_DEFAULT
           
 
Fields inherited from class it.eng.spagobi.commons.services.AbstractSpagoBIAction
SERVICE_NAME
 
Constructor Summary
GetMetaModelsAction()
           
 
Method Summary
protected  org.json.JSONObject createJSONResponse(org.json.JSONArray rows, java.lang.Integer totalResNumber)
           
 void doService()
           
protected  java.util.List<java.lang.Integer> getCategoryIdbyContainsName(java.lang.String categoryName)
           
protected  java.lang.Integer getCategoryIdbyName(java.lang.String categoryName)
           
protected  java.util.List<MetaModel> getFilteredModels(org.json.JSONObject jsonObject, IMetaModelsDAO dao)
           
protected  java.lang.String getFilterString(java.lang.String columnFilter, java.lang.String typeFilter, java.lang.String valueFilter)
           
protected  java.lang.Integer getLimit()
           
protected  java.lang.Integer getStart()
           
 
Methods inherited from class it.eng.spagobi.commons.services.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, getAttributesAsLinkedMap, getAttributesAsMap, getHttpSession, getSessionContainer, getSpagoBIHttpSessionContainer, getSpagoBIRequestContainer, getSpagoBIResponseContainer, getSpagoBISessionContainer, httpSessionContainsAttribute, requestContainsAttribute, requestContainsAttribute, sessionContainsAttribute, setAttribute, setAttributeInHttpSession, setAttributeInSession, setSpagoBIRequestContainer, setSpagoBIResponseContainer, tryToWriteBackToClient, writeBackToClient, 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 org.apache.log4j.Logger logger

START

public static java.lang.String START

LIMIT

public static java.lang.String LIMIT

FILTERS

public static java.lang.String FILTERS

DOMAIN_TYPE

public static java.lang.String DOMAIN_TYPE

START_DEFAULT

public static java.lang.Integer START_DEFAULT

LIMIT_DEFAULT

public static java.lang.Integer LIMIT_DEFAULT
Constructor Detail

GetMetaModelsAction

public GetMetaModelsAction()
Method Detail

doService

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

getFilteredModels

protected java.util.List<MetaModel> getFilteredModels(org.json.JSONObject jsonObject,
                                                      IMetaModelsDAO dao)
                                               throws org.json.JSONException
Throws:
org.json.JSONException

getFilterString

protected java.lang.String getFilterString(java.lang.String columnFilter,
                                           java.lang.String typeFilter,
                                           java.lang.String valueFilter)

getCategoryIdbyName

protected java.lang.Integer getCategoryIdbyName(java.lang.String categoryName)

getCategoryIdbyContainsName

protected java.util.List<java.lang.Integer> getCategoryIdbyContainsName(java.lang.String categoryName)

getStart

protected java.lang.Integer getStart()

getLimit

protected java.lang.Integer getLimit()

createJSONResponse

protected org.json.JSONObject createJSONResponse(org.json.JSONArray rows,
                                                 java.lang.Integer totalResNumber)
                                          throws org.json.JSONException
Throws:
org.json.JSONException