Package lumis.doui.table
Class TableAddDataProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<TableSource>
-
- lumis.doui.table.BaseTableDataProcessActionHandler
-
- lumis.doui.table.TableAddDataProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
- Direct Known Subclasses:
ContentTableAddDataProcessActionHandler
,MediaAddProcessActionHandler
,TableAddFileMultiRowDataProcessActionHandler
,TableAddMultiRowDataProcessActionHandler
@Deprecated @StableMinor(version="14.2", sinceVersion="10.3") public class TableAddDataProcessActionHandler extends BaseTableDataProcessActionHandler
Deprecated.Since 10.4.0, this class was replaced bySourceAddDataProcessActionHandler
due to the encapsulation of add operation onSource
. This class is kept only for backwards compatibility with custom classes extending it and may not be compatible with new features. If you are extending this process action handler for customizing some of its behavior on basic add operation, consider extending theSource
and using the standard process action handlers. If you are extending this process action only for parameter values adjustments, consider extendingSourceAddDataProcessActionHandler
instead.This class is responsible for the generic inserting process in the Content context. It executes the insert query generated byContentQueryBuilder
. It also is responsible for adding the new content to search index.- Since:
- 4.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
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 TableAddDataProcessActionHandler()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
doInsert()
Deprecated.The process of insertion in the database is done in this method.protected void
execute(QueryInsert queryInsert)
Deprecated.This method actually executes the insert statement.protected void
postInsert(String primaryKey)
Deprecated.Sets the primary key render parameter.protected void
preInsert(QueryInsert queryInsert)
Deprecated.Called before the insert action is taken.void
processAction()
Deprecated.Processes the required action callingprocessActionWithoutResponse()
and subsequently calls theProcessActionHandler.addDefaultResponse()
method.protected void
processActionWithoutResponse()
Deprecated.Processes the insert action.protected void
sendPostNotifications(String primaryKey)
Deprecated.Sends process action execution and interface changed notifications.protected void
sendPreNotifications(String primaryKey)
Deprecated.Called before the insert action is taken.protected void
setPrimaryKeyAttribute(String primaryKey)
Deprecated.Sets the primary key value in the request attribute.protected void
setPrimaryKeyParameter(Object primaryKeyValue)
Deprecated.The primary key value of the inserted data is placed in the process action parameters.protected void
setPrimaryKeyRenderParameter(String primaryKey)
Deprecated.Since 4.0.10 the primary key is no longer stored as a render parameter.-
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
createQueryBuilder, createRenderDataChangedEvent, getIndexConfig, indexData, isSearchEnabled, readSelectedData, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification
-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
-
-
-
-
Method Detail
-
processAction
public void processAction() throws PortalException
Deprecated.Processes the required action callingprocessActionWithoutResponse()
and subsequently calls theProcessActionHandler.addDefaultResponse()
method.- Throws:
PortalException
-
processActionWithoutResponse
protected void processActionWithoutResponse() throws PortalException
Deprecated.Processes the insert action.Here the
doInsert()
method is called to perform the insert.- Throws:
PortalException
- Since:
- 4.0.11
-
doInsert
protected void doInsert() throws PortalException
Deprecated.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.
- Throws:
PortalException
- Since:
- 4.0.11
-
setPrimaryKeyParameter
protected void setPrimaryKeyParameter(Object primaryKeyValue) throws PortalException
Deprecated.The primary key value of the inserted data is placed in the process action parameters.- Parameters:
primaryKeyValue
-- Throws:
PortalException
- Since:
- 4.0.11
-
preInsert
protected void preInsert(QueryInsert queryInsert) throws PortalException
Deprecated.Called before the insert action is taken.No action is taken here. This is simply a hook for objects that extend this class.
- Parameters:
queryInsert
-- Throws:
PortalException
- Since:
- 4.0.11
-
sendPreNotifications
protected void sendPreNotifications(String primaryKey) throws PortalException
Deprecated.Called before the insert action is taken.No action is taken here. This is simply a hook for objects that extend this class.
- Parameters:
queryInsert
-- Throws:
PortalException
- Since:
- 4.0.11
-
execute
protected void execute(QueryInsert queryInsert) throws PortalException
Deprecated.This method actually executes the insert statement.- Parameters:
queryInsert
-- Throws:
PortalException
- Since:
- 4.0.11
-
postInsert
protected void postInsert(String primaryKey) throws PortalException
Deprecated.Sets the primary key render parameter.- Parameters:
primaryKey
-- Throws:
PortalException
- Since:
- 4.0.11
-
setPrimaryKeyRenderParameter
@Deprecated protected void setPrimaryKeyRenderParameter(String primaryKey) throws PortalException
Deprecated.Since 4.0.10 the primary key is no longer stored as a render parameter. This method was replaced bysetPrimaryKeyAttribute(String)
. For backward compatibility, this method callssetPrimaryKeyAttribute(String)
.- Throws:
PortalException
-
setPrimaryKeyAttribute
protected void setPrimaryKeyAttribute(String primaryKey) throws PortalException
Deprecated.Sets the primary key value in the request attribute. This way other process actions that require the primary key value may obtain it.- Parameters:
primaryKey
- the primary key value. Ifnull
this method does nothing.- Throws:
PortalException
- Since:
- 4.0.10
-
sendPostNotifications
protected void sendPostNotifications(String primaryKey) throws PortalException
Deprecated.Sends process action execution and interface changed notifications.- Parameters:
primaryKey
-- Throws:
PortalException
- Since:
- 4.0.11
-
-