lumis.content.table
Class ContentTableAddFileMultiRowDataProcessActionHandler

Package class diagram package ContentTableAddFileMultiRowDataProcessActionHandler
java.lang.Object
  extended by lumis.doui.processaction.ProcessActionHandler<TableSource>
      extended by lumis.doui.table.BaseTableDataProcessActionHandler
          extended by lumis.doui.table.TableAddDataProcessActionHandler
              extended by lumis.content.table.ContentTableAddDataProcessActionHandler
                  extended by lumis.content.table.ContentTableAddFileMultiRowDataProcessActionHandler
All Implemented Interfaces:
IProcessActionHandler, IParameters

@StableMinor(version="6.2",
             sinceVersion="6.1")
public class ContentTableAddFileMultiRowDataProcessActionHandler
extends ContentTableAddDataProcessActionHandler

This class is responsible for the generic inserting process of multiple files in the Content context. It executes the insert query generated by ContentQueryBuilder and calls MetaDataController so it will handle meta data information appropriately. It also is responsible for adding the new content to search index.

This process action handler should have the following nodes in its definition:

Example use of this process action:

<controls> <control:lum_form> <control:lum_multiFileUpload id="image" sourceId="default" /> </control:lum_form> </controls> <processAction id="commit" type="contentTableAddFileMultiRowDataProcessActionHandler"> <multiFileUploadControlId>image</multiFileUploadControlId> <response type="doui_standardCommit" /> </processAction>

Since:
6.1.0

Field Summary
 
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
ContentTableAddFileMultiRowDataProcessActionHandler()
           
 
Method Summary
 IMultiFileUploadParameterItem getFileItem()
          Returns the current FileItem that is being processed.
 Object getParameter(String name)
          This method overrides the parent method returning the appropriate value for the current row being inserted.
protected  void processActionWithoutResponse()
          Performs the process action.
 void setParameter(String name, Object value)
          This method overrides the parent method including the current row number id in the parameter name.
protected  void setPrimaryKeyAttribute(String primaryKey)
          There exists multiple primary keys.
protected  void setPrimaryKeyRenderParameter(String primaryKey)
          Deprecated. 
 
Methods inherited from class lumis.content.table.ContentTableAddDataProcessActionHandler
createQueryBuilder, indexData, postInsert, sendRenderDataChangedNotification
 
Methods inherited from class lumis.doui.table.TableAddDataProcessActionHandler
doInsert, execute, preInsert, processAction, sendPostNotifications, sendPreNotifications, setPrimaryKeyParameter
 
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
addToIndex, createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, removeFromIndex, shouldSendRenderDataChangedNotification
 
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getId, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTableAddFileMultiRowDataProcessActionHandler

public ContentTableAddFileMultiRowDataProcessActionHandler()
Method Detail

processActionWithoutResponse

protected void processActionWithoutResponse()
                                     throws PortalException
Performs the process action. This method simply calls the doInsert method of TableAddDataProcessActionHandler.doInsert() for each row.

Overrides:
processActionWithoutResponse in class TableAddDataProcessActionHandler
Throws:
PortalException

getParameter

public Object getParameter(String name)
This method overrides the parent method returning the appropriate value for the current row being inserted.

Specified by:
getParameter in interface IProcessActionHandler
Specified by:
getParameter in interface IParameters
Overrides:
getParameter in class ProcessActionHandler<TableSource>

setPrimaryKeyRenderParameter

@Deprecated
protected void setPrimaryKeyRenderParameter(String primaryKey)
                                     throws PortalException
Deprecated. 

There exists multiple primary keys. Therefore do not set any primary key here.

Overrides:
setPrimaryKeyRenderParameter in class TableAddDataProcessActionHandler
Throws:
PortalException

setPrimaryKeyAttribute

protected void setPrimaryKeyAttribute(String primaryKey)
                               throws PortalException
There exists multiple primary keys. Therefore do not set any primary key here.

Overrides:
setPrimaryKeyAttribute in class TableAddDataProcessActionHandler
Parameters:
primaryKey - the primary key value. If null this method does nothing.
Throws:
PortalException

setParameter

public void setParameter(String name,
                         Object value)
This method overrides the parent method including the current row number id in the parameter name.

Specified by:
setParameter in interface IProcessActionHandler
Specified by:
setParameter in interface IParameters
Overrides:
setParameter in class ProcessActionHandler<TableSource>

getFileItem

public IMultiFileUploadParameterItem getFileItem()
Returns the current FileItem that is being processed.

Returns:
the current fileItem
Since:
6.1.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.