Package ontopoly.sysmodel
Class OntopolyRepository
- java.lang.Object
-
- ontopoly.sysmodel.OntopolyRepository
-
public class OntopolyRepository extends Object
INTERNAL: Represents the system topic map describing all the topic maps in the Ontopoly topic maps repository.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ONTOLOGY_TOPIC_MAP_ID
-
Constructor Summary
Constructors Constructor Description OntopolyRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createOntopolyTopicMap(String sourceId, String name)
INTERNAL: Creates a new Ontopoly topic map, and updates the system topic map accordingly.protected TopicMapRepositoryIF
createTopicMapRepository()
void
deleteTopicMap(String referenceId)
List<TopicMapSource>
getEditableSources()
List<TopicMapReference>
getNonOntopolyTopicMaps()
INTERNAL: Returns an alphabetically sorted list of all the non-Ontopoly topic maps.List<TopicMapReference>
getOntopolyTopicMaps()
INTERNAL: Returns an alphabetically sorted list of all the Ontopoly topic maps.protected String
getSystemTopicMapId()
TopicMapRepositoryIF
getTopicMapRepository()
void
registerOntopolyTopicMap(String referenceId, String name)
INTERNAL: Turns the topic map into an Ontopoly topic map in the repository, but does not actually change the topic map itself.void
unregisterOntopolyTopicMap(String referenceId)
-
-
-
Field Detail
-
ONTOLOGY_TOPIC_MAP_ID
public static final String ONTOLOGY_TOPIC_MAP_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSystemTopicMapId
protected String getSystemTopicMapId()
-
createTopicMapRepository
protected TopicMapRepositoryIF createTopicMapRepository()
-
getTopicMapRepository
public TopicMapRepositoryIF getTopicMapRepository()
-
getOntopolyTopicMaps
public List<TopicMapReference> getOntopolyTopicMaps()
INTERNAL: Returns an alphabetically sorted list of all the Ontopoly topic maps.- Returns:
- a List of TopicMapReference objects
-
getNonOntopolyTopicMaps
public List<TopicMapReference> getNonOntopolyTopicMaps()
INTERNAL: Returns an alphabetically sorted list of all the non-Ontopoly topic maps.- Returns:
- a List of TopicMapReference objects
-
getEditableSources
public List<TopicMapSource> getEditableSources()
-
createOntopolyTopicMap
public String createOntopolyTopicMap(String sourceId, String name)
INTERNAL: Creates a new Ontopoly topic map, and updates the system topic map accordingly.- Returns:
- The reference id of the new topic map
-
deleteTopicMap
public void deleteTopicMap(String referenceId)
-
registerOntopolyTopicMap
public void registerOntopolyTopicMap(String referenceId, String name)
INTERNAL: Turns the topic map into an Ontopoly topic map in the repository, but does not actually change the topic map itself.
-
unregisterOntopolyTopicMap
public void unregisterOntopolyTopicMap(String referenceId)
-
-