it.eng.spagobi.commons.services
Class AbstractBasicCheckListModule

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.module.AbstractModule
          extended by it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule
              extended by it.eng.spagobi.commons.services.AbstractListLookupModule
                  extended by it.eng.spagobi.commons.services.AbstractBasicCheckListModule
All Implemented Interfaces:
it.eng.spago.dispatching.module.ModuleIFace, it.eng.spago.dispatching.service.list.basic.IFaceBasicListService, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable
Direct Known Subclasses:
AbstractHibernateConnectionCheckListModule

public class AbstractBasicCheckListModule
extends AbstractListLookupModule

Author:
Gioia
See Also:
Serialized Form

Field Summary
 it.eng.spago.base.SourceBean _request
           
 it.eng.spago.base.SourceBean _response
           
protected  java.util.List allElements
           
static java.lang.String CHECKED_OBJECTS
           
static java.lang.String CHECKED_OBJECTS_DESC
           
protected  java.util.Map checkedObjectsMap
           
protected  it.eng.spago.base.SourceBean config
           
static java.lang.String MODULE_PAGE
           
static java.lang.String OBJECT
           
protected  int pageNumber
           
protected  boolean returnValues
           
 
Constructor Summary
AbstractBasicCheckListModule()
          Instantiates a new abstract basic check list module.
 
Method Summary
static void clearSession(it.eng.spago.base.SessionContainer session, java.lang.String moduleName)
          Clear session.
 void createCheckedObjectMap(it.eng.spago.base.SourceBean request)
          Creates the checked object map.
 boolean delete(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
           
 void exitFromModule(it.eng.spago.base.SourceBean response, boolean abort)
          Exit from module.
protected  java.lang.Object getAttribute(java.lang.String attrName, it.eng.spago.base.SourceBean request)
           
protected  java.util.List getCheckedObjectKeys(it.eng.spago.base.SourceBean request)
           
 it.eng.spago.base.SourceBean getCheckedObjects()
          Gets the checked objects.
 it.eng.spago.paginator.basic.ListIFace getList(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
           
 it.eng.spago.base.SourceBean getObject(java.lang.String key)
          Gets the object.
 java.lang.String getObjectKey(it.eng.spago.base.SourceBean object)
          Gets the object key.
 java.lang.String[] getQueryParameters(java.lang.String queryName, it.eng.spago.base.SourceBean request)
          Gets the query parameters.
 java.lang.String getQueryStatement(java.lang.String queryName, java.lang.String[] parameters)
          Gets the query statement.
 boolean isChecked(it.eng.spago.base.SourceBean object)
          Checks if is checked.
 void navigationHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response, boolean moveNext)
          Navigation handler.
 void navigationHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response, int destPage)
          Navigation handler.
 void navigationHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response, java.lang.Integer pageNumber)
          Navigation handler.
 void postprocess(it.eng.spago.base.SourceBean response)
          Postprocess.
 void preprocess(it.eng.spago.base.SourceBean request)
          Preprocess.
 void save()
          Save.
 void service(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
           
 void updateCheckedObjectMap(it.eng.spago.base.SourceBean request)
          Update checked object map.
 
Methods inherited from class it.eng.spagobi.commons.services.AbstractListLookupModule
filterListForCorrelatedParam, filterListForCorrelatedParam, getErroHandler, intersectLists, mergeLists
 
Methods inherited from class it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule
callback, getList, setList
 
Methods inherited from class it.eng.spago.dispatching.module.AbstractModule
getConfig, getModule, getModuleMethod, getPage, getSharedData, init, setModule, setModuleMethod, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected it.eng.spago.base.SourceBean config

checkedObjectsMap

protected java.util.Map checkedObjectsMap

allElements

protected java.util.List allElements

pageNumber

protected int pageNumber

returnValues

protected boolean returnValues

MODULE_PAGE

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

OBJECT

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

CHECKED_OBJECTS

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

CHECKED_OBJECTS_DESC

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

_request

public it.eng.spago.base.SourceBean _request

_response

public it.eng.spago.base.SourceBean _response
Constructor Detail

AbstractBasicCheckListModule

public AbstractBasicCheckListModule()
Instantiates a new abstract basic check list module.

Method Detail

clearSession

public static void clearSession(it.eng.spago.base.SessionContainer session,
                                java.lang.String moduleName)
Clear session.

Parameters:
session - the session
moduleName - the module name

save

public void save()
          throws java.lang.Exception
Save.

Throws:
java.lang.Exception - the exception

exitFromModule

public void exitFromModule(it.eng.spago.base.SourceBean response,
                           boolean abort)
                    throws java.lang.Exception
Exit from module.

Parameters:
response - the response
abort - the abort
Throws:
java.lang.Exception - the exception

getObjectKey

public java.lang.String getObjectKey(it.eng.spago.base.SourceBean object)
Gets the object key.

Parameters:
object - the object
Returns:
the object key

getObject

public it.eng.spago.base.SourceBean getObject(java.lang.String key)
                                       throws java.lang.Exception
Gets the object.

Parameters:
key - the key
Returns:
the object
Throws:
java.lang.Exception - the exception

getCheckedObjects

public it.eng.spago.base.SourceBean getCheckedObjects()
                                               throws java.lang.Exception
Gets the checked objects.

Returns:
the checked objects
Throws:
java.lang.Exception - the exception

getQueryParameters

public java.lang.String[] getQueryParameters(java.lang.String queryName,
                                             it.eng.spago.base.SourceBean request)
Gets the query parameters.

Parameters:
queryName - the query name
request - the request
Returns:
the query parameters

getQueryStatement

public java.lang.String getQueryStatement(java.lang.String queryName,
                                          java.lang.String[] parameters)
Gets the query statement.

Parameters:
queryName - the query name
parameters - the parameters
Returns:
the query statement

getCheckedObjectKeys

protected java.util.List getCheckedObjectKeys(it.eng.spago.base.SourceBean request)

createCheckedObjectMap

public void createCheckedObjectMap(it.eng.spago.base.SourceBean request)
                            throws java.lang.Exception
Creates the checked object map.

Parameters:
request - the request
Throws:
java.lang.Exception - the exception

updateCheckedObjectMap

public void updateCheckedObjectMap(it.eng.spago.base.SourceBean request)
                            throws java.lang.Exception
Update checked object map.

Parameters:
request - the request
Throws:
java.lang.Exception - the exception

preprocess

public void preprocess(it.eng.spago.base.SourceBean request)
                throws java.lang.Exception
Preprocess.

Parameters:
request - the request
Throws:
java.lang.Exception - the exception

isChecked

public boolean isChecked(it.eng.spago.base.SourceBean object)
Checks if is checked.

Parameters:
object - the object
Returns:
true, if is checked

postprocess

public void postprocess(it.eng.spago.base.SourceBean response)
                 throws java.lang.Exception
Postprocess.

Parameters:
response - the response
Throws:
java.lang.Exception - the exception

service

public void service(it.eng.spago.base.SourceBean request,
                    it.eng.spago.base.SourceBean response)
             throws java.lang.Exception
Specified by:
service in interface it.eng.spago.dispatching.service.ServiceIFace
Overrides:
service in class it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule
Throws:
java.lang.Exception

navigationHandler

public void navigationHandler(it.eng.spago.base.SourceBean request,
                              it.eng.spago.base.SourceBean response,
                              boolean moveNext)
                       throws java.lang.Exception
Navigation handler.

Parameters:
request - the request
response - the response
moveNext - the move next
Throws:
java.lang.Exception - the exception

navigationHandler

public void navigationHandler(it.eng.spago.base.SourceBean request,
                              it.eng.spago.base.SourceBean response,
                              int destPage)
                       throws java.lang.Exception
Navigation handler.

Parameters:
request - the request
response - the response
moveNext - the move next
Throws:
java.lang.Exception - the exception

navigationHandler

public void navigationHandler(it.eng.spago.base.SourceBean request,
                              it.eng.spago.base.SourceBean response,
                              java.lang.Integer pageNumber)
                       throws java.lang.Exception
Navigation handler.

Parameters:
request - the request
response - the response
pageNumber - the page number
Throws:
java.lang.Exception - the exception

getAttribute

protected java.lang.Object getAttribute(java.lang.String attrName,
                                        it.eng.spago.base.SourceBean request)

getList

public it.eng.spago.paginator.basic.ListIFace getList(it.eng.spago.base.SourceBean request,
                                                      it.eng.spago.base.SourceBean response)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

delete

public boolean delete(it.eng.spago.base.SourceBean request,
                      it.eng.spago.base.SourceBean response)
Specified by:
delete in interface it.eng.spago.dispatching.service.list.basic.IFaceBasicListService
Overrides:
delete in class it.eng.spago.dispatching.module.list.basic.AbstractBasicListModule