Package de.xima.fc.utils
Class ProjektUtils
java.lang.Object
de.xima.fc.utils.ProjektUtils
Hilfsklasse für Aufgaben, die Projekte betreffen.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated.static booleanisOffline(Projekt projekt, WorkflowVersion activeWorkflowVersion) Checks whether the form is currently offline and cannot be provided to users.
-
Method Details
-
isOffline
Deprecated.UseisOffline(Projekt, WorkflowVersion). This method attempts to get the active workflow version viaProjekt.getActiveWorkflowVersion(), which may fail when it is loaded lazily and no session is active anymore.Checks whether the form is currently offline and cannot be provided to users. A form is offline if at least one of the following holds true:- the form is
not active, - the current date lies outside the configured
availability range, - the
active workflow versionisnot valid
- Parameters:
projekt- Form to check.- Returns:
truewhen the form is offline and must not be provided to users,falseotherwise.
- the form is
-
isOffline
Checks whether the form is currently offline and cannot be provided to users. A form is offline if at least one of the following holds true:- the form is
not active, - the current date lies outside the configured
availability range, - the
active workflow versionisnot valid
- Parameters:
projekt- Form to check.activeWorkflowVersion- TheProjekt.getActiveWorkflowVersion().- Returns:
truewhen the form is offline and must not be provided to users,falseotherwise.
- the form is
-
isOffline(Projekt, WorkflowVersion).