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