public class TopicMapTopicIndex extends Object implements TopicIndexIF
Modifier and Type | Field and Description |
---|---|
protected String |
editBaseuri |
protected String |
tmid |
protected TopicMapIF |
topicmap |
protected String |
viewBaseuri |
Constructor and Description |
---|
TopicMapTopicIndex(TopicMapIF topicmap,
String editBaseuri,
String viewBaseuri,
String tmid) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Lets go of any underlying resources used by the index.
|
Collection<TopicPage> |
getTopicPages(Collection<LocatorIF> indicators,
Collection<LocatorIF> sources,
Collection<LocatorIF> subjects)
Returns all known topic pages for the topics whose identity
matches one of the locators passed as arguments.
|
TopicPages |
getTopicPages2(Collection<LocatorIF> indicators,
Collection<LocatorIF> sources,
Collection<LocatorIF> subjects)
Returns all known topic pages for the topics whose identity
matches one of the locators passed as arguments.
|
Collection<TopicIF> |
getTopics(Collection<LocatorIF> indicators,
Collection<LocatorIF> sources,
Collection<LocatorIF> subjects)
Returns all topics the index knows about whose identity matches
one the of the locators passed as arguments.
|
Collection<TopicIF> |
loadRelatedTopics(Collection<LocatorIF> indicators,
Collection<LocatorIF> sources,
Collection<LocatorIF> subjects,
boolean two_step) |
protected TopicMapIF topicmap
protected String editBaseuri
protected String viewBaseuri
protected String tmid
public TopicMapTopicIndex(TopicMapIF topicmap, String editBaseuri, String viewBaseuri, String tmid)
editBaseuri
- a URL of the form
http://whatever/omnigator/stuff.jsp?tmid=%tmid%&id=%topicid% Note
that the %key% tokens are used to build the correct URI.public Collection<TopicIF> getTopics(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects)
TopicIndexIF
getTopics
in interface TopicIndexIF
indicators
- A collection of subject identifiers as
LocatorIF objects.sources
- A collection of source locators as LocatorIF objects.subjects
- A colleciton of subject locators as LocatorIF objects.public Collection<TopicIF> loadRelatedTopics(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects, boolean two_step)
loadRelatedTopics
in interface TopicIndexIF
public Collection<TopicPage> getTopicPages(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects)
TopicIndexIF
getTopicPages
in interface TopicIndexIF
indicators
- A collection of subject identifiers as
LocatorIF objects.sources
- A collection of source locators as LocatorIF objects.subjects
- A colleciton of subject locators as LocatorIF objects.public TopicPages getTopicPages2(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects)
TopicIndexIF
getTopicPages2
in interface TopicIndexIF
indicators
- A collection of subject identifiers as
LocatorIF objects.sources
- A collection of source locators as LocatorIF objects.subjects
- A colleciton of subject locators as LocatorIF objects.public void close()
TopicIndexIF
close
in interface TopicIndexIF