Package org.openiam.br.service
Class BusinessRuleEvaluationService
- java.lang.Object
-
- org.openiam.br.service.BusinessRuleEvaluationService
-
@Service public class BusinessRuleEvaluationService extends Object
-
-
Constructor Summary
Constructors Constructor Description BusinessRuleEvaluationService(GroovyScriptEngineIntegration groovyScriptEngineIntegration, UserRabbitMQService userRabbitMQService, UserBusinessRuleRecalculationElasticSearchRepository userBusinessRuleRecalculationElasticSearchRepository, BusinessRuleManagementMQService managementMQService, org.redisson.api.RedissonClient redissonClient, RabbitMQSender sender, ProvisionBulkQueue provisionBulkQueue, ActivitiRabbitMQService activitiRabbitMQService, RoleRabbitMQService roleRabbitMQService, GroupRabbitMQService groupRabbitMQService, ManagedSystemRabbitMQService managedSystemRabbitMQService, PropertyValueCache propertyValueSweeper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionExplainResponse
checkCondition(User data, BrConditionDto conditionDto)
Boolean
evaluate(User data, List<String> explanations, BrConditionDto conditionDto)
org.springframework.data.domain.Page<BusinessRuleUserRecalculationDto>
find(String searchTerm, int from, int size)
protected boolean
isNotEmptyResponse(BaseListResponse response)
BusinessRuleEvaluationResponse
processUser(List<BusinessRuleDto> dtos, User user, User oldUser, AttributeOperationEnum attributeOperationEnum, boolean deleteAfterEvaluation)
BusinessRuleEvaluationResponse
processUser(BusinessRuleCrudRequest request)
void
recalculationPerform()
void
recalculationReview()
void
validate(BrConditionDto conditionDto)
-
-
-
Constructor Detail
-
BusinessRuleEvaluationService
@Autowired public BusinessRuleEvaluationService(GroovyScriptEngineIntegration groovyScriptEngineIntegration, UserRabbitMQService userRabbitMQService, UserBusinessRuleRecalculationElasticSearchRepository userBusinessRuleRecalculationElasticSearchRepository, BusinessRuleManagementMQService managementMQService, org.redisson.api.RedissonClient redissonClient, RabbitMQSender sender, ProvisionBulkQueue provisionBulkQueue, ActivitiRabbitMQService activitiRabbitMQService, RoleRabbitMQService roleRabbitMQService, GroupRabbitMQService groupRabbitMQService, ManagedSystemRabbitMQService managedSystemRabbitMQService, PropertyValueCache propertyValueSweeper)
-
-
Method Detail
-
find
public org.springframework.data.domain.Page<BusinessRuleUserRecalculationDto> find(String searchTerm, int from, int size)
-
recalculationReview
public void recalculationReview()
-
recalculationPerform
public void recalculationPerform()
-
validate
public void validate(BrConditionDto conditionDto) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
checkCondition
public ConditionExplainResponse checkCondition(User data, BrConditionDto conditionDto)
-
evaluate
public Boolean evaluate(User data, List<String> explanations, BrConditionDto conditionDto) throws ExpressionException
- Throws:
ExpressionException
-
processUser
public BusinessRuleEvaluationResponse processUser(BusinessRuleCrudRequest request)
-
processUser
public BusinessRuleEvaluationResponse processUser(List<BusinessRuleDto> dtos, User user, User oldUser, AttributeOperationEnum attributeOperationEnum, boolean deleteAfterEvaluation)
-
isNotEmptyResponse
protected boolean isNotEmptyResponse(BaseListResponse response)
-
-