Class IdentitySearcher
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.indexer.elastic.search.service.IdentitySearcher
-
- All Implemented Interfaces:
IIdentitySearcher
public class IdentitySearcher extends java.lang.Object implements IIdentitySearcher
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDENTITYSTORE_SEARCH_OFFSET
-
Constructor Summary
Constructors Constructor Description IdentitySearcher(java.lang.String strServerUrl)IdentitySearcher(java.lang.String strServerUrl, java.lang.String strLogin, java.lang.String strPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsemultiSearch(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 attributesResponsesearch(java.lang.String customerId, java.util.List<java.lang.String> attributesFilter)Performs a search in elastic search (_search) based on customer IDResponsesearch(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 attributesResponsesearch(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 IDsResponsesearchByConnectionId(java.lang.String connectionId, java.util.List<java.lang.String> attributesFilter)Performs a search in elastic search (_search) based on customer ID-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.identitystore.service.indexer.elastic.search.service.IIdentitySearcher
emptyResponse
-
-
-
-
Field Detail
-
IDENTITYSTORE_SEARCH_OFFSET
public static final java.lang.String IDENTITYSTORE_SEARCH_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
multiSearch
public 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
Description copied from interface:IIdentitySearcherPerforms a multi search in elastic search (_msearch) based on a list of attributes- Specified by:
multiSearchin interfaceIIdentitySearcher- 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
public 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
Description copied from interface:IIdentitySearcherPerforms a search in elastic search (_search) based on a list of attributes- Specified by:
searchin interfaceIIdentitySearcher- 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
public Response search(java.lang.String customerId, java.util.List<java.lang.String> attributesFilter) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Description copied from interface:IIdentitySearcherPerforms a search in elastic search (_search) based on customer ID- Specified by:
searchin interfaceIIdentitySearcher- 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(java.lang.String connectionId, java.util.List<java.lang.String> attributesFilter) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Description copied from interface:IIdentitySearcherPerforms a search in elastic search (_search) based on customer ID- Specified by:
searchByConnectionIdin interfaceIIdentitySearcher- 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(java.util.List<java.lang.String> customerIds, java.util.List<java.lang.String> attributesFilter) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Description copied from interface:IIdentitySearcherPerforms a multi search in elastic search (_msearch) based on a list of customer IDs- Specified by:
searchin interfaceIIdentitySearcher- 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
-
-