public class IdmIndexingSchedulerImpl extends Object implements IdmIndexingScheduler
Modifier and Type | Field and Description |
---|---|
protected CoreIdmEngineConfiguration |
idmEngineConfiguration |
protected com.flowable.indexing.api.IndexingService |
indexingService |
static String |
MAPPING_TYPE_USER |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
Constructor and Description |
---|
IdmIndexingSchedulerImpl(com.flowable.indexing.api.IndexingService indexingService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
CoreIdmEngineConfiguration idmEngineConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOrReplaceHistoricData(com.fasterxml.jackson.databind.node.ObjectNode dataNode,
String tenantId) |
protected void |
executeMembershipUpdate(PlatformUserEntity platformUserEntity,
String groupId,
boolean addGroup) |
protected UserDefinitionService |
getUserDefinitionService() |
boolean |
isIndexingEnabled() |
void |
scheduleMembershipAddedIndexing(PlatformUserEntity platformUserEntity,
String groupId) |
void |
scheduleMembershipDeletedIndexing(PlatformUserEntity platformUserEntity,
String groupId) |
void |
scheduleUserIndexing(PlatformUserEntity platformUserEntity) |
void |
scheduleUserIndexing(PlatformUserEntity platformUserEntity,
List<String> newGroupIds)
Schedules the indexing of a user.
|
void |
scheduleUserIndexing(PlatformUserEntity platformUserEntity,
List<String> newGroupIds,
String index) |
void |
scheduleUserIndexing(PlatformUserEntity platformUserEntity,
String index) |
public static final String MAPPING_TYPE_USER
protected com.flowable.indexing.api.IndexingService indexingService
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected CoreIdmEngineConfiguration idmEngineConfiguration
public IdmIndexingSchedulerImpl(com.flowable.indexing.api.IndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CoreIdmEngineConfiguration idmEngineConfiguration)
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity)
scheduleUserIndexing
in interface IdmIndexingScheduler
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, String index)
scheduleUserIndexing
in interface IdmIndexingScheduler
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds)
IdmIndexingScheduler
scheduleUserIndexing
in interface IdmIndexingScheduler
newGroupIds
- Optional list of groups that are created in the same transaction as the user.
When wanting simply a reindexing of a user, pass an empty optional.public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds, String index)
scheduleUserIndexing
in interface IdmIndexingScheduler
public void scheduleMembershipAddedIndexing(PlatformUserEntity platformUserEntity, String groupId)
scheduleMembershipAddedIndexing
in interface IdmIndexingScheduler
public void scheduleMembershipDeletedIndexing(PlatformUserEntity platformUserEntity, String groupId)
scheduleMembershipDeletedIndexing
in interface IdmIndexingScheduler
protected void executeMembershipUpdate(PlatformUserEntity platformUserEntity, String groupId, boolean addGroup)
protected UserDefinitionService getUserDefinitionService()
public boolean isIndexingEnabled()
protected void addOrReplaceHistoricData(com.fasterxml.jackson.databind.node.ObjectNode dataNode, String tenantId)