Class IdmIndexingSchedulerImpl
- java.lang.Object
-
- com.flowable.idm.engine.impl.indexing.IdmIndexingSchedulerImpl
-
- All Implemented Interfaces:
IdmIndexingScheduler
public class IdmIndexingSchedulerImpl extends Object implements IdmIndexingScheduler
-
-
Field Summary
Fields Modifier and Type Field Description protected CoreIdmEngineConfiguration
idmEngineConfiguration
protected com.flowable.indexing.api.IndexingService
indexingService
static String
MAPPING_TYPE_USER
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description IdmIndexingSchedulerImpl(com.flowable.indexing.api.IndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CoreIdmEngineConfiguration idmEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, String index)
void
scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds)
Schedules the indexing of a user.void
scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds, String index)
-
-
-
Field Detail
-
MAPPING_TYPE_USER
public static final String MAPPING_TYPE_USER
- See Also:
- Constant Field Values
-
indexingService
protected com.flowable.indexing.api.IndexingService indexingService
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
idmEngineConfiguration
protected CoreIdmEngineConfiguration idmEngineConfiguration
-
-
Constructor Detail
-
IdmIndexingSchedulerImpl
public IdmIndexingSchedulerImpl(com.flowable.indexing.api.IndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CoreIdmEngineConfiguration idmEngineConfiguration)
-
-
Method Detail
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity)
- Specified by:
scheduleUserIndexing
in interfaceIdmIndexingScheduler
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, String index)
- Specified by:
scheduleUserIndexing
in interfaceIdmIndexingScheduler
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds)
Description copied from interface:IdmIndexingScheduler
Schedules the indexing of a user.- Specified by:
scheduleUserIndexing
in interfaceIdmIndexingScheduler
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.
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds, String index)
- Specified by:
scheduleUserIndexing
in interfaceIdmIndexingScheduler
-
scheduleMembershipAddedIndexing
public void scheduleMembershipAddedIndexing(PlatformUserEntity platformUserEntity, String groupId)
- Specified by:
scheduleMembershipAddedIndexing
in interfaceIdmIndexingScheduler
-
scheduleMembershipDeletedIndexing
public void scheduleMembershipDeletedIndexing(PlatformUserEntity platformUserEntity, String groupId)
- Specified by:
scheduleMembershipDeletedIndexing
in interfaceIdmIndexingScheduler
-
executeMembershipUpdate
protected void executeMembershipUpdate(PlatformUserEntity platformUserEntity, String groupId, boolean addGroup)
-
getUserDefinitionService
protected UserDefinitionService getUserDefinitionService()
-
isIndexingEnabled
public boolean isIndexingEnabled()
-
addOrReplaceHistoricData
protected void addOrReplaceHistoricData(com.fasterxml.jackson.databind.node.ObjectNode dataNode, String tenantId)
-
-