public class UpdateRuleStatusTask extends java.lang.Object implements MigrationTask
SourceRules by changing:
RuleStatus.INACTIVE where status equals RuleStatus.PUBLISHEDRuleStatus.UNPUBLISHED where status equals RuleStatus.MODIFIED| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
SELECT_RULES_BY_STATUS |
| Constructor and Description |
|---|
UpdateRuleStatusTask() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractRuleModel |
changeStatus(AbstractRuleModel rule,
RuleStatus status) |
protected java.util.List<AbstractRuleModel> |
changeStatus(RuleStatus fromStatus,
RuleStatus toStatus) |
void |
execute(SystemSetupContext systemSetupContext)
Executes migration task
|
protected FlexibleSearchService |
getFlexibleSearchService() |
protected ModelService |
getModelService() |
protected java.util.stream.Stream<SourceRuleModel> |
selectRulesByStatus(RuleStatus status) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelService(ModelService modelService) |
protected static final java.lang.String SELECT_RULES_BY_STATUS
public void execute(SystemSetupContext systemSetupContext)
MigrationTaskexecute in interface MigrationTasksystemSetupContext - - setup context that gives a control over task executionprotected java.util.List<AbstractRuleModel> changeStatus(RuleStatus fromStatus, RuleStatus toStatus)
protected AbstractRuleModel changeStatus(AbstractRuleModel rule, RuleStatus status)
protected java.util.stream.Stream<SourceRuleModel> selectRulesByStatus(RuleStatus status)
protected FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.