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.SearchRepositoryGLOBALS, indexes, profile, searchItems, tagManager
 
- 
 - 
Constructor SummaryConstructors Constructor Description UserRepository(Profile profile)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleCreation(CreationEvent e)Respond in some way to the creation of a web searchable object.protected voidhandleDeletion(DeletionEvent e)Respond in some way to the deletion of a web searchable object.protected voidhandleMassTagging()Respond to the fact that multiple tags have been added and that we do not know what they are.protected voidhandlePropertyChange(PropertyChangeEvent e)Respond in some way to the change in the properties of a web searchable object.protected voidhandleTagAddition(TaggingEvent e)Respond in some way to the addition of a tag to a web searchable object.protected voidhandleTagRemoval(TaggingEvent e)Respond in some way to the removal of a tag from a web searchable object.protected voidpopulateSearchItems()Collect the search items we are interested in initially.voidupdateUserRepositoryWithSharedBags()Update the user repository with the shared bags- 
Methods inherited from class org.intermine.api.search.SearchRepositoryaddGlobalRepository, dropIndex, getGlobalSearchRepositories, getGlobalSearchRepository, getProfile, getSearchIndex, getSearchItems, getWebSearchableMap, receiveEvent, startListening, stopListening
 
- 
 
- 
- 
- 
Constructor Detail- 
UserRepositorypublic UserRepository(Profile profile) Constructor.- Parameters:
- profile- The profile of the user whose data we are indexing.
 
 
- 
 - 
Method Detail- 
handleCreationprotected void handleCreation(CreationEvent e) Description copied from class:SearchRepositoryRespond in some way to the creation of a web searchable object.- Specified by:
- handleCreationin class- SearchRepository
- Parameters:
- e- The notification of the change event.
 
 - 
handleDeletionprotected void handleDeletion(DeletionEvent e) Description copied from class:SearchRepositoryRespond in some way to the deletion of a web searchable object.- Specified by:
- handleDeletionin class- SearchRepository
- Parameters:
- e- The notification of the change event.
 
 - 
handlePropertyChangeprotected void handlePropertyChange(PropertyChangeEvent e) Description copied from class:SearchRepositoryRespond in some way to the change in the properties of a web searchable object.- Specified by:
- handlePropertyChangein class- SearchRepository
- Parameters:
- e- The notification of the change event.
 
 - 
handleTagAdditionprotected void handleTagAddition(TaggingEvent e) Description copied from class:SearchRepositoryRespond in some way to the addition of a tag to a web searchable object.- Specified by:
- handleTagAdditionin class- SearchRepository
- Parameters:
- e- The notification of the change event.
 
 - 
handleTagRemovalprotected void handleTagRemoval(TaggingEvent e) Description copied from class:SearchRepositoryRespond in some way to the removal of a tag from a web searchable object.- Specified by:
- handleTagRemovalin class- SearchRepository
- Parameters:
- e- The notification of the change event.
 
 - 
populateSearchItemsprotected void populateSearchItems() Description copied from class:SearchRepositoryCollect 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:
- populateSearchItemsin class- SearchRepository
 
 - 
handleMassTaggingprotected void handleMassTagging() Description copied from class:SearchRepositoryRespond to the fact that multiple tags have been added and that we do not know what they are.- Specified by:
- handleMassTaggingin class- SearchRepository
 
 - 
updateUserRepositoryWithSharedBagspublic void updateUserRepositoryWithSharedBags() Update the user repository with the shared bags
 
- 
 
-