Package de.xima.fc.utils
Class ProjektUtils
- java.lang.Object
-
- de.xima.fc.utils.ProjektUtils
-
public final class ProjektUtils extends Object
Hilfsklasse für Aufgaben, die Projekte betreffen.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanisOffline(Projekt projekt)Deprecated.static booleanisOffline(Projekt projekt, WorkflowVersion activeWorkflowVersion)Checks whether the form is currently offline and cannot be provided to users.
-
-
-
Method Detail
-
isOffline
@Deprecated public static boolean isOffline(Projekt projekt)
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
public static boolean isOffline(Projekt projekt, WorkflowVersion activeWorkflowVersion)
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
-
-