Class GraphUtils
java.lang.Object
com.flowable.microsoft.graph.impl.GraphUtils
- Author:
- Roger Villars, Filip Hrisafov
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMappings(Collection<String> collection, Collection<String> mappings) static org.flowable.common.engine.api.FlowableExceptioncreateFlowableExceptionForInvalidStatus(String action, org.flowable.http.common.api.HttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Handle an invalid status code exception.static StringgetContentType(org.flowable.http.common.api.HttpHeaders responseHeaders) static DategetDateAttribute(Collection<String> attributeNames, com.fasterxml.jackson.databind.JsonNode valueNode) static StringgetStringAttribute(String attributeName, com.fasterxml.jackson.databind.JsonNode valueNode) static StringgetStringAttribute(Collection<String> attributeNames, com.fasterxml.jackson.databind.JsonNode valueNode) protected static GraphUtils.RemoteErrorreadRemoteErrorFromResponseBodyIfJson(org.flowable.http.common.api.HttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Field Details
-
ATTRIBUTE_ID
- See Also:
-
-
Constructor Details
-
GraphUtils
public GraphUtils()
-
-
Method Details
-
getStringAttribute
public static String getStringAttribute(Collection<String> attributeNames, com.fasterxml.jackson.databind.JsonNode valueNode) -
getStringAttribute
-
getDateAttribute
public static Date getDateAttribute(Collection<String> attributeNames, com.fasterxml.jackson.databind.JsonNode valueNode) -
addMappings
-
createFlowableExceptionForInvalidStatus
public static org.flowable.common.engine.api.FlowableException createFlowableExceptionForInvalidStatus(String action, org.flowable.http.common.api.HttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Handle an invalid status code exception.- Returns:
- the
FlowableExceptionto throw ornullif the response actually means nothing was found.
-
readRemoteErrorFromResponseBodyIfJson
protected static GraphUtils.RemoteError readRemoteErrorFromResponseBodyIfJson(org.flowable.http.common.api.HttpResponse response, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getContentType
-