it.eng.spagobi.services.modules
Class DetailModalitiesValueModule

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.DetailModalitiesValueModule
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 DetailModalitiesValueModule
extends it.eng.spago.dispatching.module.AbstractModule

Implements a module which handles all predefined List of Values (LOV) management: has methods for LOV 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

Constructor Summary
DetailModalitiesValueModule()
           
 
Method Summary
 void init(it.eng.spago.base.SourceBean config)
           
 void labelControl(it.eng.spago.base.SourceBean request, java.lang.String mod)
          Controls if the label choosed by user is yet in use.
 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
 

Constructor Detail

DetailModalitiesValueModule

public DetailModalitiesValueModule()
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.

When a new value is defined, the user has to use a wizard to build all the new value definition. There are some methods written for this aim.

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

labelControl

public void labelControl(it.eng.spago.base.SourceBean request,
                         java.lang.String mod)
                  throws EMFUserError
Controls if the label choosed by user is yet in use. If it is, an error is added to the error handler.

Parameters:
request - The request Source Bean
mod - The modality
Throws:
EMFUserError

validateFields

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