net.ontopia.topicmaps.utils.tmrap
Class TopicMapTopicIndex

java.lang.Object
  extended by net.ontopia.topicmaps.utils.tmrap.TopicMapTopicIndex
All Implemented Interfaces:
IndexIF, TopicIndexIF

public class TopicMapTopicIndex
extends java.lang.Object
implements TopicIndexIF

EXPERIMENTAL: An implementation that looks up topics in all the given topic map.


Field Summary
protected  java.lang.String editBaseuri
           
protected  StringifierIF strify
           
protected  java.lang.String tmid
           
protected  TopicMapIF topicmap
           
protected  java.lang.String viewBaseuri
           
 
Constructor Summary
TopicMapTopicIndex(TopicMapIF topicmap, java.lang.String editBaseuri, java.lang.String viewBaseuri, java.lang.String tmid)
           
 
Method Summary
 void close()
          Lets go of any underlying resources used by the index.
 java.util.Collection getTopicPages(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects)
          Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.
 TopicPages getTopicPages2(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects)
          Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.
 java.util.Collection getTopics(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects)
          Returns all topics the index knows about whose identity matches one the of the locators passed as arguments.
 java.util.Collection loadRelatedTopics(java.util.Collection indicators, java.util.Collection sources, java.util.Collection subjects, boolean two_step)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicmap

protected TopicMapIF topicmap

editBaseuri

protected java.lang.String editBaseuri

viewBaseuri

protected java.lang.String viewBaseuri

strify

protected StringifierIF strify

tmid

protected java.lang.String tmid
Constructor Detail

TopicMapTopicIndex

public TopicMapTopicIndex(TopicMapIF topicmap,
                          java.lang.String editBaseuri,
                          java.lang.String viewBaseuri,
                          java.lang.String tmid)
Parameters:
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.
Method Detail

getTopics

public java.util.Collection getTopics(java.util.Collection indicators,
                                      java.util.Collection sources,
                                      java.util.Collection subjects)
Description copied from interface: TopicIndexIF
Returns all topics the index knows about whose identity matches one the of the locators passed as arguments.

Specified by:
getTopics in interface TopicIndexIF
Parameters:
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.
Returns:
Collection of TopicIF

loadRelatedTopics

public java.util.Collection loadRelatedTopics(java.util.Collection indicators,
                                              java.util.Collection sources,
                                              java.util.Collection subjects,
                                              boolean two_step)
Specified by:
loadRelatedTopics in interface TopicIndexIF

getTopicPages

public java.util.Collection getTopicPages(java.util.Collection indicators,
                                          java.util.Collection sources,
                                          java.util.Collection subjects)
Description copied from interface: TopicIndexIF
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.

Specified by:
getTopicPages in interface TopicIndexIF
Parameters:
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.
Returns:
Collection of TopicPage

getTopicPages2

public TopicPages getTopicPages2(java.util.Collection indicators,
                                 java.util.Collection sources,
                                 java.util.Collection subjects)
Description copied from interface: TopicIndexIF
Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.

Specified by:
getTopicPages2 in interface TopicIndexIF
Parameters:
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.
Returns:
Collection of TopicPage

close

public void close()
Description copied from interface: TopicIndexIF
Lets go of any underlying resources used by the index. Must be called when used with the RDBMS backend.

Specified by:
close in interface TopicIndexIF


Copyright © 2000-2012 Ontopia.