@StableMinor(version="10.1", sinceVersion="8.0") public class TableAddDataProcessActionHandler extends BaseTableDataProcessActionHandler implements IDocumentation
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() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInsert()
The process of insertion in the database is done in this method.
|
protected void |
execute(QueryInsert queryInsert)
This method actually executes the insert statement.
|
String |
getDescription()
Returns an HTML description.
|
String |
getName()
Returns the name of the current object that will be displayed for documentation.
|
protected void |
postInsert(String primaryKey)
Sets the primary key render parameter.
|
protected void |
preInsert(QueryInsert queryInsert)
Called before the insert action is taken.
|
void |
processAction()
Processes the required action calling
processActionWithoutResponse() and subsequently calls the ProcessActionHandler.addDefaultResponse() method. |
protected void |
processActionWithoutResponse()
Processes the insert action.
|
protected void |
sendPostNotifications(String primaryKey)
Sends process action execution and interface changed notifications.
|
protected void |
sendPreNotifications(String primaryKey)
Called before the insert action is taken.
|
protected void |
setPrimaryKeyAttribute(String primaryKey)
Sets the primary key value in the request attribute.
|
protected void |
setPrimaryKeyParameter(Object primaryKeyValue)
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, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
public void processAction() throws PortalException
processActionWithoutResponse()
and subsequently calls the ProcessActionHandler.addDefaultResponse()
method.processAction
in interface IProcessActionHandler
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
public String getName()
IDocumentation
getName
in interface IDocumentation
public String getDescription()
IDocumentation
getDescription
in interface IDocumentation
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.