Package org.intermine.api.search
Class UserRepository
- java.lang.Object
-
- org.intermine.api.search.SearchRepository
-
- org.intermine.api.search.UserRepository
-
- All Implemented Interfaces:
WebSearchWatcher
- Direct Known Subclasses:
GlobalRepository
public class UserRepository extends SearchRepository
A repository for searching the searchable items of a single user.- Author:
- Alex Kalderimis.
-
-
Field Summary
-
Fields inherited from class org.intermine.api.search.SearchRepository
GLOBALS, indexes, profile, searchItems, tagManager
-
-
Constructor Summary
Constructors Constructor Description UserRepository(Profile profile)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleCreation(CreationEvent e)
Respond in some way to the creation of a web searchable object.protected void
handleDeletion(DeletionEvent e)
Respond in some way to the deletion of a web searchable object.protected void
handleMassTagging()
Respond to the fact that multiple tags have been added and that we do not know what they are.protected void
handlePropertyChange(PropertyChangeEvent e)
Respond in some way to the change in the properties of a web searchable object.protected void
handleTagAddition(TaggingEvent e)
Respond in some way to the addition of a tag to a web searchable object.protected void
handleTagRemoval(TaggingEvent e)
Respond in some way to the removal of a tag from a web searchable object.protected void
populateSearchItems()
Collect the search items we are interested in initially.void
updateUserRepositoryWithSharedBags()
Update the user repository with the shared bags-
Methods inherited from class org.intermine.api.search.SearchRepository
addGlobalRepository, dropIndex, getGlobalSearchRepositories, getGlobalSearchRepository, getProfile, getSearchIndex, getSearchItems, getWebSearchableMap, receiveEvent, startListening, stopListening
-
-
-
-
Constructor Detail
-
UserRepository
public UserRepository(Profile profile)
Constructor.- Parameters:
profile
- The profile of the user whose data we are indexing.
-
-
Method Detail
-
handleCreation
protected void handleCreation(CreationEvent e)
Description copied from class:SearchRepository
Respond in some way to the creation of a web searchable object.- Specified by:
handleCreation
in classSearchRepository
- Parameters:
e
- The notification of the change event.
-
handleDeletion
protected void handleDeletion(DeletionEvent e)
Description copied from class:SearchRepository
Respond in some way to the deletion of a web searchable object.- Specified by:
handleDeletion
in classSearchRepository
- Parameters:
e
- The notification of the change event.
-
handlePropertyChange
protected void handlePropertyChange(PropertyChangeEvent e)
Description copied from class:SearchRepository
Respond in some way to the change in the properties of a web searchable object.- Specified by:
handlePropertyChange
in classSearchRepository
- Parameters:
e
- The notification of the change event.
-
handleTagAddition
protected void handleTagAddition(TaggingEvent e)
Description copied from class:SearchRepository
Respond in some way to the addition of a tag to a web searchable object.- Specified by:
handleTagAddition
in classSearchRepository
- Parameters:
e
- The notification of the change event.
-
handleTagRemoval
protected void handleTagRemoval(TaggingEvent e)
Description copied from class:SearchRepository
Respond in some way to the removal of a tag from a web searchable object.- Specified by:
handleTagRemoval
in classSearchRepository
- Parameters:
e
- The notification of the change event.
-
populateSearchItems
protected void populateSearchItems()
Description copied from class:SearchRepository
Collect the search items we are interested in initially. The profile associated with this repository is a good place to start looking, but each implementation may decide it is interested in a different subset of the available objects.- Specified by:
populateSearchItems
in classSearchRepository
-
handleMassTagging
protected void handleMassTagging()
Description copied from class:SearchRepository
Respond to the fact that multiple tags have been added and that we do not know what they are.- Specified by:
handleMassTagging
in classSearchRepository
-
updateUserRepositoryWithSharedBags
public void updateUserRepositoryWithSharedBags()
Update the user repository with the shared bags
-
-