Interface IIdentitySearcher

  • All Known Implementing Classes:
    IdentitySearcher

    public interface IIdentitySearcher
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default Response emptyResponse()  
      Response multiSearch​(java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, java.util.List<java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute>> specialTreatmentAttributes, java.lang.Integer nbEqualAttributes, java.lang.Integer nbMissingAttributes, int max, boolean connected, java.util.List<java.lang.String> attributesFilter)
      Performs a multi search in elastic search (_msearch) based on a list of attributes
      Response search​(java.lang.String customerId, java.util.List<java.lang.String> attributesFilter)
      Performs a search in elastic search (_search) based on customer ID
      Response search​(java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, int max, boolean connected, java.util.List<java.lang.String> attributesFilter)
      Performs a search in elastic search (_search) based on a list of attributes
      Response search​(java.util.List<java.lang.String> customerIds, java.util.List<java.lang.String> attributesFilter)
      Performs a multi search in elastic search (_msearch) based on a list of customer IDs
      Response searchByConnectionId​(java.lang.String connectionId, java.util.List<java.lang.String> attributesFilter)
      Performs a search in elastic search (_search) based on customer ID
    • Method Detail

      • multiSearch

        Response multiSearch​(java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes,
                             java.util.List<java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute>> specialTreatmentAttributes,
                             java.lang.Integer nbEqualAttributes,
                             java.lang.Integer nbMissingAttributes,
                             int max,
                             boolean connected,
                             java.util.List<java.lang.String> attributesFilter)
                      throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Performs a multi search in elastic search (_msearch) based on a list of attributes
        Parameters:
        attributes - the list of requested attribute keys and values
        specialTreatmentAttributes - the list of attribute treatment
        nbEqualAttributes - the number of attributes that must be equal amongst the requested attributes
        nbMissingAttributes - the numer of attributes that must be not present amongst the requested attributes
        max - the maximum of hits for each request
        connected - if true the hits must contain only connected identities
        attributesFilter - the list of attributes that must be included in the response
        Returns:
        a Response
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of error
      • search

        Response search​(java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes,
                        int max,
                        boolean connected,
                        java.util.List<java.lang.String> attributesFilter)
                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Performs a search in elastic search (_search) based on a list of attributes
        Parameters:
        attributes - the list of requested attribute keys and values
        max - the maximum of hits for each request
        connected - if true the hits must contain only connected identities
        attributesFilter - the list of attributes that must be included in the response
        Returns:
        a Response
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • search

        Response search​(java.lang.String customerId,
                        java.util.List<java.lang.String> attributesFilter)
                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Performs a search in elastic search (_search) based on customer ID
        Parameters:
        customerId - the customer ID to find (CUID)
        attributesFilter - the list of attributes that must be included in the response
        Returns:
        a Response
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • searchByConnectionId

        Response searchByConnectionId​(java.lang.String connectionId,
                                      java.util.List<java.lang.String> attributesFilter)
                               throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Performs a search in elastic search (_search) based on customer ID
        Parameters:
        connectionId - the connection ID to find (GUID)
        attributesFilter - the list of attributes that must be included in the response
        Returns:
        a Response
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • search

        Response search​(java.util.List<java.lang.String> customerIds,
                        java.util.List<java.lang.String> attributesFilter)
                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Performs a multi search in elastic search (_msearch) based on a list of customer IDs
        Parameters:
        customerIds - the list of customer IDs to find
        attributesFilter - the list of attributes that must be included in the response
        Returns:
        a Response
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • emptyResponse

        default Response emptyResponse()