Class GraphUtils

java.lang.Object
com.flowable.microsoft.graph.impl.GraphUtils

public class GraphUtils extends Object
Author:
Roger Villars, Filip Hrisafov
  • Field Details

  • Constructor Details

    • GraphUtils

      public GraphUtils()
  • Method Details

    • getStringAttribute

      public static String getStringAttribute(Collection<String> attributeNames, com.fasterxml.jackson.databind.JsonNode valueNode)
    • getStringAttribute

      public static String getStringAttribute(String attributeName, com.fasterxml.jackson.databind.JsonNode valueNode)
    • getDateAttribute

      public static Date getDateAttribute(Collection<String> attributeNames, com.fasterxml.jackson.databind.JsonNode valueNode)
    • addMappings

      public static void addMappings(Collection<String> collection, Collection<String> mappings)
    • 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 FlowableException to throw or null if 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

      public static String getContentType(org.flowable.http.common.api.HttpHeaders responseHeaders)