Package overit.geocallapp.wfm.scheduling
Class SchedulingPermissionsUtils
java.lang.Object
overit.geocallapp.utilities.config.Properties
overit.geocallapp.wfm.scheduling.SchedulingPermissionsUtils
Utility class for checking Scheduling module permissions.
- Since:
- 22.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the current user has permission to edit VRP optimization configuration.static booleanChecks if the current user has permission to edit immediate scheduling optimization.static booleanChecks if the current user has permission to view immediate scheduling optimization.static booleanChecks if the Immediate Scheduling module is enabled.Methods inherited from class overit.geocallapp.utilities.config.Properties
getBooleanProperty, getBooleanProperty, getBooleanSystemProperty, getBooleanSystemProperty, getDoubleProperty, getDoubleProperty, getIntegerProperty, getIntegerProperty, getIntegerSystemProperty, getIntegerSystemProperty, getLongProperty, getLongProperty, getStringListProperty, getStringListProperty, getStringProperty, getStringProperty, getStringSystemProperty, getStringSystemProperty
-
Method Details
-
isImmediateSchedulingModuleEnabled
public static boolean isImmediateSchedulingModuleEnabled()Checks if the Immediate Scheduling module is enabled.- Returns:
- true if the module is enabled (property enabled)
-
hasOptimizationConfigurationVrpEditPermission
public static boolean hasOptimizationConfigurationVrpEditPermission()Checks if the current user has permission to edit VRP optimization configuration.- Returns:
- true if the user has the permission or is a system user
-
hasOptimizationImmediateSchedulingViewPermission
public static boolean hasOptimizationImmediateSchedulingViewPermission()Checks if the current user has permission to view immediate scheduling optimization.- Returns:
- true if the user has the permission or is a system user, and the module is enabled
-
hasOptimizationImmediateSchedulingEditPermission
public static boolean hasOptimizationImmediateSchedulingEditPermission()Checks if the current user has permission to edit immediate scheduling optimization.- Returns:
- true if the user has the permission or is a system user, and the module is enabled
-