Class DaoActionHookHelper


  • public class DaoActionHookHelper
    extends Object
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Constructor Detail

      • DaoActionHookHelper

        public DaoActionHookHelper()
    • Method Detail

      • getReferencingWorkflowElementsInClient

        public static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInClient​(IEntityContext ec,
                                                                                                                      Mandant client,
                                                                                                                      Object object)
        Finds all workflow elements (nodes / triggers) that have a reference to the given object. Only workflow element in the given client scope are considered.

        When elements are found, this method also adds the corresponding workflow version and project before the nodes (to make it easier for users to identify where the nodes and triggers are).

        Parameters:
        ec - Entity context for accessing the database.
        client - Client to which to limit the search.
        object - Object for which to scan for references.
        Returns:
        All workflow elements (nodes / triggers) that have a reference to the given object
      • getReferencingWorkflowElementsInClient

        public static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInClient​(IEntityContext ec,
                                                                                                                      UUID client,
                                                                                                                      Object object)
        Finds all workflow elements (nodes / triggers) that have a reference to the given object. Only workflow element in the given client scope are considered.

        When elements are found, this method also adds the corresponding workflow version and project before the nodes (to make it easier for users to identify where the nodes and triggers are).

        Parameters:
        ec - Entity context for accessing the database.
        client - UUID of the client to which to limit the search.
        object - Object for which to scan for references.
        Returns:
        All workflow elements (nodes / triggers) that have a reference to the given object
      • getReferencingWorkflowElementsInProject

        public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInProject​(IEntityContext ec,
                                                                                                             Projekt project,
                                                                                                             Object object)
        Finds all workflow elements (nodes / triggers) that have a reference to the given object. Only workflow element in the given project scope are considered.

        When elements are found, this method also adds the corresponding workflow version before the nodes (to make it easier for users to identify where the nodes and triggers are).

        Parameters:
        ec - Entity context for accessing the database.
        project - Project to which to limit the search.
        object - Object for which to scan for references.
        Returns:
        All workflow elements (nodes / triggers) that have a reference to the given object
      • getReferencingWorkflowElementsInSystem

        public static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInSystem​(IEntityContext ec,
                                                                                                                      Object object)
        Finds all workflow elements (nodes / triggers) that have a reference to the given object. All workflow elements are considered.

        When elements are found, this method also adds the corresponding workflow version and project before the nodes (to make it easier for users to identify where the nodes and triggers are).

        Parameters:
        ec - Entity context for accessing the database.
        object - Object for which to scan for references.
        Returns:
        All workflow elements (nodes / triggers) that have a reference to the given object
      • getReferencingWorkflowElementsInVersion

        public static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInVersion​(IEntityContext ec,
                                                                                                                       WorkflowVersion version,
                                                                                                                       Object object)
        Finds all workflow elements (nodes / triggers) that have a reference to the given object. Only workflow element in the given version are considered.
        Parameters:
        ec - Entity context for accessing the database.
        version - Workflow version to which to limit the search.
        object - Object for which to scan for references.
        Returns:
        All workflow elements (nodes / triggers) that have a reference to the given object
      • getStatusChangeActions

        @Deprecated
        public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getStatusChangeActions​(IEntityContext ec,
                                                                                            Status targetState)
        Deprecated.
        Liefert eine Liste aller 'Statusänderungs'-Aktionen zurück, die auf den übergebenen Status verweisen.
        Parameters:
        ec - the entity context to perform the query with
        targetState - the status from which the actions should be retrieved
        Returns:
        an List of Status-change actions
      • isStatusWiedervorlage

        @Deprecated
        public static boolean isStatusWiedervorlage​(Status s)
        Deprecated.