it.eng.spagobi.behaviouralmodel.check.service
Class DetailChecksModule

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.module.AbstractHttpModule
              extended by it.eng.spagobi.behaviouralmodel.check.service.DetailChecksModule
All Implemented Interfaces:
it.eng.spago.dispatching.module.ModuleIFace, 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 DetailChecksModule
extends it.eng.spago.dispatching.module.AbstractHttpModule

Implements a module which handles all values constraints management: has methods for values constraint 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
DetailChecksModule()
           
 
Method Summary
 void init(it.eng.spago.base.SourceBean config)
           
 void labelControl(java.lang.String label, java.lang.Integer checkId)
          During a value constraint insertion/modify, controls if the label given to the value constraint 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.
 
Methods inherited from class it.eng.spago.dispatching.module.AbstractHttpModule
getConfig, getModule, getModuleMethod, getPage, getSharedData, setModule, setModuleMethod, setPage, setSharedData
 
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
 

Constructor Detail

DetailChecksModule

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

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 - the exception

labelControl

public void labelControl(java.lang.String label,
                         java.lang.Integer checkId)
                  throws it.eng.spago.error.EMFUserError
During a value constraint insertion/modify, controls if the label given to the value constraint is yet in use.

Parameters:
label - The label of the check to insert/modify
checkId - The id of the check to insert/modify
Throws:
it.eng.spago.error.EMFUserError - If any Exception occurred