Skip to content

Commit

Permalink
Index can get public search api status
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Oniszczuk committed Jun 23, 2011
1 parent 9766fad commit 2de01ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/flaptor/indextank/apiclient/Index.java
Expand Up @@ -216,10 +216,13 @@ Map<String, String> listFunctions() throws IndexDoesNotExistException,
String getCode() throws IOException, IndexDoesNotExistException;

Date getCreationTime() throws IOException, IndexDoesNotExistException;

boolean isPublicSearchEnabled() throws IOException, IndexDoesNotExistException;

void refreshMetadata() throws IOException, IndexDoesNotExistException;

Map<String, Object> getMetadata() throws IOException,
IndexDoesNotExistException;


}
Expand Up @@ -1064,6 +1064,11 @@ public Date getCreationTime() throws IOException,
}
}

@Override
public boolean isPublicSearchEnabled() throws IOException, IndexDoesNotExistException {
return (Boolean)getMetadata().get("public_search");
}

@Override
public void refreshMetadata() throws IOException,
IndexDoesNotExistException {
Expand Down

0 comments on commit 2de01ec

Please sign in to comment.