ContentTableSourceUpdateDataProcessActionHandler
due to the encapsulation of update 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 update 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 ContentTableSourceUpdateDataProcessActionHandler
instead.@Deprecated @StableMinor(version="12.5", sinceVersion="10.3") public class ContentTableUpdateDataProcessActionHandler extends TableUpdateDataProcessActionHandler
ContentQueryBuilder
and calls ContentMetaDataController
,
so it will handle meta data information appropriately.
When versioning is enabled, this class is
responsible for modifying the parameters and use ContentQueryBuilder
to build a insertion query, instead of update. It also is responsible for
updating search index according to the changes made to the content.Modifier and Type | Field and Description |
---|---|
protected String |
newVersionPrimaryKeyValue
Deprecated.
|
protected Locale |
previousLocale
Deprecated.
|
protected String |
previousNotificationContentId
Deprecated.
|
protected String |
previousVersionPrimaryKeyValue
Deprecated.
|
protected String |
primaryKeyFieldId
Deprecated.
|
protected String |
versionActiveFieldId
Deprecated.
|
queryBuilder
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 |
---|
ContentTableUpdateDataProcessActionHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected QueryBase |
buildQuery()
Deprecated.
Builds query using ContentQueryBuilder created.
|
protected QueryBuilder |
createQueryBuilder()
Deprecated.
Creates
ContentQueryBuilder object for building update (or
insert) query. |
protected void |
execute(QueryBase queryBase)
Deprecated.
Executes the query given.
|
protected void |
indexData()
Deprecated.
|
void |
init(Node processActionNode,
ProcessActionContainer processActionContainer)
Deprecated.
Initiates the process action handler object.
|
protected void |
postUpdate()
Deprecated.
Executes all post update (or post insert, if using versioning) necessary
to manage meta data after editing the content, including calling
MetaDataController . |
protected void |
sendPreNotifications()
Deprecated.
Sends pre-execution notifications to
PortalEventManager . |
protected void |
sendRenderDataChangedNotification()
Deprecated.
Notifies observers that the render data may have changed.
|
doUpdate, preUpdate, processAction, processActionWithoutResponse, sendPostNotifications
createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asParameters, emptyParameters
protected String versionActiveFieldId
protected String primaryKeyFieldId
protected String previousVersionPrimaryKeyValue
protected String newVersionPrimaryKeyValue
protected String previousNotificationContentId
protected Locale previousLocale
public ContentTableUpdateDataProcessActionHandler()
public void init(Node processActionNode, ProcessActionContainer processActionContainer) throws PortalException
init
in interface IProcessActionHandler
init
in class ProcessActionHandler<TableSource>
processActionNode
- processActionContainer
- PortalException
protected void execute(QueryBase queryBase) throws PortalException
execute
in class TableUpdateDataProcessActionHandler
queryBase
- PortalException
protected void postUpdate() throws PortalException
MetaDataController
.postUpdate
in class TableUpdateDataProcessActionHandler
PortalException
protected QueryBuilder createQueryBuilder() throws PortalException
ContentQueryBuilder
object for building update (or
insert) query.createQueryBuilder
in class BaseTableDataProcessActionHandler
PortalException
protected QueryBase buildQuery() throws PortalException
ContentQueryBuilder
will generate a new primary key for the
inserted row. After that the value is reinserted as the new primary key.buildQuery
in class TableUpdateDataProcessActionHandler
PortalException
protected void indexData() throws PortalException
indexData
in class BaseTableDataProcessActionHandler
PortalException
protected void sendPreNotifications() throws PortalException
PortalEventManager
.sendPreNotifications
in class TableUpdateDataProcessActionHandler
PortalException
protected void sendRenderDataChangedNotification() throws PortalException
TableUpdateDataProcessActionHandler
sendRenderDataChangedNotification
in class TableUpdateDataProcessActionHandler
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.