Class BOTask
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.core.bl.timesheet.timesheettask.BOTask
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
Business object representing a timesheet task.
It represents all the activities carried out during the day by a user.
- Since:
- 9.2
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActualDuration(Long duration) Adds the specified duration (mins) to the actual duration of the task.booleanfallsIntoRange(Date rangeStartDate, Date rangeEndDate) Checks if the task falls into the input range.Returns the actual duration (mins) of the task.Returns the task category id.Returns the task duration (mins).Returns the task end date.Returns the end event entity id of the task.Returns the end event type id of the task.getId()Returns the task id.If the original task was split into other tasks, this represents the id of the related next task.getNote()Returns the note of the task.Returns the id of the "on call" shift to which the task refers.If the original task was split into other tasks, this represents the id of the related previous task.getShift()Returns the id of the shift to which the task refers.Returns the task start date.Returns the start event entity id of the task.Returns the start event type id of the task.getState()Returns the task state id.Returns the id of the timesheet associated to the task.Returns the unavailability reason of the task.Checks if the task has been manually edited by the user.getUuid()booleanReturns true if the task is automatic.voidsetActualDuration(Long actualDuration) Sets the actual duration (mins) of the task.voidsetCategory(Long category) Sets the task category id.voidsetDuration(Long duration) Sets the task duration (mins).voidsetEndDate(Date endDate) Sets the task end date.voidsetEndEventEntity(Long endEventEntity) Sets the end event entity id of the task.voidsetEndEventType(Long endEventType) Sets the end event type id of the task.voidSets the task id.voidsetNextTask(Long nextTask) If the original task was split into other tasks, this sets the id of the related next task.voidSets the note of the task.voidsetOnCallShift(Long onCallShift) Sets the id of the "on call" shift to which the task refers.voidsetPreviousTask(Long previousTask) If the original task was split into other tasks, this sets the id of the related previous task.voidSets the id of the shift to which the task refers.voidsetStartDate(Date startDate) Sets the task start date.voidsetStartEventEntity(Long startEventEntity) Sets the start event entity id of the task.voidsetStartEventType(Long startEventType) Sets the start event type id of the task.voidSets the task state id.voidsetTimesheet(Long timesheet) Sets the the id of the timesheet associated to the task.voidsetUnavailabilityReason(Long unavailabilityReason) Sets the unavailability reason of the task.voidsetUpdatedByUser(Boolean updatedByUser) Sets the the task as updated by user.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
-
BOTask
public BOTask()
-
-
Method Details
-
getId
Returns the task id.- Returns:
- the the task id
-
setId
Sets the task id.- Parameters:
id- the task id
-
getTimesheet
Returns the id of the timesheet associated to the task.- Returns:
- the timesheet id
- See Also:
-
setTimesheet
Sets the the id of the timesheet associated to the task.- Parameters:
timesheet- the timesheet id- See Also:
-
getCategory
Returns the task category id.- Returns:
- the category id
- See Also:
-
setCategory
Sets the task category id.- Parameters:
category- the category id- See Also:
-
getState
Returns the task state id.- Returns:
- the state id
- See Also:
-
setState
Sets the task state id.- Parameters:
state- the state id- See Also:
-
getShift
Returns the id of the shift to which the task refers.- Returns:
- the shift id
- See Also:
-
setShift
Sets the id of the shift to which the task refers.- Parameters:
shift- the shift id- See Also:
-
getOnCallShift
Returns the id of the "on call" shift to which the task refers.- Returns:
- the on call shift id
- See Also:
-
setOnCallShift
Sets the id of the "on call" shift to which the task refers.- Parameters:
onCallShift- the on call shift id- See Also:
-
getStartDate
Returns the task start date.- Returns:
- the start date
-
setStartDate
Sets the task start date.- Parameters:
startDate- the start date
-
getEndDate
Returns the task end date.- Returns:
- the end date
-
setEndDate
Sets the task end date.- Parameters:
endDate- the end date
-
getDuration
Returns the task duration (mins). If the accounting is manually inserted, the duration corresponds to the value the user inserted. In all other cases, the duration is equal to the difference between the task end and task start dates.- Returns:
- the duration
-
setDuration
Sets the task duration (mins). If the accounting is manually inserted, the duration corresponds to the value the user inserted. In all other cases, the duration is equal to the difference between the task end and task start dates.- Parameters:
duration- the duration
-
getActualDuration
Returns the actual duration (mins) of the task. The actual duration is equal to the difference between the task end and task start dates, without eventual overlaps with lower priority.- Returns:
- the actual duration
-
setActualDuration
Sets the actual duration (mins) of the task. The actual duration is equal to the difference between the task end and task start dates, without eventual overlaps with lower priority.- Parameters:
actualDuration- the actual duration
-
getStartEventType
Returns the start event type id of the task. The start event type takes value in case of automatic insertion.- Returns:
- the start event type id
- See Also:
-
setStartEventType
Sets the start event type id of the task. The start event type takes value in case of automatic insertion.- Parameters:
startEventType- the start event type id- See Also:
-
getStartEventEntity
Returns the start event entity id of the task.- Returns:
- the start event entity id
- See Also:
-
setStartEventEntity
Sets the start event entity id of the task.- Parameters:
startEventEntity- the start event entity id- See Also:
-
getEndEventType
Returns the end event type id of the task. The end event type takes value in case of automatic insertion.- Returns:
- the end event type id
- See Also:
-
setEndEventType
Sets the end event type id of the task. The end event type takes value in case of automatic insertion.- Parameters:
endEventType- the end event type id- See Also:
-
getEndEventEntity
Returns the end event entity id of the task.- Returns:
- the end event entity id
- See Also:
-
setEndEventEntity
Sets the end event entity id of the task.- Parameters:
endEventEntity- the end event entity id- See Also:
-
getNote
Returns the note of the task.- Returns:
- the note
-
setNote
Sets the note of the task.- Parameters:
note- the note
-
getUpdatedByUser
Checks if the task has been manually edited by the user. If so, the task cannot be further modified by automatic processes.- Returns:
- true if the task has been manually edited by the user, false otherwise
-
setUpdatedByUser
Sets the the task as updated by user. If @param updatedByUser is true, the task will never be further editable by automatic processes.- Parameters:
updatedByUser- true if the task has been manually edited by the user, false otherwise
-
getPreviousTask
If the original task was split into other tasks, this represents the id of the related previous task.- Returns:
- the previous task id
-
setPreviousTask
If the original task was split into other tasks, this sets the id of the related previous task.- Parameters:
previousTask- the previous task id
-
getNextTask
If the original task was split into other tasks, this represents the id of the related next task.- Returns:
- the next task id
-
setNextTask
If the original task was split into other tasks, this sets the id of the related next task.- Parameters:
nextTask- the next task id
-
addActualDuration
Adds the specified duration (mins) to the actual duration of the task.- Parameters:
duration- the duration (mins) to add
-
isAutomatic
public boolean isAutomatic()Returns true if the task is automatic.- Returns:
trueif it is an automatic task, false otherwise
-
fallsIntoRange
Checks if the task falls into the input range.- Parameters:
rangeStartDate- range start daterangeEndDate- range end date- Returns:
trueif the task falls into the input range,falseotherwise
-
getUuid
-