Add REST endpoint to reindex a single group

This may become handy to fix single groups that are stale in the
index.

Change-Id: Iab3711f343fe1da9bba4979792edc83c76d75a09
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2017-01-04 14:22:02 +01:00
parent bad459177b
commit 4550a256cb
7 changed files with 153 additions and 0 deletions

View File

@@ -143,6 +143,15 @@ public interface GroupApi {
*/
List<? extends GroupAuditEventInfo> auditLog() throws RestApiException;
/**
* Reindexes the group.
*
* Only supported for internal groups.
*
* @throws RestApiException
*/
void index() throws RestApiException;
/**
* A default implementation which allows source compatibility
* when adding new methods to the interface.
@@ -239,5 +248,10 @@ public interface GroupApi {
throws RestApiException {
throw new NotImplementedException();
}
@Override
public void index() {
throw new NotImplementedException();
}
}
}