Interface GraphUserTenantIdProvider

All Known Subinterfaces:
GraphUserTenantIdProvider
All Known Implementing Classes:
DefaultGraphUserTenantIdProvider

public interface GraphUserTenantIdProvider
A provider for a tenant id for a user based on Graph API user JsonNode.
Author:
Roger Villars
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<? extends Filter>
    Method for providing the optional String for the tenant being queried.
    determineTenantId(com.fasterxml.jackson.databind.JsonNode valueNode)
    Method for extracting the tenant id for a user from the provided JsonNode
  • Method Details

    • determineTenantId

      String determineTenantId(com.fasterxml.jackson.databind.JsonNode valueNode)
      Method for extracting the tenant id for a user from the provided JsonNode
      Parameters:
      valueNode - the valueNode that can be used to determine the tenant id
      Returns:
      the tenant id that the user should have
    • createTenantIdFilter

      Optional<? extends Filter> createTenantIdFilter(String queryTenantId)
      Method for providing the optional String for the tenant being queried. If no filter is provided, then querying on tenant id would be ignored.
      Parameters:
      queryTenantId - the query tenant id, never null
      Returns:
      the optional Graph API filter