Class DuplicateRuleService


  • public class DuplicateRuleService
    extends java.lang.Object
    • Method Detail

      • findAll

        public java.util.List<DuplicateRule> findAll()
                                              throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException
        Returns:
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException
      • findSummaries

        public java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.duplicate.DuplicateRuleSummaryDto> findSummaries​(java.lang.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​(java.lang.String ruleCode)
                          throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException
        Get DuplicateRule from 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

        public DuplicateRule safeGet​(java.lang.String ruleCode)
        Get DuplicateRule from cache by its code.
        Parameters:
        ruleCode - the rule code
        Returns:
        DuplicateRule, or null if the rule is not found for the provided code
      • delete

        public void delete​(java.lang.Integer id)
        Deletes a DuplicateRule by its id in the database and cache
        Parameters:
        id -