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 CoreIdmEngineConfigurationidmEngineConfigurationprotected com.flowable.indexing.api.IndexingServiceindexingServicestatic StringMAPPING_TYPE_USERprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
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 voidaddOrReplaceHistoricData(com.fasterxml.jackson.databind.node.ObjectNode dataNode, String tenantId)protected voidexecuteMembershipUpdate(PlatformUserEntity platformUserEntity, String groupId, boolean addGroup)protected UserDefinitionServicegetUserDefinitionService()booleanisIndexingEnabled()voidscheduleMembershipAddedIndexing(PlatformUserEntity platformUserEntity, String groupId)voidscheduleMembershipDeletedIndexing(PlatformUserEntity platformUserEntity, String groupId)voidscheduleUserIndexDeletion(String userId)voidscheduleUserIndexing(PlatformUserEntity platformUserEntity)voidscheduleUserIndexing(PlatformUserEntity platformUserEntity, String index)voidscheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds)Schedules the indexing of a user.voidscheduleUserIndexing(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
-
scheduleUserIndexDeletion
public void scheduleUserIndexDeletion(String userId)
- Specified by:
scheduleUserIndexDeletionin interfaceIdmIndexingScheduler
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity)
- Specified by:
scheduleUserIndexingin interfaceIdmIndexingScheduler
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, String index)
- Specified by:
scheduleUserIndexingin interfaceIdmIndexingScheduler
-
scheduleUserIndexing
public void scheduleUserIndexing(PlatformUserEntity platformUserEntity, List<String> newGroupIds)
Description copied from interface:IdmIndexingSchedulerSchedules the indexing of a user.- Specified by:
scheduleUserIndexingin interfaceIdmIndexingSchedulernewGroupIds- 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:
scheduleUserIndexingin interfaceIdmIndexingScheduler
-
scheduleMembershipAddedIndexing
public void scheduleMembershipAddedIndexing(PlatformUserEntity platformUserEntity, String groupId)
- Specified by:
scheduleMembershipAddedIndexingin interfaceIdmIndexingScheduler
-
scheduleMembershipDeletedIndexing
public void scheduleMembershipDeletedIndexing(PlatformUserEntity platformUserEntity, String groupId)
- Specified by:
scheduleMembershipDeletedIndexingin 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)
-
-