public abstract class AbstractOntopolyURLReference extends AbstractURLTopicMapReference implements TransactionEventListenerIF
Modifier and Type | Field and Description |
---|---|
protected boolean |
alwaysReindexOnLoad |
protected Set<FulltextImplementationIF> |
ftmanagers |
base_address, duplicate_suppression, indexDirectory, maintainFulltextIndexes, reuse_store, store, url
deleted, id, isopen, listeners, source, title, topic_listeners
Constructor and Description |
---|
AbstractOntopolyURLReference(URL url,
String id,
String title,
LocatorIF base) |
Modifier and Type | Method and Description |
---|---|
void |
close()
PUBLIC: Closes all open stores and the reference itself.
|
void |
delete()
INTERNAL: Deletes the topic map pointed to.
|
void |
deleteFullTextIndex()
PUBLIC: Removes the full-text index of the topicmap if full-text indexing is enabled.
|
boolean |
getAlwaysReindexOnLoad() |
protected abstract TopicMapReaderIF |
getImporter() |
protected long |
getLastModifiedAt(File file) |
protected long |
getLastModifiedAt(URL url) |
protected TopicMapIF |
loadTopicMap(boolean readonly) |
void |
open()
PUBLIC: Opens the reference.
|
void |
reindexFulltextIndex()
PUBLIC: Triggers a full reindexing of the topicmap if full-text indexing is enabled.
|
void |
setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad) |
void |
synchronizeFulltextIndex(TopicMapStoreIF store)
INTERNAL: Synchronizes the underlying fulltext index with the latest
changes in the topic map.
|
void |
transactionAbort(TopicMapTransactionIF transaction) |
void |
transactionCommit(TopicMapTransactionIF transaction) |
createStore, getBaseAddress, getDuplicateSuppression, getIndexDirectory, getMaintainFulltextIndexes, getReuseStore, getURL, setBaseAddress, setDuplicateSuppression, setIndexDirectory, setMaintainFulltextIndexes, setReuseStore, setTopicListeners, toString
addTopicListener, clear, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTitle, storeClosed
protected boolean alwaysReindexOnLoad
protected Set<FulltextImplementationIF> ftmanagers
public void open()
TopicMapReferenceIF
open
in interface TopicMapReferenceIF
open
in class AbstractURLTopicMapReference
protected TopicMapIF loadTopicMap(boolean readonly) throws IOException
loadTopicMap
in class AbstractURLTopicMapReference
IOException
protected long getLastModifiedAt(File file)
protected long getLastModifiedAt(URL url)
public boolean getAlwaysReindexOnLoad()
public void setAlwaysReindexOnLoad(boolean alwaysReindexOnLoad)
public void delete()
AbstractURLTopicMapReference
delete
in interface TopicMapReferenceIF
delete
in class AbstractURLTopicMapReference
public void close()
TopicMapReferenceIF
close
in interface AutoCloseable
close
in interface TopicMapReferenceIF
close
in class AbstractURLTopicMapReference
public void synchronizeFulltextIndex(TopicMapStoreIF store)
public void reindexFulltextIndex()
public void deleteFullTextIndex()
public void transactionCommit(TopicMapTransactionIF transaction)
transactionCommit
in interface TransactionEventListenerIF
public void transactionAbort(TopicMapTransactionIF transaction)
transactionAbort
in interface TransactionEventListenerIF
protected abstract TopicMapReaderIF getImporter() throws IOException
IOException