lumis.service.mediaalbum
Class MediaAddMultipleProcessActionHandler

Package class diagram package MediaAddMultipleProcessActionHandler
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.doui.table.TableAddFileMultiRowDataProcessActionHandler
                  extended by lumis.service.mediaalbum.MediaAddMultipleProcessActionHandler
All Implemented Interfaces:
IProcessActionHandler, IParameters

public class MediaAddMultipleProcessActionHandler
extends TableAddFileMultiRowDataProcessActionHandler

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

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
MediaAddMultipleProcessActionHandler()
           
 
Method Summary
protected  void doInsert()
          The process of insertion in the database is done in this method.
 Object getParameter(String name)
          This method overrides the parent method returning the appropriate value for the current row being inserted.
 void processAction()
          Processes the required action calling TableAddDataProcessActionHandler.processActionWithoutResponse() and subsequently calls the ProcessActionHandler.addDefaultResponse() method.
protected  void validateParameters(IMultiFileUploadParameter multiFileUploadParameter)
          Validates the parameters, showing the correct error message if necessary.
 
Methods inherited from class lumis.doui.table.TableAddFileMultiRowDataProcessActionHandler
getFileItem, processActionWithoutResponse, setParameter, setPrimaryKeyAttribute, setPrimaryKeyRenderParameter
 
Methods inherited from class lumis.doui.table.TableAddDataProcessActionHandler
execute, indexData, postInsert, preInsert, sendPostNotifications, sendPreNotifications, setPrimaryKeyParameter
 
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, 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

MediaAddMultipleProcessActionHandler

public MediaAddMultipleProcessActionHandler()
Method Detail

processAction

public void processAction()
                   throws PortalException
Description copied from class: TableAddDataProcessActionHandler
Processes the required action calling TableAddDataProcessActionHandler.processActionWithoutResponse() and subsequently calls the ProcessActionHandler.addDefaultResponse() method.

Specified by:
processAction in interface IProcessActionHandler
Overrides:
processAction in class TableAddDataProcessActionHandler
Throws:
PortalException

getParameter

public Object getParameter(String name)
Description copied from class: TableAddFileMultiRowDataProcessActionHandler
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 TableAddFileMultiRowDataProcessActionHandler

doInsert

protected void doInsert()
                 throws PortalException
Description copied from class: TableAddDataProcessActionHandler
The process of insertion in the database is done in this method.

This method sends pre notifications, performs the insert, sends post notifications and finally indexes the data.

Overrides:
doInsert in class TableAddDataProcessActionHandler
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


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