Interface TenantIdentifierConverter

All Known Implementing Classes:
StringTenantIdentifierConverter

@Incubating public interface TenantIdentifierConverter
Converts the tenant identifier value to a string that can be used for storing in the index. Converts the string representation of a tenant identifier when an object representation of it is required, e.g. opening a new session to get entities etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a string representation of the tenant identifier to an object representation.
    default String
    Converts an object representation of the tenant identifier to a string representation.
  • Method Details

    • toStringValue

      default String toStringValue(Object tenantId)
      Converts an object representation of the tenant identifier to a string representation.
      Parameters:
      tenantId - The tenant identifier to convert to a string. May be null.
      Returns:
      A string representation of the tenant identifier.
    • fromStringValue

      Object fromStringValue(String tenantId)
      Converts a string representation of the tenant identifier to an object representation.
      Parameters:
      tenantId - The tenant identifier to convert back to an object representation. May be null.
      Returns:
      An Object representation of the tenant identifier.