public class HistoryContext
extends java.lang.Object
| Constructor and Description |
|---|
HistoryContext(org.apache.lucene.search.Query query) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getContext(java.io.File src,
java.lang.String path,
java.io.Writer out,
java.lang.String context)
Obtain the history for the source file src and write out
matching History log entries.
|
boolean |
getContext(java.lang.String filename,
java.lang.String path,
java.util.List<Hit> hits) |
boolean |
getContext(java.lang.String parent,
java.lang.String basename,
java.lang.String path,
java.io.Writer out,
java.lang.String context) |
boolean |
isEmpty() |
public boolean isEmpty()
public boolean getContext(java.lang.String filename,
java.lang.String path,
java.util.List<Hit> hits)
throws HistoryException
HistoryExceptionpublic boolean getContext(java.lang.String parent,
java.lang.String basename,
java.lang.String path,
java.io.Writer out,
java.lang.String context)
throws HistoryException
HistoryExceptionpublic boolean getContext(java.io.File src,
java.lang.String path,
java.io.Writer out,
java.lang.String context)
throws HistoryException
src - the source file represented by path
(SOURCE_ROOT + path)path - the path of the file (rooted at SOURCE_ROOT)out - write destinationcontext - the servlet context path of the application (the path
prefix for URLs)true if at least one line has been written out.HistoryException