biz.hammurapi.web.analysis
Class AnalysisTermSource
java.lang.Object
biz.hammurapi.web.analysis.AnalysisTermSource
- All Implemented Interfaces:
- TermSource
- public class AnalysisTermSource
- extends java.lang.Object
- implements TermSource
|
Constructor Summary |
AnalysisTermSource(int glossaryId,
biz.hammurapi.sql.SQLProcessor processor,
biz.hammurapi.sql.IdentityManager identityManager,
boolean createTerms,
boolean readOnlyView)
|
AnalysisTermSource(int glossaryId,
biz.hammurapi.sql.SQLProcessor processor,
biz.hammurapi.sql.IdentityManager identityManager,
boolean createTerms,
boolean readOnlyView,
java.util.Set idSet)
|
|
Method Summary |
void |
addTerm(AnalysisTermEx term)
Adds term to term cache. |
void |
addTerms(java.util.Collection terms)
Adds collection of terms to term cache. |
java.util.Map |
getGroupedRootTerms()
|
java.lang.Object |
getTerm(java.lang.String namespace,
java.lang.String term,
java.lang.String text)
|
java.util.Collection |
getTerms()
|
void |
loadTerms()
Pre-loads root terms from the database for given glossary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnalysisTermSource
public AnalysisTermSource(int glossaryId,
biz.hammurapi.sql.SQLProcessor processor,
biz.hammurapi.sql.IdentityManager identityManager,
boolean createTerms,
boolean readOnlyView,
java.util.Set idSet)
AnalysisTermSource
public AnalysisTermSource(int glossaryId,
biz.hammurapi.sql.SQLProcessor processor,
biz.hammurapi.sql.IdentityManager identityManager,
boolean createTerms,
boolean readOnlyView)
getTerm
public java.lang.Object getTerm(java.lang.String namespace,
java.lang.String term,
java.lang.String text)
- Specified by:
getTerm in interface TermSource
- Parameters:
namespace - Term namespace, optional.term - Term name. Mandatory.text - Alternative text. Optional.
- Returns:
- Term
addTerm
public void addTerm(AnalysisTermEx term)
- Adds term to term cache.
- Parameters:
term -
addTerms
public void addTerms(java.util.Collection terms)
- Adds collection of terms to term cache.
- Parameters:
terms -
loadTerms
public void loadTerms()
- Pre-loads root terms from the database for given glossary
getTerms
public java.util.Collection getTerms()
getGroupedRootTerms
public java.util.Map getGroupedRootTerms()
- Returns:
- Root terms grouped by namespaces and then by category and then by first letter
Copyright © 2006 Hammurapi Group. All Rights Reserved.