com.trackstudio.index
Class DocumentBuilder

java.lang.Object
  extended by com.trackstudio.index.DocumentBuilder
All Implemented Interfaces:
IndexFields

public class DocumentBuilder
extends java.lang.Object
implements IndexFields


Nested Class Summary
static class DocumentBuilder.FoundItem
           
 
Field Summary
 
Fields inherited from interface com.trackstudio.index.IndexFields
ALL_FIELDS, analyzer, ATTACH_ALL_FIELDS, ATTACH_DESC, ATTACH_ID, ATTACH_NAME, REF_BY_TASK_FOR_TASK, REF_BY_TASK_FOR_USER, REF_BY_USER_FOR_TASK, REF_BY_USER_FOR_USER, SCM_INFO, SCM_LAST_COMMIT, SCM_LAST_LABEL, SCM_NAME, SCM_REV, SCM_TASK, TASK_DESC, TASK_ID, TASK_MSGS, TASK_NAME, UDFS, USER_COMPANY, USER_ID, USER_LOGIN, USER_NAME, VER
 
Constructor Summary
DocumentBuilder()
           
 
Method Summary
static org.apache.lucene.document.Document buildAttachment(java.lang.String id, java.lang.String attName, java.lang.String attDescription)
           
static java.lang.String buildLabelForLastIndex(java.lang.String SCMconnectionName)
           
static org.apache.lucene.document.Document buildLastRev(java.lang.String SCMconnectionName, java.lang.String lastCommit)
           
static org.apache.lucene.document.Document buildSCM(CommitListItem<java.lang.String> cli, java.util.List<java.lang.String> tasks, java.lang.String SCMconnectionName)
           
static org.apache.lucene.document.Document buildTask(TaskRelatedInfo tci)
           
static org.apache.lucene.document.Document buildUser(UserRelatedInfo uci)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBuilder

public DocumentBuilder()
Method Detail

buildLastRev

public static org.apache.lucene.document.Document buildLastRev(java.lang.String SCMconnectionName,
                                                               java.lang.String lastCommit)
                                                        throws GranException
Throws:
GranException

buildLabelForLastIndex

public static java.lang.String buildLabelForLastIndex(java.lang.String SCMconnectionName)
                                               throws GranException
Throws:
GranException

buildSCM

public static org.apache.lucene.document.Document buildSCM(CommitListItem<java.lang.String> cli,
                                                           java.util.List<java.lang.String> tasks,
                                                           java.lang.String SCMconnectionName)
                                                    throws GranException
Throws:
GranException

buildAttachment

public static org.apache.lucene.document.Document buildAttachment(java.lang.String id,
                                                                  java.lang.String attName,
                                                                  java.lang.String attDescription)
                                                           throws GranException
Throws:
GranException

buildUser

public static org.apache.lucene.document.Document buildUser(UserRelatedInfo uci)
                                                     throws GranException
Throws:
GranException

buildTask

public static org.apache.lucene.document.Document buildTask(TaskRelatedInfo tci)
                                                     throws GranException
Throws:
GranException


Copyright © 2002-2011 TrackStudio, Ltd. All Rights Reserved.