Class IdentityIndexer
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.indexer.elastic.index.service.IdentityIndexer
-
- All Implemented Interfaces:
IIdentityIndexer
public class IdentityIndexer extends Object implements IIdentityIndexer
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.identitystore.service.indexer.elastic.index.service.IIdentityIndexer
CURRENT_INDEX_ALIAS
-
-
Constructor Summary
Constructors Constructor Description IdentityIndexer(String strServerUrl)IdentityIndexer(String strServerUrl, String strLogin, String strPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbulk(List<BulkAction> bulkActions, String index)voidcreate(IdentityObject identity, String index)voidcreateOrUpdateAlias(String oldIndex, String newIndex, String alias)voiddelete(String documentId, String index)voiddeleteIndex(String index)StringgetIndexBehindAlias(String alias)booleanindexExists(String index)voidinitIndex(String index)booleanisAlive()voidmakeIndexReadOnly(String index)voidupdate(IdentityObject identity, String index)
-
-
-
Method Detail
-
create
public void create(IdentityObject identity, String index)
- Specified by:
createin interfaceIIdentityIndexer
-
bulk
public boolean bulk(List<BulkAction> bulkActions, String index)
- Specified by:
bulkin interfaceIIdentityIndexer
-
update
public void update(IdentityObject identity, String index)
- Specified by:
updatein interfaceIIdentityIndexer
-
delete
public void delete(String documentId, String index)
- Specified by:
deletein interfaceIIdentityIndexer
-
initIndex
public void initIndex(String index) throws ElasticClientException
- Specified by:
initIndexin interfaceIIdentityIndexer- Throws:
ElasticClientException
-
deleteIndex
public void deleteIndex(String index) throws ElasticClientException
- Specified by:
deleteIndexin interfaceIIdentityIndexer- Throws:
ElasticClientException
-
makeIndexReadOnly
public void makeIndexReadOnly(String index) throws ElasticClientException
- Specified by:
makeIndexReadOnlyin interfaceIIdentityIndexer- Throws:
ElasticClientException
-
createOrUpdateAlias
public void createOrUpdateAlias(String oldIndex, String newIndex, String alias)
- Specified by:
createOrUpdateAliasin interfaceIIdentityIndexer
-
getIndexBehindAlias
public String getIndexBehindAlias(String alias)
- Specified by:
getIndexBehindAliasin interfaceIIdentityIndexer
-
isAlive
public boolean isAlive()
- Specified by:
isAlivein interfaceIIdentityIndexer
-
indexExists
public boolean indexExists(String index)
- Specified by:
indexExistsin interfaceIIdentityIndexer
-
-