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, writeJsonrResource
public 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 Serializer
serialize
in class ILogResourcesGanttModelToTreeGridSerializer
java.lang.Exception
protected java.lang.String getColorForModAvail(MXActivity act)
getColorForModAvail
in class ILogResourcesGanttModelToTreeGridSerializer
protected java.util.List getModAvail(MXResource mxr, MXGanttModel model)
getModAvail
in class ILogResourcesGanttModelToTreeGridSerializer
protected boolean isIncludedInModel(MXActivity act)
isIncludedInModel
in class ILogResourcesGanttModelToTreeGridSerializer
protected void refreshActivity(MXActivity act)
refreshActivity
in class ILogResourcesGanttModelToTreeGridSerializer
protected void inspectReservation(MXGanttModel model, MXResource mxr, MXActivity act)
ILogResourcesGanttModelToTreeGridSerializer
inspectReservation
in class ILogResourcesGanttModelToTreeGridSerializer
protected void inspectResource(MXGanttModel model, MXResource mxr)
ILogResourcesGanttModelToTreeGridSerializer
inspectResource
in class ILogResourcesGanttModelToTreeGridSerializer
protected void onAfterEncodeReservation(TGJsonWriter jsonWriter, MXGanttModel model, MXResource mxr, MXActivity act, boolean isRunBar, TreeGridUtil.ITGSerializationHelper helper) throws java.io.IOException
ILogResourcesGanttModelToTreeGridSerializer
onAfterEncodeReservation
in class ILogResourcesGanttModelToTreeGridSerializer
java.io.IOException
protected java.lang.String getShiftWorkPeriodInfo(TGJsonWriter jsonWriter, MXResource mxr, MXGanttModel model) throws java.io.IOException
ILogResourcesGanttModelToTreeGridSerializer
getShiftWorkPeriodInfo
in class ILogResourcesGanttModelToTreeGridSerializer
java.io.IOException
protected int getRunHeight(MXActivity act)
getRunHeight
in class ILogResourcesGanttModelToTreeGridSerializer