public class DispatchModelSerializer extends ILogResourcesGanttModelToTreeGridSerializer
Serializer.NullSerializer| Modifier and Type | Field and Description |
|---|---|
static GanttUtil.IDGenerator |
TRAVEL_TIME_ID_GENERATOR |
flatModel| Constructor and Description |
|---|
DispatchModelSerializer(DispatchViewBean bean) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getColorForModAvail(MXActivity act) |
protected java.util.List |
getModAvail(MXResource mxr,
MXGanttModel model) |
protected int |
getRunHeight(MXActivity act) |
protected java.lang.String |
getShiftWorkPeriodInfo(TGJsonWriter jsonWriter,
MXResource mxr,
MXGanttModel model)
Add the WorkPeriod information to the TreeGrid UI
|
protected void |
inspectReservation(MXGanttModel model,
MXResource mxr,
MXActivity act)
Gives the process an attempt to inspect the activity and potentially make changes to it, before the activity
is serialized to the model.
|
protected void |
inspectResource(MXGanttModel model,
MXResource mxr)
Called before a resource is serialized in the model.
|
protected boolean |
isIncludedInModel(MXActivity act) |
protected void |
onAfterEncodeReservation(TGJsonWriter jsonWriter,
MXGanttModel model,
MXResource mxr,
MXActivity act,
boolean isRunBar,
TreeGridUtil.ITGSerializationHelper helper)
Called after an Reservation Activity is added to the Model.
|
protected void |
refreshActivity(MXActivity act) |
void |
serialize(java.util.concurrent.Future in,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp) |
canEncodeActivity, encodeBackgroundEntry, encodeRunActivity, encondeResource, getSerializationHelper, getShiftWorkPeriodInfoForDate, isFlatModel, setFlatModel, showOtherAssignements, writeJsonrResourcepublic static final GanttUtil.IDGenerator TRAVEL_TIME_ID_GENERATOR
public DispatchModelSerializer(DispatchViewBean bean)
public void serialize(java.util.concurrent.Future in,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp)
throws java.lang.Exception
serialize in interface Serializerserialize in class ILogResourcesGanttModelToTreeGridSerializerjava.lang.Exceptionprotected java.lang.String getColorForModAvail(MXActivity act)
getColorForModAvail in class ILogResourcesGanttModelToTreeGridSerializerprotected java.util.List getModAvail(MXResource mxr, MXGanttModel model)
getModAvail in class ILogResourcesGanttModelToTreeGridSerializerprotected boolean isIncludedInModel(MXActivity act)
isIncludedInModel in class ILogResourcesGanttModelToTreeGridSerializerprotected void refreshActivity(MXActivity act)
refreshActivity in class ILogResourcesGanttModelToTreeGridSerializerprotected void inspectReservation(MXGanttModel model, MXResource mxr, MXActivity act)
ILogResourcesGanttModelToTreeGridSerializerinspectReservation in class ILogResourcesGanttModelToTreeGridSerializerprotected void inspectResource(MXGanttModel model, MXResource mxr)
ILogResourcesGanttModelToTreeGridSerializerinspectResource in class ILogResourcesGanttModelToTreeGridSerializerprotected void onAfterEncodeReservation(TGJsonWriter jsonWriter, MXGanttModel model, MXResource mxr, MXActivity act, boolean isRunBar, TreeGridUtil.ITGSerializationHelper helper) throws java.io.IOException
ILogResourcesGanttModelToTreeGridSerializeronAfterEncodeReservation in class ILogResourcesGanttModelToTreeGridSerializerjava.io.IOExceptionprotected java.lang.String getShiftWorkPeriodInfo(TGJsonWriter jsonWriter, MXResource mxr, MXGanttModel model) throws java.io.IOException
ILogResourcesGanttModelToTreeGridSerializergetShiftWorkPeriodInfo in class ILogResourcesGanttModelToTreeGridSerializerjava.io.IOExceptionprotected int getRunHeight(MXActivity act)
getRunHeight in class ILogResourcesGanttModelToTreeGridSerializer