Class IdentitySearcher
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.indexer.elastic.search.service.IdentitySearcher
-
- All Implemented Interfaces:
IIdentitySearcher
public class IdentitySearcher extends Object implements IIdentitySearcher
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTITYSTORE_SEARCH_OFFSET
-
Constructor Summary
Constructors Constructor Description IdentitySearcher(String strServerUrl)IdentitySearcher(String strServerUrl, String strLogin, String strPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)Perform a multi search by generating several requests according to parameters.Responsesearch(String customerId)Responsesearch(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, int max, boolean connected)Responsesearch(List<String> customerId)-
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 String IDENTITYSTORE_SEARCH_OFFSET
- See Also:
- Constant Field Values
-
-
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) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Perform a multi search by generating several requests according to parameters.- Specified by:
multiSearchin interfaceIIdentitySearcher- Parameters:
attributes- the complete list ofSearchAttributedefined in the client requestspecialTreatmentAttributes- a list of particular treatment on given attributes over attributes paramnbEqualAttributes- number of attributes that must be strictly equalnbMissingAttributes- number of attributes that can be missingmax- maximum number of identities in the responseconnected- search for a connectedIdentityDtoif true- Returns:
- a list of
IdentityDtomatching the requests - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
search
public Response search(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, int max, boolean connected) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Specified by:
searchin interfaceIIdentitySearcher- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
search
public Response search(String customerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Specified by:
searchin interfaceIIdentitySearcher- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
search
public Response search(List<String> customerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Specified by:
searchin interfaceIIdentitySearcher- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
-