Class IdentitySearcher

    • Constructor Detail

      • IdentitySearcher

        public IdentitySearcher​(String strServerUrl,
                                String strLogin,
                                String strPassword)
      • IdentitySearcher

        public IdentitySearcher​(String strServerUrl)
    • Method Detail

      • multiSearch

        public Response multiSearch​(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes,
                                    List<List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute>> specialTreatmentAttributes,
                                    Integer nbEqualAttributes,
                                    Integer nbMissingAttributes,
                                    int max,
                                    boolean connected,
                                    List<String> attributesFilter)
                             throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IIdentitySearcher
        Performs a multi search in elastic search (_msearch) based on a list of attributes
        Specified by:
        multiSearch in interface IIdentitySearcher
        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

        public Response search​(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes,
                               int max,
                               boolean connected,
                               List<String> attributesFilter)
                        throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IIdentitySearcher
        Performs a search in elastic search (_search) based on a list of attributes
        Specified by:
        search in interface IIdentitySearcher
        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

        public Response search​(String customerId,
                               List<String> attributesFilter)
                        throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IIdentitySearcher
        Performs a search in elastic search (_search) based on customer ID
        Specified by:
        search in interface IIdentitySearcher
        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

        public Response searchByConnectionId​(String connectionId,
                                             List<String> attributesFilter)
                                      throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IIdentitySearcher
        Performs a search in elastic search (_search) based on customer ID
        Specified by:
        searchByConnectionId in interface IIdentitySearcher
        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

        public Response search​(List<String> customerIds,
                               List<String> attributesFilter)
                        throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IIdentitySearcher
        Performs a multi search in elastic search (_msearch) based on a list of customer IDs
        Specified by:
        search in interface IIdentitySearcher
        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