it.eng.spagobi.services.modules
Class DetailBIObjectModule

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.module.AbstractModule
          extended by it.eng.spagobi.services.modules.DetailBIObjectModule
All Implemented Interfaces:
it.eng.spago.dispatching.module.ModuleIFace, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable

public class DetailBIObjectModule
extends it.eng.spago.dispatching.module.AbstractModule

Implements a module which handles all BI objects management: has methods for BI Objects load, detail, modify/insertion and deleting operations. The service method has a switch for all these operations, differentiated the ones from the others by a message String.

Author:
sulis
See Also:
Serialized Form

Field Summary
static java.lang.String MODULE_PAGE
           
static java.lang.String NAME_ATTR_LIST_ENGINES
           
static java.lang.String NAME_ATTR_LIST_OBJ_TYPES
           
static java.lang.String NAME_ATTR_LIST_STATES
           
static java.lang.String NAME_ATTR_OBJECT
           
static java.lang.String NAME_ATTR_OBJECT_PAR
           
 
Constructor Summary
DetailBIObjectModule()
           
 
Method Summary
 void eraseVersion(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
           
 void fillRequestContainer(it.eng.spago.base.SourceBean request, it.eng.spago.error.EMFErrorHandler errorHandler)
          Fills the request container object with some BIObject and BIObjectParameter information contained into the request Source Bean (they are all attributes).
 int findBIObjParId(java.lang.Object parIdObj)
           
 void init(it.eng.spago.base.SourceBean config)
           
 void service(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
          Reads the operation asked by the user and calls the insertion, modify, detail and deletion methods.
 boolean validateFields(java.lang.String businessName, java.lang.String businessType)
           
 
Methods inherited from class it.eng.spago.dispatching.module.AbstractModule
getConfig, getModule, getPage, getSharedData, setModule, setPage, setSharedData
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse, setRequestContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE_PAGE

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

NAME_ATTR_OBJECT

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

NAME_ATTR_LIST_OBJ_TYPES

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

NAME_ATTR_LIST_ENGINES

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

NAME_ATTR_LIST_STATES

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

NAME_ATTR_OBJECT_PAR

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

DetailBIObjectModule

public DetailBIObjectModule()
Method Detail

init

public void init(it.eng.spago.base.SourceBean config)
Specified by:
init in interface it.eng.spago.init.InitializerIFace
Overrides:
init in class it.eng.spago.dispatching.module.AbstractModule

service

public void service(it.eng.spago.base.SourceBean request,
                    it.eng.spago.base.SourceBean response)
             throws java.lang.Exception
Reads the operation asked by the user and calls the insertion, modify, detail and deletion methods.

Parameters:
request - The Source Bean containing all request parameters
response - The Source Bean containing all response parameters
Throws:
exception - If an exception occurs
java.lang.Exception

findBIObjParId

public int findBIObjParId(java.lang.Object parIdObj)

fillRequestContainer

public void fillRequestContainer(it.eng.spago.base.SourceBean request,
                                 it.eng.spago.error.EMFErrorHandler errorHandler)
                          throws java.lang.Exception
Fills the request container object with some BIObject and BIObjectParameter information contained into the request Source Bean (they are all attributes). It is useful for validation process.

Parameters:
request - The request Source Bean
Throws:
it.eng.spago.base.SourceBeanException - If any exception occurred
java.lang.Exception

validateFields

public boolean validateFields(java.lang.String businessName,
                              java.lang.String businessType)
                       throws java.lang.Exception
Throws:
java.lang.Exception

eraseVersion

public void eraseVersion(it.eng.spago.base.SourceBean request,
                         it.eng.spago.base.SourceBean response)
                  throws EMFUserError
Throws:
EMFUserError