public class DirectoryUserIndexer extends Object implements UserIndexer
ACTIVE, DIRECTORY_ID, DISPLAY_NAME, EMAIL, EXACT_DISPLAY_NAME, EXACT_EMAIL, EXACT_USER_NAME, FIELD_NAME_TO_EXACT_FIELD_NAME_MAP, INTERNAL_ID, USER_NAME
Constructor and Description |
---|
DirectoryUserIndexer(org.apache.lucene.store.Directory directory,
org.apache.lucene.analysis.Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
void |
deindex(UserId... userIds) |
void |
deindexById(long... internalUserIds) |
void |
deindexByUserName(String... userNames) |
void |
index(OfBizUser... users) |
void |
replaceAllUsers(java.util.function.Consumer<java.util.function.Consumer<OfBizUser>> allUsersConsumerMaker) |
List<com.atlassian.crowd.embedded.api.User> |
search(org.apache.lucene.search.Query query,
int skip,
int limit,
org.apache.lucene.search.Sort sort) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exactMatchFieldName
public DirectoryUserIndexer(org.apache.lucene.store.Directory directory, org.apache.lucene.analysis.Analyzer analyzer)
public void replaceAllUsers(java.util.function.Consumer<java.util.function.Consumer<OfBizUser>> allUsersConsumerMaker)
replaceAllUsers
in interface UserIndexer
public void index(OfBizUser... users)
index
in interface UserIndexer
public void deindex(UserId... userIds)
deindex
in interface UserIndexer
public void deindexById(long... internalUserIds)
deindexById
in interface UserIndexer
public void deindexByUserName(String... userNames)
deindexByUserName
in interface UserIndexer
public List<com.atlassian.crowd.embedded.api.User> search(org.apache.lucene.search.Query query, int skip, int limit, org.apache.lucene.search.Sort sort)
search
in interface UserIndexer
Copyright © 2002-2019 Atlassian. All Rights Reserved.