Interface TenantIdentifierConverter
- All Known Implementing Classes:
StringTenantIdentifierConverter
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 TypeMethodDescriptionfromStringValue
(String tenantId) Converts a string representation of the tenant identifier to an object representation.default String
toStringValue
(Object tenantId) Converts an object representation of the tenant identifier to a string representation.
-
Method Details
-
toStringValue
Converts an object representation of the tenant identifier to a string representation.- Parameters:
tenantId
- The tenant identifier to convert to a string. May benull
.- Returns:
- A string representation of the tenant identifier.
-
fromStringValue
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 benull
.- Returns:
- An Object representation of the tenant identifier.
-