Package lumis.content.table
Class ContentTableDeleteDataProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<TableSource>
-
- lumis.doui.table.BaseTableDataProcessActionHandler
-
- lumis.doui.table.TableDeleteDataProcessActionHandler
-
- lumis.content.table.ContentTableDeleteDataProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
- Direct Known Subclasses:
DocumentDeleteProcessActionHandler
,MediaDeleteProcessActionHandler
@Deprecated @StableMinor(version="17.0", sinceVersion="10.3") public class ContentTableDeleteDataProcessActionHandler extends TableDeleteDataProcessActionHandler
Deprecated.Since 10.4.0, this class was replaced byContentTableSourceDeleteDataProcessActionHandler
due to the encapsulation of delete 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 delete operation, consider extending theSource
and using the standard process action handlers. If you are extending this process action only for parameter values adjustments, consider extendingContentTableSourceDeleteDataProcessActionHandler
instead.This class is responsible for the generic deleting process in the Content context. It executes the delete query generated byContentQueryBuilder
and callsMetaDataController
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.- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
primaryKeyFieldId
Deprecated.protected java.lang.String
versionActiveFieldId
Deprecated.protected java.util.ArrayList<java.lang.String>
versionContentIds
Deprecated.-
Fields inherited from class lumis.doui.table.TableDeleteDataProcessActionHandler
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 ContentTableDeleteDataProcessActionHandler()
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 delete query.protected void
deleteRelatedData(java.util.Collection<java.lang.String> itemIds, org.w3c.dom.Node currentSourceDefinitionNode, java.lang.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(java.lang.Object pks)
Deprecated.Notifies observers that the render data may have changed.-
Methods inherited from class lumis.doui.table.TableDeleteDataProcessActionHandler
createRenderDataChangedEvent, createTableSource, deleteRelatedFiles, execute, processAction, processActionWithoutResponse, sendPostNotifications, sendPreNotifications, sendRenderDataChangedNotification, setParameter
-
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
getIndexConfig, isSearchEnabled, readSelectedData, shouldSendRenderDataChangedNotification
-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode
-
-
-
-
Method Detail
-
postDelete
protected void postDelete() throws PortalException
Deprecated.Executes all post delete necessary to manage meta data after removing the data from main table.- Overrides:
postDelete
in classTableDeleteDataProcessActionHandler
- Throws:
PortalException
-
indexData
protected void indexData() throws PortalException
Deprecated.- Overrides:
indexData
in classBaseTableDataProcessActionHandler
- Throws:
PortalException
-
deleteRelatedData
protected void deleteRelatedData(java.util.Collection<java.lang.String> itemIds, org.w3c.dom.Node currentSourceDefinitionNode, java.lang.String foreignPrimaryKeyFieldId, ITransaction transaction) throws PortalException
Deprecated.Description copied from class:TableDeleteDataProcessActionHandler
Deletes all data related to the given primary key ids.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.
- Overrides:
deleteRelatedData
in classTableDeleteDataProcessActionHandler
- Throws:
PortalException
-
createQueryBuilder
protected QueryBuilder createQueryBuilder() throws PortalException
Deprecated.CreatesContentQueryBuilder
object for building delete 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 values are replaced with the primary key of all versions associated with the selected contents so they all are removed.- Overrides:
buildQuery
in classTableDeleteDataProcessActionHandler
- Returns:
- Throws:
PortalException
-
sendRenderDataChangedNotification
protected void sendRenderDataChangedNotification(java.lang.Object pks) throws PortalException
Deprecated.Description copied from class:BaseTableDataProcessActionHandler
Notifies observers that the render data may have changed.- Overrides:
sendRenderDataChangedNotification
in classBaseTableDataProcessActionHandler
- Throws:
PortalException
-
preDelete
protected void preDelete(QueryBase queryBase) throws PortalException
Deprecated.Description copied from class:TableDeleteDataProcessActionHandler
Hook placed in that does not perform any action.This method exists for classes that extend this class to be able to perform actions before the deletion occurs.
- Overrides:
preDelete
in classTableDeleteDataProcessActionHandler
- Throws:
PortalException
-
-