SourceAddDataProcessActionHandler
due to the
encapsulation of add operation on Source
. 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 the Source
and using the
standard process action handlers. If you are extending this process action only for parameter values adjustments,
consider extending SourceAddDataProcessActionHandler
instead.@Deprecated @StableMinor(version="12.0", sinceVersion="10.3") public class TableAddDataProcessActionHandler extends BaseTableDataProcessActionHandler
ContentQueryBuilder
. It also is responsible for adding the new content to search index.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 and Description |
---|
TableAddDataProcessActionHandler()
Deprecated.
|
Modifier and Type | Method and 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 calling
processActionWithoutResponse() and subsequently calls the ProcessActionHandler.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. This method was replaced by
setPrimaryKeyAttribute(String) . For
backward compatibility, this method calls setPrimaryKeyAttribute(String) . |
createQueryBuilder, createRenderDataChangedEvent, getIndexConfig, indexData, isSearchEnabled, readSelectedData, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asParameters, emptyParameters
public TableAddDataProcessActionHandler()
public void processAction() throws PortalException
processActionWithoutResponse()
and subsequently calls the ProcessActionHandler.addDefaultResponse()
method.PortalException
protected void processActionWithoutResponse() throws PortalException
Here the doInsert()
method is called to perform the insert.
PortalException
protected void doInsert() throws PortalException
This method sends pre notifications, performs the insert, sends post notifications and finally indexes the data.
PortalException
protected void setPrimaryKeyParameter(Object primaryKeyValue) throws PortalException
primaryKeyValue
- PortalException
protected void preInsert(QueryInsert queryInsert) throws PortalException
No action is taken here. This is simply a hook for objects that extend this class.
queryInsert
- PortalException
protected void sendPreNotifications(String primaryKey) throws PortalException
No action is taken here. This is simply a hook for objects that extend this class.
queryInsert
- PortalException
protected void execute(QueryInsert queryInsert) throws PortalException
queryInsert
- PortalException
protected void postInsert(String primaryKey) throws PortalException
primaryKey
- PortalException
@Deprecated protected void setPrimaryKeyRenderParameter(String primaryKey) throws PortalException
setPrimaryKeyAttribute(String)
. For
backward compatibility, this method calls setPrimaryKeyAttribute(String)
.PortalException
protected void setPrimaryKeyAttribute(String primaryKey) throws PortalException
primaryKey
- the primary key value. If null
this method does nothing.PortalException
protected void sendPostNotifications(String primaryKey) throws PortalException
primaryKey
- PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.