Class DuplicateRuleService
java.lang.Object
fr.paris.lutece.plugins.identitystore.service.duplicate.DuplicateRuleService
-
Method Summary
Modifier and TypeMethodDescriptioncreate(DuplicateRule duplicateRule) Creates a newDuplicateRuleand adds it to cache.voidDeletes aDuplicateRuleby its id in the database and cachefindAll()List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.duplicate.DuplicateRuleSummaryDto>findSummaries(Integer priority) Find all summaries of rules having priority or higherGetDuplicateRulefrom cache by its code.static DuplicateRuleServiceinstance()GetDuplicateRulefrom cache by its code.update(DuplicateRule duplicateRule) Update an existingDuplicateRule(if possible).
-
Method Details
-
instance
-
findAll
public List<DuplicateRule> findAll() throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException- Returns:
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException
-
findSummaries
public List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.duplicate.DuplicateRuleSummaryDto> findSummaries(Integer priority) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException Find all summaries of rules having priority or higher- Parameters:
priority- the min priority- Returns:
- a list of rule summaries
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException
-
get
public DuplicateRule get(String ruleCode) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException GetDuplicateRulefrom cache by its code.- Parameters:
ruleCode- the rule code- Returns:
- DuplicateRule
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException- if the rule is not found for the provided code
-
safeGet
GetDuplicateRulefrom cache by its code.- Parameters:
ruleCode- the rule code- Returns:
DuplicateRule, or null if the rule is not found for the provided code
-
create
Creates a newDuplicateRuleand adds it to cache.- Parameters:
duplicateRule-- Returns:
-
update
Update an existingDuplicateRule(if possible).- Parameters:
duplicateRule-- Returns:
-
delete
Deletes aDuplicateRuleby its id in the database and cache- Parameters:
id-
-