remove Adaptor example src from AdAdaptor body
diff --git a/lib/plexi b/lib/plexi
index 41b3ada..da77848 160000
--- a/lib/plexi
+++ b/lib/plexi
@@ -1 +1 @@
-Subproject commit 41b3ada5814e0b634f5cdbc0fcf053a0a4f48f91
+Subproject commit da778484c2ac0a28ddbc9d8b959af220ab8695cc
diff --git a/src/com/google/enterprise/adaptor/ad/AdAdaptor.java b/src/com/google/enterprise/adaptor/ad/AdAdaptor.java
index 458d085..8b81230 100644
--- a/src/com/google/enterprise/adaptor/ad/AdAdaptor.java
+++ b/src/com/google/enterprise/adaptor/ad/AdAdaptor.java
@@ -25,40 +25,23 @@
import java.util.*;
import java.util.logging.Logger;
-/**
- * Adaptor for Active Directory.
- */
+/** Adaptor for Active Directory. */
public class AdAdaptor extends AbstractAdaptor {
private static final Logger log
= Logger.getLogger(AdAdaptor.class.getName());
private Charset encoding = Charset.forName("UTF-8");
+ private static final boolean CASE_SENSITIVE = false;
/** Gives list of document ids that you'd like on the GSA. */
@Override
public void getDocIds(DocIdPusher pusher) throws InterruptedException {
- ArrayList<DocId> mockDocIds = new ArrayList<DocId>();
- /* Replace this mock data with code that lists your repository. */
- mockDocIds.add(new DocId("1001"));
- mockDocIds.add(new DocId("1002"));
- pusher.pushDocIds(mockDocIds);
+ pusher.pushGroupDefinitions(null, CASE_SENSITIVE);
}
- /** Gives the bytes of a document referenced with id. */
+ /** This adaptor does not serve documents. */
@Override
public void getDocContent(Request req, Response resp) throws IOException {
- DocId id = req.getDocId();
- String str;
- if ("1001".equals(id.getUniqueId())) {
- str = "Document 1001 says hello and apple orange";
- } else if ("1002".equals(id.getUniqueId())) {
- str = "Document 1002 says hello and banana strawberry";
- } else {
- resp.respondNotFound();
- return;
- }
- resp.setContentType("text/plain; charset=utf-8");
- OutputStream os = resp.getOutputStream();
- os.write(str.getBytes(encoding));
+ resp.respondNotFound();
}
/** Call default main for adaptors. */