Package lumis.service.mediaalbum
Class MediaAddMultipleProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<S>
-
- lumis.doui.source.processaction.BaseSourceProcessActionHandler<S>
-
- lumis.doui.source.processaction.SourceAddFileMultiRowDataProcessActionHandler<Source<?>>
-
- lumis.service.mediaalbum.MediaAddMultipleProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
public class MediaAddMultipleProcessActionHandler extends SourceAddFileMultiRowDataProcessActionHandler<Source<?>>
ProcessActionHandler to get the default title from media file name uploaded. In addition it persist all Media added on the list by the user.- Since:
- 7.0.0
- Version:
- $Revision$ $Date$
-
-
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 MediaAddMultipleProcessActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addRow()
Called bySourceAddFileMultiRowDataProcessActionHandler.doAction()
for each row to be added.protected void
doAction()
This method simply callsContentTableSourceAddDataProcessActionHandler#doAction()
for each row.java.lang.Object
getParameter(java.lang.String name)
This method overrides the parent method returning the appropriate value for the current row being inserted.protected void
validateParameters(IMultiFileUploadParameter multiFileUploadParameter)
Validates the parameters, showing the correct error message if necessary.-
Methods inherited from class lumis.doui.source.processaction.SourceAddFileMultiRowDataProcessActionHandler
getFileItem, setParameter
-
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
Description copied from class:SourceAddFileMultiRowDataProcessActionHandler
This method simply callsContentTableSourceAddDataProcessActionHandler#doAction()
for each row.- Overrides:
doAction
in classSourceAddFileMultiRowDataProcessActionHandler<Source<?>>
- Throws:
PortalException
-
getParameter
public java.lang.Object getParameter(java.lang.String name)
Description copied from class:SourceAddFileMultiRowDataProcessActionHandler
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 classSourceAddFileMultiRowDataProcessActionHandler<Source<?>>
-
addRow
protected void addRow() throws PortalException
Description copied from class:SourceAddFileMultiRowDataProcessActionHandler
Called bySourceAddFileMultiRowDataProcessActionHandler.doAction()
for each row to be added. Adds a row for the currentSourceAddFileMultiRowDataProcessActionHandler.fileItem
/SourceAddFileMultiRowDataProcessActionHandler.fileData
.- Overrides:
addRow
in classSourceAddFileMultiRowDataProcessActionHandler<Source<?>>
- Throws:
PortalException
-
validateParameters
protected void validateParameters(IMultiFileUploadParameter multiFileUploadParameter) throws PortalException
Validates the parameters, showing the correct error message if necessary.- Parameters:
multiFileUploadParameter
- the multi file upload parameter.- Throws:
PortalException
- Since:
- 7.0.0
-
-