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 boolean
Deprecated.static boolean
isOffline
(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 version
isnot valid
- Parameters:
projekt
- Form to check.- Returns:
true
when the form is offline and must not be provided to users,false
otherwise.
- 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 version
isnot valid
- Parameters:
projekt
- Form to check.activeWorkflowVersion
- TheProjekt.getActiveWorkflowVersion()
.- Returns:
true
when the form is offline and must not be provided to users,false
otherwise.
- the form is
-
isOffline(Projekt, WorkflowVersion)
.