Interface IIdentitySearcher
- All Known Implementing Classes:
IdentitySearcher
public interface IIdentitySearcher
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponsemultiSearch(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) Performs a multi search in elastic search (_msearch) based on a list of attributesPerforms a search in elastic search (_search) based on customer IDsearch(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, int max, boolean connected, List<String> attributesFilter) Performs a search in elastic search (_search) based on a list of attributesPerforms a multi search in elastic search (_msearch) based on a list of customer IDssearchByConnectionId(String connectionId, List<String> attributesFilter) Performs a search in elastic search (_search) based on customer ID
-
Method Details
-
multiSearch
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 Performs a multi search in elastic search (_msearch) based on a list of attributes- Parameters:
attributes- the list of requested attribute keys and valuesspecialTreatmentAttributes- the list of attribute treatmentnbEqualAttributes- the number of attributes that must be equal amongst the requested attributesnbMissingAttributes- the numer of attributes that must be not present amongst the requested attributesmax- the maximum of hits for each requestconnected- if true the hits must contain only connected identitiesattributesFilter- 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(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 Performs a search in elastic search (_search) based on a list of attributes- Parameters:
attributes- the list of requested attribute keys and valuesmax- the maximum of hits for each requestconnected- if true the hits must contain only connected identitiesattributesFilter- 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(String customerId, List<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(String connectionId, List<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(List<String> customerIds, List<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 findattributesFilter- the list of attributes that must be included in the response- Returns:
- a
Response - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
emptyResponse
-