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

public class BOProfile extends DynO
Business object representing a timesheet profile
. It defines a set of timesheet configuration parameters that can be associated to a specific user.
Since:
9.2
See Also:
GCApi:
bo
  • Constructor Details

    • BOProfile

      public BOProfile()
  • Method Details

    • getId

      public Long getId()
      Returns the profile id.
      Returns:
      the the profile id
    • setId

      public void setId(Long id)
      Sets the profile id.
      Parameters:
      id - the profile id
    • getCode

      public String getCode()
      Returns the profile code.
      Returns:
      the code
    • setCode

      public void setCode(String code)
      Sets the profile code.
      Parameters:
      code - the code
    • getDescription

      public LocalizedString getDescription()
      Returns the profile description.
      Returns:
      the description
    • setDescription

      public void setDescription(LocalizedString description)
      Sets the profile description.
      Parameters:
      description - the description
    • getActive

      public Boolean getActive()
      Checks if the profile is active.
      Returns:
      true if the profile is active, false otherwise
    • setActive

      public void setActive(Boolean active)
      Sets the profile to active.
      Parameters:
      active - true if the profile must be active, false otherwise
    • getIsDefault

      public Boolean 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

      public void setIsDefault(Boolean isDefault)
      Sets the profile to be the default one. There must be only one default profile.
      Parameters:
      isDefault - the checks if default
    • getType

      public Long getType()
      Returns the timesheet type id.
      Returns:
      the type id
      See Also:
    • setType

      public void setType(Long type)
      Sets the timesheet type id.
      Parameters:
      type - the type id
      See Also:
    • getHistory

      public Long getHistory()
      Returns the amount of previous timesheets accessible by mobile.
      Returns:
      the amount of previous accessible timesheets
    • setHistory

      public void setHistory(Long history)
      Sets the amount of previous timesheets accessible by mobile.
      Parameters:
      history - the amount of previous accessible timesheets
    • getShiftNotRespectedWarning

      public Boolean getShiftNotRespectedWarning()
      Checks if the profile's "shift-not-respected" warning is active.
      Returns:
      true if the warning is active, false otherwise
    • setShiftNotRespectedWarning

      public void setShiftNotRespectedWarning(Boolean shiftNotRespectedWarning)
      Sets the profile's "shift-not-respected" warning to active.
      Parameters:
      shiftNotRespectedWarning - true if the profile's warning must be active, false otherwise
    • getMaxLateStart

      public Long getMaxLateStart()
      Returns the max number of delay minutes allowed for the start of the shift.
      Returns:
      the max delay minutes
    • setMaxLateStart

      public void setMaxLateStart(Long maxLateStart)
      Sets the max number of delay minutes allowed for the start of the shift.
      Parameters:
      maxLateStart - the max delay minutes
    • getMaxEarlyEnd

      public Long getMaxEarlyEnd()
      Returns the max number of minutes in advance allowed for the end of the shift.
      Returns:
      the max minutes in advance
    • setMaxEarlyEnd

      public void setMaxEarlyEnd(Long maxEarlyEnd)
      Sets the max number of minutes in advance allowed for the end of the shift.
      Parameters:
      maxEarlyEnd - the max minutes in advance
    • getShiftBlockingClosure

      public Boolean 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

      public void setShiftBlockingClosure(Boolean shiftBlockingClosure)
      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

      public Boolean getOutOfShiftOvertimeWarning()
      Checks if the profile's "out-of-shift-overtime" warning is active.
      Returns:
      true if the warning is active, false otherwise
    • setOutOfShiftOvertimeWarning

      public void setOutOfShiftOvertimeWarning(Boolean outOfShiftOvertimeWarning)
      Sets the profile's "out-of-shift-overtime" warning to active.
      Parameters:
      outOfShiftOvertimeWarning - the out of shift overtime warning
    • getEarlyStartOvertimeThreshold

      public Long 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

      public void setEarlyStartOvertimeThreshold(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).
      Parameters:
      earlyStartOvertimeThreshold - the max minutes of permitted early start
    • getDelayEndOvertimeThreshold

      public Long 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

      public void setDelayEndOvertimeThreshold(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).
      Parameters:
      delayEndOvertimeThreshold - the max minutes of permitted late end
    • getOvertimeBlockingClosure

      public Boolean 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

      public void setOvertimeBlockingClosure(Boolean overtimeBlockingClosure)
      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

      public Boolean getShiftGapsWarning()
      Checks if the profile's "shift-gaps" warning is active.
      Returns:
      true if the warning is active, false otherwise
    • setShiftGapsWarning

      public void setShiftGapsWarning(Boolean shiftGapsWarning)
      Sets the profile's "shift-gaps" warning to active.
      Parameters:
      shiftGapsWarning - the shift gaps warning
    • getGapThreshold

      public Long 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

      public void setGapThreshold(Long gapThreshold)
      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

      public Boolean 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

      public void setGapsBlockingClosure(Boolean gapsBlockingClosure)
      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

      public Boolean getOverlapWarning()
      Checks if the profile's "overlap" warning is active.
      Returns:
      true if the warning is active, false otherwise
    • setOverlapWarning

      public void setOverlapWarning(Boolean overlapWarning)
      Sets the profile's "overlap" warning is active.
      Parameters:
      overlapWarning - true if the "overlap" warning is active, false otherwise
    • getOverlapBlockingClosure

      public Boolean 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

      public void setOverlapBlockingClosure(Boolean overlapBlockingClosure)
      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

      public Boolean 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

      public void setInconsistentDurationWarning(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.
      Parameters:
      inconsistentDurationWarning - true if the "inconsistent duration" warning is active, false otherwise
    • getDurationBlockingClosure

      public Boolean 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

      public void setDurationBlockingClosure(Boolean durationBlockingClosure)
      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

      public Long getPastTimesheetsNumber()
      Returns the number of past timesheets (with respect to the current one) to send to the mobile.
      Returns:
      the past timesheets number
    • setPastTimesheetsNumber

      public void setPastTimesheetsNumber(Long pastTimesheetsNumber)
      Sets the number of past timesheets (with respect to the current one) to send to the mobile.
      Parameters:
      pastTimesheetsNumber - the past timesheets number
    • getValidation

      public Boolean getValidation()
      Checks whether the validation is active or not.
      Returns:
      true if the validation is active, false otherwise
    • setValidation

      public void setValidation(Boolean validation)
      Enables or disables the validation.
      Parameters:
      validation - true if the validation must be active, false otherwise
    • getForcedClosureThreshold

      public Long getForcedClosureThreshold()
      Returns the forced closure threshold.
      Returns:
      the forced closure threshold
    • setForcedClosureThreshold

      public void setForcedClosureThreshold(Long forcedClosureThreshold)
      Sets the forced closure threshold.
      Parameters:
      forcedClosureThreshold - the forced closure threshold
    • getForcedClosureThresholdType

      public Long getForcedClosureThresholdType()
      Returns the forced closure threshold type.
      Returns:
      the forced closure threshold type
    • setForcedClosureThresholdType

      public void setForcedClosureThresholdType(Long forcedClosureThresholdType)
      Sets the forced closure threshold type.
      Parameters:
      forcedClosureThresholdType - the forced closure threshold type
    • isForcedClosureDefined

      public boolean isForcedClosureDefined()
    • getForcedClosureDate

      public Date getForcedClosureDate()
    • getForcedClosureDate

      public Date getForcedClosureDate(Date referenceDate)