com.trackstudio.kernel.manager
Class IndexManager

java.lang.Object
  extended by com.trackstudio.kernel.manager.KernelManager
      extended by com.trackstudio.kernel.manager.IndexManager

public class IndexManager
extends KernelManager


Field Summary
static java.lang.String SCMINDEXDIR
           
static java.lang.String SKIPFLAG
           
static java.lang.String[] SPECIALCHAR
           
static java.lang.String[] SPECIALCHARREPLACE
           
static java.lang.String TASKINDEXDIR
           
static java.lang.String USERINDEXDIR
           
 
Fields inherited from class com.trackstudio.kernel.manager.KernelManager
hu
 
Method Summary
 void addIndexSCMReference(java.util.Map addCollAll, java.lang.String SCMconnectionName)
           
 java.lang.String checkLuceneCharacter(java.lang.String s)
           
 void deleteTask(java.lang.String id)
           
 void deleteUser(java.lang.String id)
           
protected static IndexManager getInstance()
           
 java.util.Map getReferencedTasksForTask(java.lang.String taskId)
           
 java.util.Map getReferencedTasksForUser(java.lang.String userId)
           
 java.util.Map getReferencedUsersForTask(java.lang.String taskId)
           
 java.util.Map getReferencedUsersForUser(java.lang.String userId)
           
 java.lang.String getSCMlastCommit(java.lang.String SCMconnectionName)
           
 java.util.List getSCMreferenceByNumber(DateFormatter df, java.lang.String taskNum, java.lang.String SCMconnectionName)
           
 java.util.List getSCMReferences(DateFormatter df, java.lang.String SCMconnectionName)
           
 void index()
           
 void indexSCM(java.util.Map commits, java.lang.String SCMconnectionName)
           
 void indexSCMlastCommit(java.lang.String SCMconnectionName, java.lang.String lastCommit)
           
 void indexTask(java.lang.String id)
           
 void indexUser(java.lang.String id)
           
 boolean isSCMReferenceExist(java.lang.Object word, java.lang.String connectionName)
           
 void reIndexTask(java.lang.String id)
           
 void reIndexUser(java.lang.String id)
           
 java.util.HashMap search(java.lang.String keyword)
           
 
Methods inherited from class com.trackstudio.kernel.manager.KernelManager
getAcl, getAttachment, getCategory, getEmailType, getFilter, getFind, getIndex, getLicense, getLongText, getMailImport, getMessage, getPrstatus, getRegistration, getReport, getScript, getStep, getTask, getTSInfo, getUdf, getUser, getWorkflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASKINDEXDIR

public static java.lang.String TASKINDEXDIR

USERINDEXDIR

public static java.lang.String USERINDEXDIR

SCMINDEXDIR

public static java.lang.String SCMINDEXDIR

SKIPFLAG

public static java.lang.String SKIPFLAG

SPECIALCHAR

public static java.lang.String[] SPECIALCHAR

SPECIALCHARREPLACE

public static java.lang.String[] SPECIALCHARREPLACE
Method Detail

getInstance

protected static IndexManager getInstance()

index

public void index()
           throws GranException
Throws:
GranException

indexSCM

public void indexSCM(java.util.Map commits,
                     java.lang.String SCMconnectionName)
              throws GranException
Throws:
GranException

search

public java.util.HashMap search(java.lang.String keyword)
                         throws GranException
Throws:
GranException

reIndexTask

public void reIndexTask(java.lang.String id)
                 throws GranException
Throws:
GranException

reIndexUser

public void reIndexUser(java.lang.String id)
                 throws GranException
Throws:
GranException

addIndexSCMReference

public void addIndexSCMReference(java.util.Map addCollAll,
                                 java.lang.String SCMconnectionName)
                          throws GranException
Throws:
GranException

indexTask

public void indexTask(java.lang.String id)
               throws GranException
Throws:
GranException

indexUser

public void indexUser(java.lang.String id)
               throws GranException
Throws:
GranException

indexSCMlastCommit

public void indexSCMlastCommit(java.lang.String SCMconnectionName,
                               java.lang.String lastCommit)
                        throws GranException
Throws:
GranException

deleteTask

public void deleteTask(java.lang.String id)
                throws GranException
Throws:
GranException

deleteUser

public void deleteUser(java.lang.String id)
                throws GranException
Throws:
GranException

isSCMReferenceExist

public boolean isSCMReferenceExist(java.lang.Object word,
                                   java.lang.String connectionName)
                            throws GranException
Throws:
GranException

getSCMlastCommit

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

getSCMReferences

public java.util.List getSCMReferences(DateFormatter df,
                                       java.lang.String SCMconnectionName)
                                throws GranException
Throws:
GranException

getSCMreferenceByNumber

public java.util.List getSCMreferenceByNumber(DateFormatter df,
                                              java.lang.String taskNum,
                                              java.lang.String SCMconnectionName)
                                       throws GranException
Throws:
GranException

getReferencedTasksForTask

public java.util.Map getReferencedTasksForTask(java.lang.String taskId)
                                        throws GranException
Throws:
GranException

getReferencedUsersForTask

public java.util.Map getReferencedUsersForTask(java.lang.String taskId)
                                        throws GranException
Throws:
GranException

getReferencedTasksForUser

public java.util.Map getReferencedTasksForUser(java.lang.String userId)
                                        throws GranException
Throws:
GranException

getReferencedUsersForUser

public java.util.Map getReferencedUsersForUser(java.lang.String userId)
                                        throws GranException
Throws:
GranException

checkLuceneCharacter

public java.lang.String checkLuceneCharacter(java.lang.String s)
                                      throws GranException
Throws:
GranException


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