Interface UserFieldMappingService<P extends UserFieldMapping>
- All Known Implementing Classes:
DefaultUserFieldMappingService
public interface UserFieldMappingService<P extends UserFieldMapping>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(String tenantId) Clear cached field mappings for the tenant ID.Create a new user field mappingvoid
Delete the user field mappingreadAllByTenantId
(String tenantId) Find all user field mappings for a tenantreadByTargetKey
(String targetKey) Find a user field mapping by target keyreadByTenantIdAndAttributeName
(String tenantId, String attributeName) Find a user field mapping by tenant ID and attribute nameReplace a user field mapping
-
Method Details
-
readByTenantIdAndAttributeName
Find a user field mapping by tenant ID and attribute name- Parameters:
tenantId
- the tenant IDattributeName
- the attribute name- Returns:
- an optional of user field mapping
-
readByTargetKey
Find a user field mapping by target key- Parameters:
targetKey
- the target key- Returns:
- an optional of user field mapping
-
readAllByTenantId
Find all user field mappings for a tenant- Parameters:
tenantId
- the tenant ID- Returns:
- a page of user field mappings for the tenant
-
replace
Replace a user field mapping- Parameters:
userFieldMapping
- The replacement- Returns:
- The replaced user field mapping
-
create
Create a new user field mapping- Parameters:
payload
- the user field mapping to create- Returns:
- the created user field mapping
-
delete
Delete the user field mapping- Parameters:
id
- the id of the entity to delete
-
clearCache
Clear cached field mappings for the tenant ID.- Parameters:
tenantId
- The tenant ID to clear
-