ContentTableSourceDeleteDataProcessActionHandler
due to the encapsulation of delete 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 delete 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 ContentTableSourceDeleteDataProcessActionHandler
instead.@Deprecated @StableMinor(version="12.0", sinceVersion="10.3") public class ContentTableDeleteDataProcessActionHandler extends TableDeleteDataProcessActionHandler
ContentQueryBuilder
and calls MetaDataController
so
it will handle meta data and information appropriately.
When versioning is enabled, this class is
responsible for modifying the primary key parameter values to build a delete
query, so it will remove all versions of the selected items. It also is
responsible for updating search index according to the changes made to the
content.Modifier and Type | Field and Description |
---|---|
protected String |
primaryKeyFieldId
Deprecated.
|
protected String |
versionActiveFieldId
Deprecated.
|
protected ArrayList<String> |
versionContentIds
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 |
---|
ContentTableDeleteDataProcessActionHandler()
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 delete query. |
protected void |
deleteRelatedData(Collection<String> itemIds,
Node currentSourceDefinitionNode,
String foreignPrimaryKeyFieldId,
ITransaction transaction)
Deprecated.
Deletes all data related to the given primary key ids.
|
protected void |
indexData()
Deprecated.
|
protected void |
postDelete()
Deprecated.
Executes all post delete necessary to manage meta data after removing the
data from main table.
|
protected void |
preDelete(QueryBase queryBase)
Deprecated.
Hook placed in that does not perform any action.
|
protected void |
sendRenderDataChangedNotification(Object pks)
Deprecated.
Notifies observers that the render data may have changed.
|
createRenderDataChangedEvent, createTableSource, deleteRelatedFiles, execute, processAction, processActionWithoutResponse, sendPostNotifications, sendPreNotifications, sendRenderDataChangedNotification, setParameter
getIndexConfig, isSearchEnabled, readSelectedData, shouldSendRenderDataChangedNotification
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asParameters, emptyParameters
protected String versionActiveFieldId
protected String primaryKeyFieldId
public ContentTableDeleteDataProcessActionHandler()
protected void postDelete() throws PortalException
postDelete
in class TableDeleteDataProcessActionHandler
PortalException
protected void indexData() throws PortalException
indexData
in class BaseTableDataProcessActionHandler
PortalException
protected void deleteRelatedData(Collection<String> itemIds, Node currentSourceDefinitionNode, String foreignPrimaryKeyFieldId, ITransaction transaction) throws PortalException
TableDeleteDataProcessActionHandler
This method looks up all the relations of the data being deleted. If any of them have the attribute cascadeOnDelete set to true, the related source data is automatically deleted.
deleteRelatedData
in class TableDeleteDataProcessActionHandler
PortalException
protected QueryBuilder createQueryBuilder() throws PortalException
ContentQueryBuilder
object for building delete query.createQueryBuilder
in class BaseTableDataProcessActionHandler
PortalException
protected QueryBase buildQuery() throws PortalException
buildQuery
in class TableDeleteDataProcessActionHandler
PortalException
protected void sendRenderDataChangedNotification(Object pks) throws PortalException
BaseTableDataProcessActionHandler
sendRenderDataChangedNotification
in class BaseTableDataProcessActionHandler
PortalException
protected void preDelete(QueryBase queryBase) throws PortalException
TableDeleteDataProcessActionHandler
This method exists for classes that extend this class to be able to perform actions before the deletion occurs.
preDelete
in class TableDeleteDataProcessActionHandler
PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.