Class TableDeleteDataProcessActionHandler

    • Field Detail

      • queryBuilder

        protected QueryBuilder queryBuilder
        Deprecated.
    • Constructor Detail

      • TableDeleteDataProcessActionHandler

        public TableDeleteDataProcessActionHandler()
        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
      • processActionWithoutResponse

        protected void processActionWithoutResponse()
                                             throws PortalException
        Deprecated.
        Sends pre-notifications, executes the process action followed by post-notifications.
        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
      • 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
      • 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