lumis.doui.table
Class TableUpdateDataProcessActionHandler

Package class diagram package TableUpdateDataProcessActionHandler
java.lang.Object
  extended by lumis.doui.processaction.ProcessActionHandler<TableSource>
      extended by lumis.doui.table.BaseTableDataProcessActionHandler
          extended by lumis.doui.table.TableUpdateDataProcessActionHandler
All Implemented Interfaces:
IProcessActionHandler, IParameters
Direct Known Subclasses:
ContentTableUpdateDataProcessActionHandler, FileListEditProcessActionHandler, TableUpdateMultiRowDataProcessActionHandler

@StableMinor(version="5.5",
             sinceVersion="4.0")
public class TableUpdateDataProcessActionHandler
extends BaseTableDataProcessActionHandler

Process Action Handler to update table data

Since:
4.0.6

Field Summary
protected  QueryBuilder queryBuilder
           
 
Fields inherited from class lumis.doui.processaction.ProcessActionHandler
douiContext, id, localizationManager, parameters, processActionContainer, processActionNode, RESPONSE_TYPE_CLOSE_WINDOW, RESPONSE_TYPE_HYPERLINK, RESPONSE_TYPE_MESSAGE, RESPONSE_TYPE_POPUP_INTERFACE, RESPONSE_TYPE_PREVIEW, RESPONSE_TYPE_REFRESH_PARENT, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_MESSAGE, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_PROCESS_ACTION_ID, RESPONSE_TYPE_RUN_JAVASCRIPT, RESPONSE_TYPE_SET_REQUEST_ATTRIBUTES, RESPONSE_TYPE_SET_REQUEST_PARAMETERS, RESPONSE_TYPE_SET_RESPONSE_PARAMETERS, RESPONSE_TYPE_STANDARD_COMMIT, RESPONSE_TYPE_STANDARD_EMBEDDED, RESPONSE_TYPE_STANDARD_POPUP, RESPONSE_TYPE_VALIDATE_PROCESS_ACTION_ON_RENDER, sessionConfig, source, sourceContainer, transaction
 
Constructor Summary
TableUpdateDataProcessActionHandler()
           
 
Method Summary
protected  QueryBase buildQuery()
          Calls the query build to build an update statement.
protected  void doUpdate()
          Sends pre-notifications, performs the updated followed by post-notifications.
protected  void execute(QueryBase queryBase)
          Actually performs the update statement.
protected  void indexData()
          Updates search index information for modified content.
protected  void postUpdate()
          Hook placed for inheriting classes to perform post-update actions.
protected  void preUpdate(QueryBase queryBase)
          Hook placed for inheriting classes to perform pre-update actions.
 void processAction()
          Executes the process action.
protected  void processActionWithoutResponse()
          Simply calls the doUpdate() method.
protected  void sendPostNotifications()
          Sends Update and interface changed notifications.
protected  void sendPreNotifications()
          Hook placed for inheriting classes to send pre-notifications.
protected  void sendRenderDataChangedNotification()
          Notifies observers that the render data may have changed.
 
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
addToIndex, createQueryBuilder, createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, removeFromIndex, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification
 
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryBuilder

protected QueryBuilder queryBuilder
Constructor Detail

TableUpdateDataProcessActionHandler

public TableUpdateDataProcessActionHandler()
Method Detail

processAction

public void processAction()
                   throws PortalException
Description copied from interface: IProcessActionHandler
Executes the process action.

This method may execute the process action based on the parameters and node specifications passed to it earlier.

Throws:
PortalException

processActionWithoutResponse

protected void processActionWithoutResponse()
                                     throws PortalException
Simply calls the doUpdate() method.

Throws:
PortalException
Since:
4.0.11

doUpdate

protected void doUpdate()
                 throws PortalException
Sends pre-notifications, performs the updated followed by post-notifications.

Throws:
PortalException
Since:
4.0.11

buildQuery

protected QueryBase buildQuery()
                        throws PortalException
Calls the query build to build an update statement.

Returns:
Throws:
PortalException
Since:
4.0.11

sendPreNotifications

protected void sendPreNotifications()
                             throws PortalException
Hook placed for inheriting classes to send pre-notifications.

This method currently does not perform any action.

Throws:
PortalException
Since:
4.0.11

execute

protected void execute(QueryBase queryBase)
                throws PortalException
Actually performs the update statement.

Parameters:
queryBase -
Throws:
PortalException
Since:
4.0.11

preUpdate

protected void preUpdate(QueryBase queryBase)
                  throws PortalException
Hook placed for inheriting classes to perform pre-update actions.

Parameters:
queryBase -
Throws:
PortalException
Since:
4.0.11

postUpdate

protected void postUpdate()
                   throws PortalException
Hook placed for inheriting classes to perform post-update actions.

Throws:
PortalException
Since:
4.0.11

indexData

protected void indexData()
                  throws PortalException
Updates search index information for modified content.

Overrides:
indexData in class BaseTableDataProcessActionHandler
Throws:
PortalException

sendPostNotifications

protected void sendPostNotifications()
                              throws PortalException
Sends Update and interface changed notifications.

Throws:
PortalException
Since:
4.0.11

sendRenderDataChangedNotification

protected void sendRenderDataChangedNotification()
                                          throws PortalException
Notifies observers that the render data may have changed.

Throws:
PortalException
Since:
4.1.0


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.