Package lumis.service.comment
Class DeleteRelationCommentProcessActionHandler
- java.lang.Object
-
- lumis.doui.processaction.ProcessActionHandler<S>
-
- lumis.doui.source.processaction.BaseSourceProcessActionHandler<S>
-
- lumis.doui.source.processaction.SourceDeleteDataProcessActionHandler<ContentTableSource>
-
- lumis.content.table.ContentTableSourceDeleteDataProcessActionHandler
-
- lumis.service.comment.DeleteRelationCommentProcessActionHandler
-
- All Implemented Interfaces:
IProcessActionHandler
,IParameters
public class DeleteRelationCommentProcessActionHandler extends ContentTableSourceDeleteDataProcessActionHandler
Custom delete process action handler for comment that also updates the total stored in thelum_CommentTotal
table.- Since:
- 4.0.10
- Version:
- $Revision: 21230 $ $Date: 2018-04-24 19:07:57 -0300 (Tue, 24 Apr 2018) $
-
-
Field Summary
-
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 DeleteRelationCommentProcessActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAction()
Deletes the items with identifiers returned bySourceDeleteDataProcessActionHandler.getItemIdsToDelete()
.protected void
postDelete()
After deleting the information from database it callsSetCommentTotalInfoProcessActionHandler.updateCommentTotal(String, String, lumis.util.ITransaction)
using thetargetContentLocaleIds
obtained in#preDelete(QueryBase)
.protected void
preDelete()
Before deleting the information from database, obtain the affected targetContentLocaleIds, storing them intargetContentLocaleIds
, so it is possible to do an update inlum_CommentTotal
later.-
Methods inherited from class lumis.doui.source.processaction.SourceDeleteDataProcessActionHandler
getItemIdsToDelete
-
Methods inherited from class lumis.doui.source.processaction.BaseSourceProcessActionHandler
isSendRenderDataChangedNotificationEnabled, processAction
-
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, containsParameter, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter
-
-
-
-
Method Detail
-
doAction
protected void doAction() throws PortalException
Description copied from class:SourceDeleteDataProcessActionHandler
Deletes the items with identifiers returned bySourceDeleteDataProcessActionHandler.getItemIdsToDelete()
.- Overrides:
doAction
in classSourceDeleteDataProcessActionHandler<ContentTableSource>
- Throws:
PortalException
-
preDelete
protected void preDelete() throws PortalException
Before deleting the information from database, obtain the affected targetContentLocaleIds, storing them intargetContentLocaleIds
, so it is possible to do an update inlum_CommentTotal
later.- Throws:
PortalException
- Since:
- 10.4.0
-
postDelete
protected void postDelete() throws PortalException
After deleting the information from database it callsSetCommentTotalInfoProcessActionHandler.updateCommentTotal(String, String, lumis.util.ITransaction)
using thetargetContentLocaleIds
obtained in#preDelete(QueryBase)
.- Throws:
PortalException
- Since:
- 4.0.10
-
-