Package de.xima.fc.dao.hook
Class DaoActionHookHelper
- java.lang.Object
-
- de.xima.fc.dao.hook.DaoActionHookHelper
-
public class DaoActionHookHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DaoActionHookHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<de.xima.cmn.dao.interfaces.IEntity<Long>>
getActionsReferencingClientResource(IEntityContext ec, MandantRessource entity)
static List<Aktion>
getActionsReferencingDbConnection(IEntityContext ec, DatenbankZugriff dbConnection)
static Collection<Aktion>
getActionsReferencingInbox(IEntityContext ec, Postfach inbox)
static List<de.xima.cmn.dao.interfaces.IEntity<Long>>
getActionsReferencingProjectResource(IEntityContext ec, ProjektRessource entity)
static List<de.xima.cmn.dao.interfaces.IEntity<Long>>
getActionsReferencingTextTemplate(IEntityContext ec, Textbaustein template)
static List<Bedingung>
getBedingungen(IEntityContext ec, Mandant man)
static List<ProjectDOIData>
getProjectDoi(IEntityContext ec, Mandant man)
static List<ProjectIdentityCheckData>
getProjectIdCheck(IEntityContext ec, Mandant client)
static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>>
getReferencingWorkflowElementsInClient(IEntityContext ec, Mandant client, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Finds all workflow elements (nodes / triggers) that have a reference to the given entity.static List<de.xima.cmn.dao.interfaces.IEntity<Long>>
getReferencingWorkflowElementsInProject(IEntityContext ec, Projekt project, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Finds all workflow elements (nodes / triggers) that have a reference to the given entity.static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>>
getReferencingWorkflowElementsInVersion(IEntityContext ec, WorkflowVersion version, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Finds all workflow elements (nodes / triggers) that have a reference to the given entity.static List<de.xima.cmn.dao.interfaces.IEntity<Long>>
getStatusChangeActions(IEntityContext ec, Status targetState)
Liefert eine Liste aller 'Statusänderungs'-Aktionen zurück, die auf den übergebenen Status verweisen.static boolean
isStatusWiedervorlage(Status s)
static void
removeModulDependency(IEntityContext ec, Rolle rolle)
Deprecated.The entity Modul no longer exists.static BenutzerGruppe
syncAccessProjekte(IEntityContext ec, BenutzerGruppe gruppe)
static BenutzerGruppe
syncAuthorizations(IEntityContext ec, BenutzerGruppe gruppe)
static void
syncBedingung(IEntityContext ec, Bedingung bedingung)
static BenutzerGruppe
syncBenutzer(IEntityContext ec, BenutzerGruppe gruppe)
static void
syncBerechtigungen(IEntityContext ec, Rolle rolle)
Deprecated.The entity Modul no longer exists.static BenutzerGruppe
syncEditorProjekte(IEntityContext ec, BenutzerGruppe gruppe)
static BenutzerGruppe
syncLdapGroups(IEntityContext ec, BenutzerGruppe userGroup)
static BenutzerGruppe
syncPostfaecher(IEntityContext ec, BenutzerGruppe gruppe)
static Modul
syncRollen(IEntityContext ec, Modul modul)
Deprecated.The entity Modul does not exist any more.static void
validateBedingung(de.xima.cmn.dao.interfaces.IBaseEntityContext ec, Bedingung bedingung)
Deprecated.
-
-
-
Method Detail
-
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
public static List<Bedingung> getBedingungen(IEntityContext ec, Mandant man)
-
getProjectDoi
public static List<ProjectDOIData> getProjectDoi(IEntityContext ec, Mandant man)
-
getProjectIdCheck
public static List<ProjectIdentityCheckData> getProjectIdCheck(IEntityContext ec, Mandant client)
-
getReferencingWorkflowElementsInClient
public static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInClient(IEntityContext ec, Mandant client, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Finds all workflow elements (nodes / triggers) that have a reference to the given entity. 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.entity
- Entity for which to scan for references.- Returns:
- All workflow elements (nodes / triggers) that have a reference to the given entity
-
getReferencingWorkflowElementsInProject
public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInProject(IEntityContext ec, Projekt project, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Finds all workflow elements (nodes / triggers) that have a reference to the given entity. 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.entity
- Entity for which to scan for references.- Returns:
- All workflow elements (nodes / triggers) that have a reference to the given entity
-
getReferencingWorkflowElementsInVersion
public static List<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> getReferencingWorkflowElementsInVersion(IEntityContext ec, WorkflowVersion version, de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Finds all workflow elements (nodes / triggers) that have a reference to the given entity. 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.entity
- Entity for which to scan for references.- Returns:
- All workflow elements (nodes / triggers) that have a reference to the given entity
-
getStatusChangeActions
public static List<de.xima.cmn.dao.interfaces.IEntity<Long>> getStatusChangeActions(IEntityContext ec, Status targetState)
Liefert eine Liste aller 'Statusänderungs'-Aktionen zurück, die auf den übergebenen Status verweisen.
-
isStatusWiedervorlage
public static boolean isStatusWiedervorlage(Status s)
-
syncAccessProjekte
public static BenutzerGruppe syncAccessProjekte(IEntityContext ec, BenutzerGruppe gruppe)
-
syncBedingung
public static void syncBedingung(IEntityContext ec, Bedingung bedingung)
-
syncBenutzer
public static BenutzerGruppe syncBenutzer(IEntityContext ec, BenutzerGruppe gruppe)
-
syncEditorProjekte
public static BenutzerGruppe syncEditorProjekte(IEntityContext ec, BenutzerGruppe gruppe)
-
syncLdapGroups
public static BenutzerGruppe syncLdapGroups(IEntityContext ec, BenutzerGruppe userGroup)
-
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. UseEModule
andRolle.getModuleNames()
instead.
-
syncRollen
@Deprecated public static Modul syncRollen(IEntityContext ec, Modul modul)
Deprecated.The entity Modul does not exist any more. UseEModule
andRolle.getModuleNames()
instead.
-
removeModulDependency
@Deprecated public static void removeModulDependency(IEntityContext ec, Rolle rolle)
Deprecated.The entity Modul no longer exists. UseEModule
andRolle.getModuleNames()
instead.
-
-