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 String
marshal(SystemMaintenanceTask task)
Convert aSystemMaintenanceTask
POJO to a string representation<T extends SystemMaintenanceTask>
Tunmarshal(Class<T> taskClazz, String taskString)
Convert a string representation of aSystemMaintenanceTask
to a POJO
-
-
-
Method Detail
-
marshal
public String marshal(SystemMaintenanceTask task)
Description copied from interface:SystemMaintenanceTaskMarshalling
Convert aSystemMaintenanceTask
POJO to a string representation- Specified by:
marshal
in interfaceSystemMaintenanceTaskMarshalling
-
unmarshal
public <T extends SystemMaintenanceTask> T unmarshal(Class<T> taskClazz, String taskString)
Description copied from interface:SystemMaintenanceTaskMarshalling
Convert a string representation of aSystemMaintenanceTask
to a POJO- Specified by:
unmarshal
in interfaceSystemMaintenanceTaskMarshalling
-
-