Package lumis.content.table
Class ContentTableUpdateDataProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<TableSource>
-
- lumis.doui.table.BaseTableDataProcessActionHandler
-
- lumis.doui.table.TableUpdateDataProcessActionHandler
-
- lumis.content.table.ContentTableUpdateDataProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
@Deprecated @StableMinor(version="14.0", sinceVersion="10.3") public class ContentTableUpdateDataProcessActionHandler extends TableUpdateDataProcessActionHandler
Deprecated.Since 10.4.0, this class was replaced byContentTableSourceUpdateDataProcessActionHandler
due to the encapsulation of update 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 update operation, consider extending theSource
and using the standard process action handlers. If you are extending this process action only for parameter values adjustments, consider extendingContentTableSourceUpdateDataProcessActionHandler
instead.This class is responsible for the generic updating process in the Content context. It executes the update query generated byContentQueryBuilder
and callsContentMetaDataController
, so it will handle meta data information appropriately. When versioning is enabled, this class is responsible for modifying the parameters and useContentQueryBuilder
to build a insertion query, instead of update. It also is responsible for updating search index according to the changes made to the content.- Since:
- 4.0.4
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class lumis.doui.table.TableUpdateDataProcessActionHandler
queryBuilder
-
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 ContentTableUpdateDataProcessActionHandler()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected QueryBase
buildQuery()
Deprecated.Builds query using ContentQueryBuilder created.protected QueryBuilder
createQueryBuilder()
Deprecated.CreatesContentQueryBuilder
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 callingMetaDataController
.protected void
sendPreNotifications()
Deprecated.Sends pre-execution notifications toPortalEventManager
.protected void
sendRenderDataChangedNotification()
Deprecated.Notifies observers that the render data may have changed.-
Methods inherited from class lumis.doui.table.TableUpdateDataProcessActionHandler
doUpdate, preUpdate, processAction, processActionWithoutResponse, sendPostNotifications
-
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification
-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
-
-
-
-
Field Detail
-
versionActiveFieldId
protected String versionActiveFieldId
Deprecated.
-
primaryKeyFieldId
protected String primaryKeyFieldId
Deprecated.
-
previousVersionPrimaryKeyValue
protected String previousVersionPrimaryKeyValue
Deprecated.
-
newVersionPrimaryKeyValue
protected String newVersionPrimaryKeyValue
Deprecated.
-
previousNotificationContentId
protected String previousNotificationContentId
Deprecated.
-
previousLocale
protected Locale previousLocale
Deprecated.
-
-
Method Detail
-
init
public void init(Node processActionNode, ProcessActionContainer processActionContainer) throws PortalException
Deprecated.Initiates the process action handler object.- Specified by:
init
in interfaceIProcessActionHandler
- Overrides:
init
in classProcessActionHandler<TableSource>
- Parameters:
processActionNode
-processActionContainer
-- Throws:
PortalException
-
execute
protected void execute(QueryBase queryBase) throws PortalException
Deprecated.Executes the query given. If versioning is enabled, consider the query as an insert statemente, otherwise as an update statement.- Overrides:
execute
in classTableUpdateDataProcessActionHandler
- Parameters:
queryBase
-- Throws:
PortalException
-
postUpdate
protected void postUpdate() throws PortalException
Deprecated.Executes all post update (or post insert, if using versioning) necessary to manage meta data after editing the content, including callingMetaDataController
.- Overrides:
postUpdate
in classTableUpdateDataProcessActionHandler
- Throws:
PortalException
-
createQueryBuilder
protected QueryBuilder createQueryBuilder() throws PortalException
Deprecated.CreatesContentQueryBuilder
object for building update (or insert) query.- Overrides:
createQueryBuilder
in classBaseTableDataProcessActionHandler
- Throws:
PortalException
-
buildQuery
protected QueryBase buildQuery() throws PortalException
Deprecated.Builds query using ContentQueryBuilder created. If there is versioning, the primary key parameter is removed from the parameters so theContentQueryBuilder
will generate a new primary key for the inserted row. After that the value is reinserted as the new primary key.- Overrides:
buildQuery
in classTableUpdateDataProcessActionHandler
- Returns:
- Throws:
PortalException
-
indexData
protected void indexData() throws PortalException
Deprecated.- Overrides:
indexData
in classBaseTableDataProcessActionHandler
- Throws:
PortalException
-
sendPreNotifications
protected void sendPreNotifications() throws PortalException
Deprecated.Sends pre-execution notifications toPortalEventManager
.- Overrides:
sendPreNotifications
in classTableUpdateDataProcessActionHandler
- Throws:
PortalException
-
sendRenderDataChangedNotification
protected void sendRenderDataChangedNotification() throws PortalException
Deprecated.Description copied from class:TableUpdateDataProcessActionHandler
Notifies observers that the render data may have changed.- Overrides:
sendRenderDataChangedNotification
in classTableUpdateDataProcessActionHandler
- Throws:
PortalException
-
-