Package lumis.doui.source.processaction
Class SourceAddFileMultiRowDataProcessActionHandler<S extends Source<?>>
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<S>
-
- lumis.doui.source.processaction.BaseSourceProcessActionHandler<S>
-
- lumis.doui.source.processaction.SourceAddFileMultiRowDataProcessActionHandler<S>
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
- Direct Known Subclasses:
AlbumAddMultipleProcessActionHandler
,MediaAddMultipleProcessActionHandler
,MicroblogAttachmentsProcessActionHandler
@StableMinor(version="14.1", sinceVersion="10.4") public class SourceAddFileMultiRowDataProcessActionHandler<S extends Source<?>> extends BaseSourceProcessActionHandler<S>
This class is responsible for the generic add of multiple files in contents. It callsContentTableSource#addData(Object)
for each file.This process action handler should have the following nodes in its definition:
multiFileUploadControlId
: the id of the multiFileUploadControl that the process action will process the informations.
Example use of this process action:
image - Since:
- 10.4.0
- Version:
- $Revision: 24684 $ $Date: 2021-08-23 18:58:35 -0300 (Mon, 23 Aug 2021) $
-
-
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
Constructors Constructor Description SourceAddFileMultiRowDataProcessActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addRow()
Called bydoAction()
for each row to be added.protected void
doAction()
This method simply callsContentTableSourceAddDataProcessActionHandler#doAction()
for each row.protected IMultiFileUploadParameterItem
getFileItem()
The current file item to be added.Object
getParameter(String name)
This method overrides the parent method returning the appropriate value for the current row being inserted.void
setParameter(String name, Object value)
This method overrides the parent method including the current row number id in the parameter name.-
Methods inherited from class lumis.doui.source.processaction.BaseSourceProcessActionHandler
isSendRenderDataChangedNotificationEnabled, processAction
-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode
-
-
-
-
Method Detail
-
doAction
protected void doAction() throws PortalException
This method simply callsContentTableSourceAddDataProcessActionHandler#doAction()
for each row.- Specified by:
doAction
in classBaseSourceProcessActionHandler<S extends Source<?>>
- Throws:
PortalException
- Since:
- 10.4.0
-
addRow
protected void addRow() throws PortalException
- Throws:
PortalException
- Since:
- 10.4.0
-
getFileItem
protected IMultiFileUploadParameterItem getFileItem()
The current file item to be added. Set bydoAction()
before callingaddRow()
.- Returns:
- the current file item to be added.
- Since:
- 10.4.0
-
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 interfaceIParameters
- Specified by:
getParameter
in interfaceIProcessActionHandler
- Overrides:
getParameter
in classProcessActionHandler<S extends Source<?>>
- Since:
- 10.4.0
-
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 interfaceIProcessActionHandler
- Overrides:
setParameter
in classProcessActionHandler<S extends Source<?>>
- Since:
- 10.4.0
-
-