Class SchedulingTimeslot
java.lang.Object
overit.geocallapp.wfm.scheduling.timeslot.SchedulingTimeslot
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeDuration(Integer durationInSeconds) Method that changes the duration of the lockvoidlock(boolean forceLock) Method that locks the timeslotvoidsetActivityDescription(String activityDescription) voidsetDuration(int duration) voidvoidvoidsetWeakTimeslot(boolean weakTimeslot) voidunlock()Method that unlocks the timeslot
-
Constructor Details
-
SchedulingTimeslot
public SchedulingTimeslot()
-
-
Method Details
-
setWeakTimeslot
public void setWeakTimeslot(boolean weakTimeslot) -
setName
-
setUuid
-
setDuration
public void setDuration(int duration) -
setActivityDescription
-
lock
Method that locks the timeslot- Parameters:
forceLock- true if we want to force the timeslot, the timeslot must be weak to get locked- Throws:
DAException- throwsDAExceptionDAValidateException- throwsDAValidateException
-
unlock
Method that unlocks the timeslot- Throws:
DAException- throwsDAExceptionDAValidateException- throwsDAValidateException
-
changeDuration
Method that changes the duration of the lock- Parameters:
durationInSeconds- the new duration in seconds- Throws:
DAException- throwsDAExceptionDAValidateException- throwsDAValidateException
-