Package lumis.doui.table
Class TableDeleteDataProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<TableSource>
-
- lumis.doui.table.BaseTableDataProcessActionHandler
-
- lumis.doui.table.TableDeleteDataProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
- Direct Known Subclasses:
ContentTableDeleteDataProcessActionHandler
,MediaDeleteProcessActionHandler
@Deprecated @StableMinor(version="17.0", sinceVersion="10.3") public class TableDeleteDataProcessActionHandler extends BaseTableDataProcessActionHandler
Deprecated.Since 10.4.0, this class was replaced bySourceDeleteDataProcessActionHandler
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 extendingSourceDeleteDataProcessActionHandler
instead.Handles deletion of data- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryBuilder
queryBuilder
Deprecated.-
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 TableDeleteDataProcessActionHandler()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected QueryBase
buildQuery()
Deprecated.Builds a delete statement.protected IPortalEvent
createRenderDataChangedEvent(java.lang.Object itemId)
Deprecated.Creates a render data changed event.protected TableSource
createTableSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext)
Deprecated.Creates a table source object.protected void
deleteRelatedData(java.util.Collection<java.lang.String> itemIdsTemp, org.w3c.dom.Node currentSourceDefinitionNode, java.lang.String foreignPrimaryKeyFieldId, ITransaction transaction)
Deprecated.Deletes all data related to the given primary key ids.protected void
deleteRelatedFiles(java.util.Collection<java.lang.String> itemIdsTemp, org.w3c.dom.Node currentSourceDefinitionNode, java.lang.String primaryKeyFieldId, ITransaction transaction)
Deprecated.Deletes all the files that are related to the current item.protected void
execute(QueryBase queryBase)
Deprecated.Executes the delete statement.protected void
postDelete()
Deprecated.Hook for inheriting classes to be able to perform actions after deletion.protected void
preDelete(QueryBase queryBase)
Deprecated.Hook placed in that does not perform any action.void
processAction()
Deprecated.Executes the process action.protected void
processActionWithoutResponse()
Deprecated.Sends pre-notifications, executes the process action followed by post-notifications.protected void
sendPostNotifications()
Deprecated.Sends post notifications to registered observers.protected void
sendPreNotifications()
Deprecated.Sends notifications before the delete operation execution.protected void
sendRenderDataChangedNotification()
Deprecated.Identifies all the interfaces that may need to be updated and sends a notification.void
setParameter(java.lang.String name, java.lang.Object value)
Deprecated.Detects if the given parameter is a primary key.-
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
createQueryBuilder, getIndexConfig, indexData, isSearchEnabled, readSelectedData, sendRenderDataChangedNotification, 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
-
-
-
-
Field Detail
-
queryBuilder
protected QueryBuilder queryBuilder
Deprecated.
-
-
Method Detail
-
processAction
public void processAction() throws PortalException
Deprecated.Description copied from interface:IProcessActionHandler
Executes the process action.This method may execute the process action based on the parameters and node specifications passed to it earlier.
- Throws:
PortalException
-
setParameter
public void setParameter(java.lang.String name, java.lang.Object value)
Deprecated.Detects if the given parameter is a primary key. If so, makes sure that the value set is an array.- Specified by:
setParameter
in interfaceIProcessActionHandler
- Overrides:
setParameter
in classProcessActionHandler<TableSource>
-
processActionWithoutResponse
protected void processActionWithoutResponse() throws PortalException
Deprecated.Sends pre-notifications, executes the process action followed by post-notifications.- Throws:
PortalException
- Since:
- 4.0.11
-
buildQuery
protected QueryBase buildQuery() throws PortalException
Deprecated.Builds a delete statement.- Returns:
- Throws:
PortalException
- Since:
- 4.0.11
-
preDelete
protected void preDelete(QueryBase queryBase) throws PortalException
Deprecated.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.
- Parameters:
queryBase
-- Throws:
PortalException
- Since:
- 4.0.11
-
deleteRelatedData
protected void deleteRelatedData(java.util.Collection<java.lang.String> itemIdsTemp, org.w3c.dom.Node currentSourceDefinitionNode, java.lang.String foreignPrimaryKeyFieldId, ITransaction transaction) throws PortalException
Deprecated.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.
- Parameters:
itemIdsTemp
-currentSourceDefinitionNode
-foreignPrimaryKeyFieldId
-transaction
-- Throws:
PortalException
- Since:
- 4.0.11
-
deleteRelatedFiles
protected void deleteRelatedFiles(java.util.Collection<java.lang.String> itemIdsTemp, org.w3c.dom.Node currentSourceDefinitionNode, java.lang.String primaryKeyFieldId, ITransaction transaction) throws PortalException
Deprecated.Deletes all the files that are related to the current item.Detects if the douidefinition has any file data types. If so, this method retrieves the file id and calls the FileManager to delete the appropriate file.
- Parameters:
itemIdsTemp
-currentSourceDefinitionNode
-primaryKeyFieldId
-transaction
-- Throws:
PortalException
- Since:
- 4.0.11
-
createTableSource
protected TableSource createTableSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
Deprecated.Creates a table source object.- Parameters:
sourceDefinitionNode
-sourceContext
-- Returns:
- Throws:
PortalException
- Since:
- 4.0.11
-
sendPreNotifications
protected void sendPreNotifications() throws PortalException
Deprecated.Sends notifications before the delete operation execution.- Throws:
PortalException
- Since:
- 4.0.11
-
execute
protected void execute(QueryBase queryBase) throws PortalException
Deprecated.Executes the delete statement.- Parameters:
queryBase
-- Throws:
PortalException
- Since:
- 4.0.11
-
postDelete
protected void postDelete() throws PortalException
Deprecated.Hook for inheriting classes to be able to perform actions after deletion.- Throws:
PortalException
- Since:
- 4.0.11
-
sendPostNotifications
protected void sendPostNotifications() throws PortalException
Deprecated.Sends post notifications to registered observers.- Throws:
PortalException
- Since:
- 4.0.11
-
createRenderDataChangedEvent
protected IPortalEvent createRenderDataChangedEvent(java.lang.Object itemId) throws PortalException
Deprecated.Description copied from class:BaseTableDataProcessActionHandler
Creates a render data changed event. Called byBaseTableDataProcessActionHandler.sendRenderDataChangedNotification(Object)
.- Overrides:
createRenderDataChangedEvent
in classBaseTableDataProcessActionHandler
- Parameters:
itemId
- the itemId parameter value for the event.- Returns:
- the event.
- Throws:
PortalException
-
sendRenderDataChangedNotification
protected void sendRenderDataChangedNotification() throws PortalException
Deprecated.Identifies all the interfaces that may need to be updated and sends a notification.- Throws:
PortalException
- Since:
- 4.0.11
-
-