public class SubjectIdentityCache extends AbstractSubjectIdentityCache implements Serializable
AbstractSubjectIdentityCache.EventHandler
Modifier and Type | Field and Description |
---|---|
protected CollectionFactoryIF |
cfactory |
protected long |
counter |
protected Map<String,TMObject> |
id_objects |
protected Map<LocatorIF,TMObjectIF> |
source_locators |
protected Map<LocatorIF,TopicIF> |
subject_indicators |
protected Map<LocatorIF,TopicIF> |
subjects |
protected TopicMapTransactionIF |
txn |
handlers
Constructor and Description |
---|
SubjectIdentityCache(TopicMapTransactionIF txn,
CollectionFactoryIF cfactory) |
processEvent, registerListeners
protected TopicMapTransactionIF txn
protected CollectionFactoryIF cfactory
protected long counter
protected Map<LocatorIF,TMObjectIF> source_locators
public SubjectIdentityCache(TopicMapTransactionIF txn, CollectionFactoryIF cfactory)
public void refresh()
public TMObjectIF getObjectById(String object_id)
getObjectById
in class AbstractSubjectIdentityCache
public TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
getObjectByItemIdentifier
in class AbstractSubjectIdentityCache
public TopicIF getTopicBySubjectLocator(LocatorIF locator)
getTopicBySubjectLocator
in class AbstractSubjectIdentityCache
public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
getTopicBySubjectIdentifier
in class AbstractSubjectIdentityCache
public Collection<LocatorIF> getItemIdentifiers()
public Collection<LocatorIF> getSubjectIdentifiers()
protected TMObjectIF _getObjectByItemIdentifier(LocatorIF source_locator)
_getObjectByItemIdentifier
in class AbstractSubjectIdentityCache
protected void registerSourceLocator(LocatorIF source_locator, TMObjectIF object)
registerSourceLocator
in class AbstractSubjectIdentityCache
protected void unregisterSourceLocator(LocatorIF source_locator)
unregisterSourceLocator
in class AbstractSubjectIdentityCache
protected TopicIF _getTopicBySubjectIdentifier(LocatorIF subject_indicator)
_getTopicBySubjectIdentifier
in class AbstractSubjectIdentityCache
protected void registerSubjectIndicator(LocatorIF subject_indicator, TopicIF object)
registerSubjectIndicator
in class AbstractSubjectIdentityCache
protected void unregisterSubjectIndicator(LocatorIF subject_indicator)
unregisterSubjectIndicator
in class AbstractSubjectIdentityCache
protected TopicIF _getTopicBySubjectLocator(LocatorIF subject)
_getTopicBySubjectLocator
in class AbstractSubjectIdentityCache
protected void registerSubject(LocatorIF subject, TopicIF object)
registerSubject
in class AbstractSubjectIdentityCache
protected void unregisterSubject(LocatorIF subject)
unregisterSubject
in class AbstractSubjectIdentityCache
protected void registerObject(TMObjectIF o)
registerObject
in class AbstractSubjectIdentityCache
protected void unregisterObject(TMObjectIF o)
unregisterObject
in class AbstractSubjectIdentityCache