Class JsonWriter
java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.JsonWriter
Json writer for operations export.
- Author:
- Bogdan Stefanescu, Guillaume Renard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Used to export operations to studio.static String
exportOperations
(boolean filterNotInStudio) Used to export operations to studio.static void
writeAutomationInfo
(com.fasterxml.jackson.core.JsonGenerator jg, AutomationInfo info, boolean prettyPrint) static void
writeAutomationInfo
(OutputStream out, AutomationInfo info, boolean prettyPrint) static void
writeLogin
(com.fasterxml.jackson.core.JsonGenerator jg, LoginInfo login) static void
writeLogin
(OutputStream out, LoginInfo login) static void
writeOperation
(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op) static void
writeOperation
(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, boolean prettyPrint) static void
writeOperation
(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url) static void
writeOperation
(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url, boolean prettyPrint) static void
static void
writeOperation
(OutputStream out, OperationDocumentation op, boolean prettyPrint) static void
writePrimitive
(com.fasterxml.jackson.core.JsonGenerator jg, Object value) static void
writePrimitive
(OutputStream out, Object value)
-
Constructor Details
-
JsonWriter
public JsonWriter()
-
-
Method Details
-
writeAutomationInfo
public static void writeAutomationInfo(OutputStream out, AutomationInfo info, boolean prettyPrint) throws IOException - Throws:
IOException
-
writeAutomationInfo
public static void writeAutomationInfo(com.fasterxml.jackson.core.JsonGenerator jg, AutomationInfo info, boolean prettyPrint) throws IOException - Throws:
IOException
-
exportOperations
Used to export operations to studio.- Throws:
IOException
OperationException
-
exportOperations
public static String exportOperations(boolean filterNotInStudio) throws IOException, OperationException Used to export operations to studio.- Parameters:
filterNotInStudio
- if true, operation types not exposed in Studio will be filtered.- Throws:
IOException
OperationException
- Since:
- 5.9.1
-
writeOperation
- Throws:
IOException
-
writeOperation
public static void writeOperation(OutputStream out, OperationDocumentation op, boolean prettyPrint) throws IOException - Throws:
IOException
- Since:
- 5.9.4
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op) throws IOException - Throws:
IOException
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, boolean prettyPrint) throws IOException - Throws:
IOException
- Since:
- 5.9.4
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url) throws IOException - Throws:
IOException
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url, boolean prettyPrint) throws IOException - Throws:
IOException
- Since:
- 5.9.4
-
writeLogin
- Throws:
IOException
-
writeLogin
public static void writeLogin(com.fasterxml.jackson.core.JsonGenerator jg, LoginInfo login) throws IOException - Throws:
IOException
-
writePrimitive
- Throws:
IOException
-
writePrimitive
public static void writePrimitive(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException - Throws:
IOException
-