Class DefaultGraphUserTenantIdProvider

java.lang.Object
com.flowable.idm.engine.microsoft.graph.DefaultGraphUserTenantIdProvider
All Implemented Interfaces:
GraphUserTenantIdProvider

public class DefaultGraphUserTenantIdProvider extends Object implements GraphUserTenantIdProvider
Author:
Roger Villars
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
    • userProperties

      protected GraphUserProperties userProperties
  • Constructor Details

    • DefaultGraphUserTenantIdProvider

      public DefaultGraphUserTenantIdProvider(GraphUserProperties userProperties)
  • Method Details

    • determineTenantId

      public String determineTenantId(tools.jackson.databind.JsonNode valueNode)
      Description copied from interface: GraphUserTenantIdProvider
      Method for extracting the tenant id for a user from the provided JsonNode
      Specified by:
      determineTenantId in interface GraphUserTenantIdProvider
      Parameters:
      valueNode - the valueNode that can be used to determine the tenant id
      Returns:
      the tenant id that the user should have
    • createTenantIdFilter

      public Optional<Filter> createTenantIdFilter(String queryTenantId)
      Description copied from interface: GraphUserTenantIdProvider
      Method for providing the optional String for the tenant being queried. If no filter is provided, then querying on tenant id would be ignored.
      Specified by:
      createTenantIdFilter in interface GraphUserTenantIdProvider
      Parameters:
      queryTenantId - the query tenant id, never null
      Returns:
      the optional Graph API filter
    • createTenantIdLikeFilter

      public Optional<Filter> createTenantIdLikeFilter(String queryTenantIdLike)
      Description copied from interface: GraphUserTenantIdProvider
      Method for providing the optional Filter for the tenant id like value being queried. If no filter is provided, then querying on tenant id like would be ignored.

      The default implementation provides no filter.

      Specified by:
      createTenantIdLikeFilter in interface GraphUserTenantIdProvider
      Parameters:
      queryTenantIdLike - the query tenant id like value, never null
      Returns:
      the optional Graph API filter
    • createFilter

      protected OrFilter createFilter(Collection<String> tenantIdMappings, String tenantId)
    • getUserProperties

      public GraphUserProperties getUserProperties()
    • setUserProperties

      public void setUserProperties(GraphUserProperties userProperties)