Class DaoActionHookHelper

java.lang.Object
de.xima.fc.dao.hook.DaoActionHookHelper

public class DaoActionHookHelper extends Object
  • Field Details

    • LOG

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

    • DaoActionHookHelper

      public DaoActionHookHelper()
  • Method Details

    • getActionsReferencingClientResource

      @Deprecated public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getActionsReferencingClientResource(IEntityContext ec, MandantRessource entity)
      Parameters:
      ec - Current entity context.
      entity - Client resource to check.
      Returns:
      Actions that reference the resource.
    • getActionsReferencingDbConnection

      @Deprecated public static List<Aktion> getActionsReferencingDbConnection(IEntityContext ec, DatenbankZugriff dbConnection)
      Parameters:
      ec - Current entity context.
      dbConnection - Connection to check.
      Returns:
      Actions that reference the resource.
    • getActionsReferencingInbox

      @Deprecated public static Collection<Aktion> getActionsReferencingInbox(IEntityContext ec, Postfach inbox)
      Parameters:
      ec - Current entity context.
      inbox - Inbox to check.
      Returns:
      Actions that reference the resource.
    • getActionsReferencingProjectResource

      @Deprecated public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getActionsReferencingProjectResource(IEntityContext ec, ProjektRessource entity)
      Parameters:
      ec - Current entity context.
      entity - Project resource to check.
      Returns:
      Actions that reference the resource.
    • getActionsReferencingTextTemplate

      @Deprecated public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getActionsReferencingTextTemplate(IEntityContext ec, Textbaustein template)
      Parameters:
      ec - Current entity context.
      template - Text template to check.
      Returns:
      Actions that reference the resource.
    • getBedingungen

      @Deprecated public static List<Bedingung> getBedingungen(IEntityContext ec, Mandant man)
      Deprecated.
    • getProjectDoi

      public static List<ProjectDOIData> getProjectDoi(IEntityContext ec, Mandant man)
    • getProjectIdCheck

      public static List<ProjectIdentityCheckData> getProjectIdCheck(IEntityContext ec, Mandant client)
    • getProjectPortalData

      public static List<ProjectPortalData> getProjectPortalData(IEntityContext ec, Mandant client)
    • 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.
    • syncAccessProjekte

      public static BenutzerGruppe syncAccessProjekte(IEntityContext ec, BenutzerGruppe gruppe)
    • syncBedingung

      @Deprecated public static void syncBedingung(IEntityContext ec, Bedingung bedingung)
      Deprecated.
    • syncBenutzer

      @Deprecated public static BenutzerGruppe syncBenutzer(IEntityContext ec, BenutzerGruppe gruppe)
      Deprecated.
    • syncEditorProjekte

      public static BenutzerGruppe syncEditorProjekte(IEntityContext ec, BenutzerGruppe gruppe)
    • syncLdapGroups

      @Deprecated public static BenutzerGruppe syncLdapGroups(IEntityContext ec, BenutzerGruppe userGroup)
      Deprecated.
    • syncPostfaecher

      public static BenutzerGruppe syncPostfaecher(IEntityContext ec, BenutzerGruppe gruppe)
    • syncAuthorizations

      public static BenutzerGruppe syncAuthorizations(IEntityContext ec, BenutzerGruppe gruppe)
    • validateBedingung

      @Deprecated public static void validateBedingung(de.xima.cmn.dao.interfaces.IBaseEntityContext ec, Bedingung bedingung) throws ValidationException
      Deprecated.
      Throws:
      ValidationException
    • syncBerechtigungen

      @Deprecated public static void syncBerechtigungen(IEntityContext ec, Rolle rolle)
      Deprecated.
      The entity Modul no longer exists. Use EModule and Rolle.getModuleNames() instead.
    • syncRollen

      @Deprecated public static Modul syncRollen(IEntityContext ec, Modul modul)
      Deprecated.
      The entity Modul does not exist any more. Use EModule and Rolle.getModuleNames() instead.
    • removeModulDependency

      @Deprecated public static void removeModulDependency(IEntityContext ec, Rolle rolle)
      Deprecated.
      The entity Modul no longer exists. Use EModule and Rolle.getModuleNames() instead.