E
- data object of the sessionF
- data object of the 'parent' Timeslotpublic class Session<E extends DataObject<E> & UniqueidentifiedInterface<E>,F extends DataObject<F> & TimeslotInterface<F>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Session(SessionDefinition<E,F> definition,
DataObjectPayload parentpayload)
creates a session property
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getEndtime()
end time of this session
|
java.lang.Integer |
getSequence() |
java.util.Date |
getStarttime()
start time of this session
|
java.lang.String |
getValid() |
void |
setDependentPropertyLinkedtoparent(Linkedtoparent<E,F> linkedtoparent)
sets the dependent property linked to parent (parent is the session for
scheduling purposes)
|
void |
setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
sets the dependent property unique identified
|
protected void |
SetEndtime(java.util.Date date)
sets the end time
|
void |
setparenttimeslot(E object,
DataObjectId<F> parentfortimeslot)
sets the parent timeslot
|
protected void |
setSequence(java.lang.Integer sequence) |
void |
setsessiontime(E object,
java.util.Date starttime,
java.util.Date endtime,
java.lang.Integer sequence,
ChoiceValue<BooleanChoiceDefinition> valid)
sets the session time
|
protected void |
SetStarttime(java.util.Date date)
sets the start time
|
protected void |
setValid(java.lang.String valid) |
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Session(SessionDefinition<E,F> definition, DataObjectPayload parentpayload)
definition
- definition of the session propertyparentpayload
- payload of the parent objectpublic java.util.Date getStarttime()
public java.util.Date getEndtime()
public java.lang.Integer getSequence()
public java.lang.String getValid()
public void setparenttimeslot(E object, DataObjectId<F> parentfortimeslot)
object
- objectparentfortimeslot
- id of the parent sessionpublic void setsessiontime(E object, java.util.Date starttime, java.util.Date endtime, java.lang.Integer sequence, ChoiceValue<BooleanChoiceDefinition> valid)
object
- starttime
- start of the sessionendtime
- end of the sessionsequence
- sequence of the timeslotvalid
- true if the sequence is fully inside an opening slotpublic void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- unique identified propertypublic void setDependentPropertyLinkedtoparent(Linkedtoparent<E,F> linkedtoparent)
linkedtoparent
- the linkedtoparent propertyprotected void SetStarttime(java.util.Date date)
date
- new start timeprotected void SetEndtime(java.util.Date date)
date
- new end timeprotected void setSequence(java.lang.Integer sequence)
sequence
- sets the sequenceprotected void setValid(java.lang.String valid)
valid
- a String representing the storage code of the system module