public class ILogResourcesGanttModelToTreeGridSerializer extends java.lang.Object implements Serializer<java.util.concurrent.Future<MXGanttModel>>
Serializer.NullSerializer
Constructor and Description |
---|
ILogResourcesGanttModelToTreeGridSerializer(TreeGridUtil.ITGSerializationHelper helper,
UIOptions options) |
ILogResourcesGanttModelToTreeGridSerializer(TreeGridUtil.ITGSerializationHelper helper,
UIOptions options,
IActivityFilter activityFilter) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encodeBackgroundEntry(java.util.Date start,
java.util.Date end,
java.lang.String color) |
void |
encodeRunActivity(TGJsonWriter jsonWriter,
MXGanttModel model,
MXResource mxr,
MXActivity act,
MXReservation resv) |
void |
encondeResource(TGJsonWriter jsonWriter,
MXGanttModel model,
MXResource mxr,
java.util.List<java.lang.String> columns)
Encodes the information related specifically to a Resource object, without
iterating through it's children activities.
|
TreeGridUtil.ITGSerializationHelper |
getSerializationHelper() |
AbstractTreeGridMiniAppBean.ShiftInfo |
getShiftWorkPeriodInfoForDate(MXResource mxr,
MXGanttModel model,
java.util.Date d)
Add the WorkPeriod information to the TreeGrid UI
|
boolean |
isFlatModel() |
void |
serialize(java.util.concurrent.Future<MXGanttModel> in,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp) |
void |
setFlatModel(boolean flatModel)
If a FLAT model is being serialized, then Array Items are not added as children Items, but rather as single rows.
|
void |
writeJsonrResource(TGJsonWriter jsonWriter,
MXGanttModel model,
MXResource mxr,
java.util.List<java.lang.String> columns) |
public ILogResourcesGanttModelToTreeGridSerializer(TreeGridUtil.ITGSerializationHelper helper, UIOptions options, IActivityFilter activityFilter)
public ILogResourcesGanttModelToTreeGridSerializer(TreeGridUtil.ITGSerializationHelper helper, UIOptions options)
public TreeGridUtil.ITGSerializationHelper getSerializationHelper()
public void serialize(java.util.concurrent.Future<MXGanttModel> in, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse resp) throws java.lang.Exception
serialize
in interface Serializer<java.util.concurrent.Future<MXGanttModel>>
java.lang.Exception
public void writeJsonrResource(TGJsonWriter jsonWriter, MXGanttModel model, MXResource mxr, java.util.List<java.lang.String> columns) throws java.io.IOException
java.io.IOException
public java.lang.String encodeBackgroundEntry(java.util.Date start, java.util.Date end, java.lang.String color) throws java.io.IOException
java.io.IOException
public void encodeRunActivity(TGJsonWriter jsonWriter, MXGanttModel model, MXResource mxr, MXActivity act, MXReservation resv) throws java.io.IOException
java.io.IOException
public AbstractTreeGridMiniAppBean.ShiftInfo getShiftWorkPeriodInfoForDate(MXResource mxr, MXGanttModel model, java.util.Date d) throws java.io.IOException
gantt
- model
- java.io.IOException
public boolean isFlatModel()
public void setFlatModel(boolean flatModel)
flatModel
- public void encondeResource(TGJsonWriter jsonWriter, MXGanttModel model, MXResource mxr, java.util.List<java.lang.String> columns) throws java.io.IOException
jsonWriter
- model
- mxr
- columns
- java.io.IOException