Class JsonSystemMaintenanceTaskMarshalling
- java.lang.Object
-
- com.atlassian.confluence.impl.system.task.JsonSystemMaintenanceTaskMarshalling
-
- All Implemented Interfaces:
SystemMaintenanceTaskMarshalling
public class JsonSystemMaintenanceTaskMarshalling extends Object implements SystemMaintenanceTaskMarshalling
Use JSON to marshal/unmarshal tasks- Since:
- 7.7.0
-
-
Constructor Summary
Constructors Constructor Description JsonSystemMaintenanceTaskMarshalling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(SystemMaintenanceTask task)Convert aSystemMaintenanceTaskPOJO to a string representation<T extends SystemMaintenanceTask>
Tunmarshal(Class<T> taskClazz, String taskString)Convert a string representation of aSystemMaintenanceTaskto a POJO
-
-
-
Method Detail
-
marshal
public String marshal(SystemMaintenanceTask task)
Description copied from interface:SystemMaintenanceTaskMarshallingConvert aSystemMaintenanceTaskPOJO to a string representation- Specified by:
marshalin interfaceSystemMaintenanceTaskMarshalling
-
unmarshal
public <T extends SystemMaintenanceTask> T unmarshal(Class<T> taskClazz, String taskString)
Description copied from interface:SystemMaintenanceTaskMarshallingConvert a string representation of aSystemMaintenanceTaskto a POJO- Specified by:
unmarshalin interfaceSystemMaintenanceTaskMarshalling
-
-