E
- The timeslot object (total calendar period for an activityF
- the session object. A child of the timeslot, it stores any precise
sessionpublic class Timeslotwithsessions<E extends DataObject<E> & UniqueidentifiedInterface<E> & TimeslotInterface<E> & ScheduleInterface<E,?>,F extends DataObject<F> & UniqueidentifiedInterface<F> & SessionInterface<F,E>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Timeslotwithsessions(TimeslotwithsessionsDefinition<E,F> definition,
DataObjectPayload parentpayload)
creates the timeslot with session
|
Modifier and Type | Method and Description |
---|---|
F[] |
getallsessions(E object,
QueryFilter additionalquerycondition)
get all sessions for this timeslot
|
void |
postprocStoredobjectInsert(E object)
after object is inserted, repairs the timeslot
|
static <E extends DataObject<E> & UniqueidentifiedInterface<E> & TimeslotInterface<E> & ScheduleInterface<E,?>,F extends DataObject<F> & UniqueidentifiedInterface<F> & SessionInterface<F,E>> |
postprocStoredobjectInsert(E[] objectbatch,
Timeslotwithsessions<E,F>[] timeslotwithsession)
massive postprocessing for the objects after insertion
|
void |
postprocTimeslotForcereschedule(E object,
java.util.Date starttime,
java.util.Date endtime)
a procedure to force reschedule without retriggering all scheduling of
further timeslots (this is called by the rescheduling process
|
void |
postprocTimeslotRepairschedule(E object)
repairs the schedule (in practice reschedule with the same dates as before)
|
void |
postprocTimeslotReschedule(E object,
java.util.Date starttime,
java.util.Date endtime)
reschedule this timeslot
|
void |
setDependentPropertySchedule(Schedule<E,?> schedule)
adds the dependent property schedule to this object
|
void |
setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
sets the dependent property unique identified
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Timeslotwithsessions(TimeslotwithsessionsDefinition<E,F> definition, DataObjectPayload parentpayload)
definition
- definition of the propertyparentpayload
- payload of the parent objectpublic void setDependentPropertySchedule(Schedule<E,?> schedule)
schedule
- the dependent property objectpublic void postprocTimeslotRepairschedule(E object)
object
- the object to start the reschedule onpublic void postprocTimeslotForcereschedule(E object, java.util.Date starttime, java.util.Date endtime)
object
- the object to force reschedulestarttime
- start time of the timeslotendtime
- end time of the timeslotpublic void postprocTimeslotReschedule(E object, java.util.Date starttime, java.util.Date endtime)
object
- the object to processstarttime
- new start time for the timeslotendtime
- new end time for the timeslotpublic void postprocStoredobjectInsert(E object)
object
- the object to processpublic static <E extends DataObject<E> & UniqueidentifiedInterface<E> & TimeslotInterface<E> & ScheduleInterface<E,?>,F extends DataObject<F> & UniqueidentifiedInterface<F> & SessionInterface<F,E>> void postprocStoredobjectInsert(E[] objectbatch, Timeslotwithsessions<E,F>[] timeslotwithsession)
objectbatch
- batch of objectstimeslotwithsession
- batch of timeslotwithsessionspublic F[] getallsessions(E object, QueryFilter additionalquerycondition)
object
- the current object with timeslot propertyadditionalquerycondition
- additional query conditionpublic void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- dependent property unique identified