Class BOProfile
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.core.bl.timesheet.configuration.profile.BOProfile
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
Business object representing a timesheet profile
. It defines a set of timesheet configuration parameters that can be associated to a specific user.
. It defines a set of timesheet configuration parameters that can be associated to a specific user.
- Since:
- 9.2
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks if the profile is active.getCode()Returns the profile code.Returns the threshold (mins) beyond which the task is considered as overtime at the end of the day (late end of the day).Returns the profile description.Checks whether the inconsistent duration blocking closure option is active or not.Returns the threshold (mins) beyond which the task is considered as overtime at the beginning of the day (early start of the day).getForcedClosureDate(Date referenceDate) Returns the forced closure threshold.Returns the forced closure threshold type.Checks whether the gap blocking closure option is active or not.Returns the threshold of not accounted minutes (gaps) that can be accepted.Returns the amount of previous timesheets accessible by mobile.getId()Returns the profile id.Checks if the profile's "inconsistent duration" warning is active, in order to point out tasks whose duration does not match with start/end dates.Checks if the profile is the default one.Returns the max number of minutes in advance allowed for the end of the shift.Returns the max number of delay minutes allowed for the start of the shift.Checks if the profile's "out-of-shift-overtime" warning is active.Checks whether the overlap blocking closure option is active or not.Checks if the profile's "overlap" warning is active.Checks whether the overtime blocking closure option is active or not.Returns the number of past timesheets (with respect to the current one) to send to the mobile.Checks whether the shift blocking closure option is active or not.Checks if the profile's "shift-gaps" warning is active.Checks if the profile's "shift-not-respected" warning is active.getType()Returns the timesheet type id.Checks whether the validation is active or not.booleanvoidSets the profile to active.voidSets the profile code.voidsetDelayEndOvertimeThreshold(Long delayEndOvertimeThreshold) Sets the threshold (mins) beyond which the task is considered as overtime at the end of the day (late end of the day).voidsetDescription(LocalizedString description) Sets the profile description.voidsetDurationBlockingClosure(Boolean durationBlockingClosure) Sets the inconsistent duration blocking closure option to active.voidsetEarlyStartOvertimeThreshold(Long earlyStartOvertimeThreshold) Sets the threshold (mins) beyond which the task is considered as overtime at the beginning of the day (early start of the day).voidsetForcedClosureThreshold(Long forcedClosureThreshold) Sets the forced closure threshold.voidsetForcedClosureThresholdType(Long forcedClosureThresholdType) Sets the forced closure threshold type.voidsetGapsBlockingClosure(Boolean gapsBlockingClosure) Sets the gap blocking closure option to active.voidsetGapThreshold(Long gapThreshold) Sets the threshold of not accounted minutes (gaps) that can be accepted.voidsetHistory(Long history) Sets the amount of previous timesheets accessible by mobile.voidSets the profile id.voidsetInconsistentDurationWarning(Boolean inconsistentDurationWarning) Sets the profile's "inconsistent duration" warning is active, in order to point out tasks whose duration does not match with start/end dates.voidsetIsDefault(Boolean isDefault) Sets the profile to be the default one.voidsetMaxEarlyEnd(Long maxEarlyEnd) Sets the max number of minutes in advance allowed for the end of the shift.voidsetMaxLateStart(Long maxLateStart) Sets the max number of delay minutes allowed for the start of the shift.voidsetOutOfShiftOvertimeWarning(Boolean outOfShiftOvertimeWarning) Sets the profile's "out-of-shift-overtime" warning to active.voidsetOverlapBlockingClosure(Boolean overlapBlockingClosure) Sets the overlap blocking closure option to active.voidsetOverlapWarning(Boolean overlapWarning) Sets the profile's "overlap" warning is active.voidsetOvertimeBlockingClosure(Boolean overtimeBlockingClosure) Sets the overtime blocking closure option to active.voidsetPastTimesheetsNumber(Long pastTimesheetsNumber) Sets the number of past timesheets (with respect to the current one) to send to the mobile.voidsetShiftBlockingClosure(Boolean shiftBlockingClosure) Sets the shift blocking closure option to active.voidsetShiftGapsWarning(Boolean shiftGapsWarning) Sets the profile's "shift-gaps" warning to active.voidsetShiftNotRespectedWarning(Boolean shiftNotRespectedWarning) Sets the profile's "shift-not-respected" warning to active.voidSets the timesheet type id.voidsetValidation(Boolean validation) Enables or disables the validation.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
BOProfile
public BOProfile()
-
-
Method Details
-
getId
Returns the profile id.- Returns:
- the the profile id
-
setId
Sets the profile id.- Parameters:
id- the profile id
-
getCode
Returns the profile code.- Returns:
- the code
-
setCode
Sets the profile code.- Parameters:
code- the code
-
getDescription
Returns the profile description.- Returns:
- the description
-
setDescription
Sets the profile description.- Parameters:
description- the description
-
getActive
Checks if the profile is active.- Returns:
- true if the profile is active, false otherwise
-
setActive
Sets the profile to active.- Parameters:
active- true if the profile must be active, false otherwise
-
getIsDefault
Checks if the profile is the default one. There must be only one default profile.- Returns:
- true if the profile is the default one, false otherwise
-
setIsDefault
Sets the profile to be the default one. There must be only one default profile.- Parameters:
isDefault- the checks if default
-
getType
Returns the timesheet type id.- Returns:
- the type id
- See Also:
-
setType
Sets the timesheet type id.- Parameters:
type- the type id- See Also:
-
getHistory
Returns the amount of previous timesheets accessible by mobile.- Returns:
- the amount of previous accessible timesheets
-
setHistory
Sets the amount of previous timesheets accessible by mobile.- Parameters:
history- the amount of previous accessible timesheets
-
getShiftNotRespectedWarning
Checks if the profile's "shift-not-respected" warning is active.- Returns:
- true if the warning is active, false otherwise
-
setShiftNotRespectedWarning
Sets the profile's "shift-not-respected" warning to active.- Parameters:
shiftNotRespectedWarning- true if the profile's warning must be active, false otherwise
-
getMaxLateStart
Returns the max number of delay minutes allowed for the start of the shift.- Returns:
- the max delay minutes
-
setMaxLateStart
Sets the max number of delay minutes allowed for the start of the shift.- Parameters:
maxLateStart- the max delay minutes
-
getMaxEarlyEnd
Returns the max number of minutes in advance allowed for the end of the shift.- Returns:
- the max minutes in advance
-
setMaxEarlyEnd
Sets the max number of minutes in advance allowed for the end of the shift.- Parameters:
maxEarlyEnd- the max minutes in advance
-
getShiftBlockingClosure
Checks whether the shift blocking closure option is active or not. When the option is active and a "shift-not-respected" warning exists, the timesheet cannot be closed.- Returns:
- true if the shift blocking closure option is active, false otherwise
-
setShiftBlockingClosure
Sets the shift blocking closure option to active. When the option is active and a "shift-not-respected" warning exists, the timesheet cannot be closed.- Parameters:
shiftBlockingClosure- true if the shift blocking closure option must be active, false otherwise
-
getOutOfShiftOvertimeWarning
Checks if the profile's "out-of-shift-overtime" warning is active.- Returns:
- true if the warning is active, false otherwise
-
setOutOfShiftOvertimeWarning
Sets the profile's "out-of-shift-overtime" warning to active.- Parameters:
outOfShiftOvertimeWarning- the out of shift overtime warning
-
getEarlyStartOvertimeThreshold
Returns the threshold (mins) beyond which the task is considered as overtime at the beginning of the day (early start of the day).- Returns:
- the max minutes of permitted early start
-
setEarlyStartOvertimeThreshold
Sets the threshold (mins) beyond which the task is considered as overtime at the beginning of the day (early start of the day).- Parameters:
earlyStartOvertimeThreshold- the max minutes of permitted early start
-
getDelayEndOvertimeThreshold
Returns the threshold (mins) beyond which the task is considered as overtime at the end of the day (late end of the day).- Returns:
- the max minutes of permitted late end
-
setDelayEndOvertimeThreshold
Sets the threshold (mins) beyond which the task is considered as overtime at the end of the day (late end of the day).- Parameters:
delayEndOvertimeThreshold- the max minutes of permitted late end
-
getOvertimeBlockingClosure
Checks whether the overtime blocking closure option is active or not. When the option is active and a "out-of-shift-overtime" warning exists, the timesheet cannot be closed.- Returns:
- true if the overtime blocking closure option is active, false otherwise
-
setOvertimeBlockingClosure
Sets the overtime blocking closure option to active. When the option is active and a "out-of-shift-overtime" warning exists, the timesheet cannot be closed.- Parameters:
overtimeBlockingClosure- true if the overtime blocking closure option must be active, false otherwise
-
getShiftGapsWarning
Checks if the profile's "shift-gaps" warning is active.- Returns:
- true if the warning is active, false otherwise
-
setShiftGapsWarning
Sets the profile's "shift-gaps" warning to active.- Parameters:
shiftGapsWarning- the shift gaps warning
-
getGapThreshold
Returns the threshold of not accounted minutes (gaps) that can be accepted.- Returns:
- the threshold of the not accounted minutes that can be accepted
-
setGapThreshold
Sets the threshold of not accounted minutes (gaps) that can be accepted.- Parameters:
gapThreshold- the threshold of the not accounted minutes that can be accepted
-
getGapsBlockingClosure
Checks whether the gap blocking closure option is active or not. When the option is active and a "shift-gaps" warning exists, the timesheet cannot be closed.- Returns:
- true if the gap blocking closure option is active, false otherwise
-
setGapsBlockingClosure
Sets the gap blocking closure option to active. When the option is active and a "shift-gaps" warning exists, the timesheet cannot be closed.- Parameters:
gapsBlockingClosure- true if the gap blocking closure option must be active, false otherwise
-
getOverlapWarning
Checks if the profile's "overlap" warning is active.- Returns:
- true if the warning is active, false otherwise
-
setOverlapWarning
Sets the profile's "overlap" warning is active.- Parameters:
overlapWarning- true if the "overlap" warning is active, false otherwise
-
getOverlapBlockingClosure
Checks whether the overlap blocking closure option is active or not. When the option is active and a "overlap" warning exists, the timesheet cannot be closed.- Returns:
- the overlap blocking closure
-
setOverlapBlockingClosure
Sets the overlap blocking closure option to active. When the option is active and a "overlap" warning exists, the timesheet cannot be closed.- Parameters:
overlapBlockingClosure- true if the overlap blocking closure option must be active, false otherwise
-
getInconsistentDurationWarning
Checks if the profile's "inconsistent duration" warning is active, in order to point out tasks whose duration does not match with start/end dates.- Returns:
- true if the warning is active, false otherwise
-
setInconsistentDurationWarning
Sets the profile's "inconsistent duration" warning is active, in order to point out tasks whose duration does not match with start/end dates.- Parameters:
inconsistentDurationWarning- true if the "inconsistent duration" warning is active, false otherwise
-
getDurationBlockingClosure
Checks whether the inconsistent duration blocking closure option is active or not. When the option is active and a "inconsistent duration" warning exists, the timesheet cannot be closed.- Returns:
- the overlap blocking closure
-
setDurationBlockingClosure
Sets the inconsistent duration blocking closure option to active. When the option is active and a "inconsistent duration" warning exists, the timesheet cannot be closed.- Parameters:
durationBlockingClosure- true if the overlap blocking closure option must be active, false otherwise
-
getPastTimesheetsNumber
Returns the number of past timesheets (with respect to the current one) to send to the mobile.- Returns:
- the past timesheets number
-
setPastTimesheetsNumber
Sets the number of past timesheets (with respect to the current one) to send to the mobile.- Parameters:
pastTimesheetsNumber- the past timesheets number
-
getValidation
Checks whether the validation is active or not.- Returns:
- true if the validation is active, false otherwise
-
setValidation
Enables or disables the validation.- Parameters:
validation- true if the validation must be active, false otherwise
-
getForcedClosureThreshold
Returns the forced closure threshold.- Returns:
- the forced closure threshold
-
setForcedClosureThreshold
Sets the forced closure threshold.- Parameters:
forcedClosureThreshold- the forced closure threshold
-
getForcedClosureThresholdType
Returns the forced closure threshold type.- Returns:
- the forced closure threshold type
-
setForcedClosureThresholdType
Sets the forced closure threshold type.- Parameters:
forcedClosureThresholdType- the forced closure threshold type
-
isForcedClosureDefined
public boolean isForcedClosureDefined() -
getForcedClosureDate
-
getForcedClosureDate
-