Package de.xima.fc.dao.hook
Class DaoActionHookHelper
java.lang.Object
de.xima.fc.dao.hook.DaoActionHookHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getActionsReferencingDbConnection
(IEntityContext ec, DatenbankZugriff dbConnection) static Collection<Aktion>
getActionsReferencingInbox
(IEntityContext ec, Postfach inbox) getActionsReferencingTextTemplate
(IEntityContext ec, Textbaustein template) getBedingungen
(IEntityContext ec, Mandant man) Deprecated.static List<ProjectDOIData>
getProjectDoi
(IEntityContext ec, Mandant man) static List<ProjectIdentityCheckData>
getProjectIdCheck
(IEntityContext ec, Mandant client) 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.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.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.getStatusChangeActions
(IEntityContext ec, Status targetState) Deprecated.static boolean
Deprecated.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) Deprecated.static BenutzerGruppe
syncBenutzer
(IEntityContext ec, BenutzerGruppe gruppe) Deprecated.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) Deprecated.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.
-
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. -
getProjectDoi
-
getProjectIdCheck
-
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
@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. -
isStatusWiedervorlage
Deprecated. -
syncAccessProjekte
-
syncBedingung
Deprecated. -
syncBenutzer
Deprecated. -
syncEditorProjekte
-
syncLdapGroups
@Deprecated public static BenutzerGruppe syncLdapGroups(IEntityContext ec, BenutzerGruppe userGroup) Deprecated. -
syncPostfaecher
-
syncAuthorizations
-
validateBedingung
@Deprecated public static void validateBedingung(de.xima.cmn.dao.interfaces.IBaseEntityContext ec, Bedingung bedingung) throws ValidationException Deprecated.- Throws:
ValidationException
-
syncBerechtigungen
Deprecated.The entity Modul no longer exists. UseEModule
andRolle.getModuleNames()
instead. -
syncRollen
Deprecated.The entity Modul does not exist any more. UseEModule
andRolle.getModuleNames()
instead. -
removeModulDependency
Deprecated.The entity Modul no longer exists. UseEModule
andRolle.getModuleNames()
instead.
-
getReferencingWorkflowElementsInClient(IEntityContext, Mandant, IEntity)