it.eng.spagobi.kpi.model.utils
Class DetailModelUtil

java.lang.Object
  extended by it.eng.spagobi.kpi.model.utils.DetailModelUtil

public class DetailModelUtil
extends java.lang.Object


Constructor Summary
DetailModelUtil()
           
 
Method Summary
static void newModel(it.eng.spago.base.SourceBean serviceRequest, it.eng.spago.base.SourceBean serviceResponse, java.lang.Integer parentId)
           
static void restoreModelValue(java.lang.Integer id, it.eng.spago.base.SourceBean serviceRequest, it.eng.spago.base.SourceBean serviceResponse)
           
static void selectModel(java.lang.Integer parentId, it.eng.spago.base.SourceBean serviceResponse)
           
static java.util.List updateModelAttribute(it.eng.spago.base.SourceBean serviceRequest, java.lang.String modelAttributeName)
          Create the model attributes from the request.
static void updateModelFromRequest(it.eng.spago.base.SourceBean serviceRequest, java.lang.Integer idModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailModelUtil

public DetailModelUtil()
Method Detail

selectModel

public static void selectModel(java.lang.Integer parentId,
                               it.eng.spago.base.SourceBean serviceResponse)
                        throws java.lang.Exception
Throws:
java.lang.Exception

updateModelFromRequest

public static void updateModelFromRequest(it.eng.spago.base.SourceBean serviceRequest,
                                          java.lang.Integer idModel)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

updateModelAttribute

public static java.util.List updateModelAttribute(it.eng.spago.base.SourceBean serviceRequest,
                                                  java.lang.String modelAttributeName)
Create the model attributes from the request.

Parameters:
serviceRequest -
modelAttributeName - list of the id of the modelattribute
Returns:
list of ModelAttribute with the new value

newModel

public static void newModel(it.eng.spago.base.SourceBean serviceRequest,
                            it.eng.spago.base.SourceBean serviceResponse,
                            java.lang.Integer parentId)
                     throws java.lang.Exception
Throws:
java.lang.Exception

restoreModelValue

public static void restoreModelValue(java.lang.Integer id,
                                     it.eng.spago.base.SourceBean serviceRequest,
                                     it.eng.spago.base.SourceBean serviceResponse)
                              throws java.lang.Exception
Throws:
java.lang.Exception