Interface BibliographicReferenceService
- All Superinterfaces:
BaseImmutableService<BibliographicReference>,BaseReadOnlyService<BibliographicReference>,BaseService<BibliographicReference>,BaseVoEnabledService<BibliographicReference,BibliographicReferenceValueObject>
- All Known Implementing Classes:
BibliographicReferenceServiceImpl
@ParametersAreNonnullByDefault
public interface BibliographicReferenceService
extends BaseService<BibliographicReference>, BaseVoEnabledService<BibliographicReference,BibliographicReferenceValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptionbrowse(int start, int limit) longcreate(BibliographicReference bibliographicReference) Creates the given entity in the persistent storage.find(BibliographicReference bibliographicReference) check to see if the object already existsGet a reference by the unqualified external id.findByExternalId(String id, String databaseName) Retrieve a reference by identifier, qualified by the database name (such as 'pubmed').findByExternalId(DatabaseEntry accession) findOrCreate(BibliographicReference BibliographicReference) Does a search for the entity in the persistent storage, and if not found, creates it.Get a reference by the unqualified external id.getAllExperimentLinkedReferences(int offset, int limit) Return all the BibRefs that are linked to ExpressionExperiments.getRelatedExperiments(BibliographicReference bibliographicReference) Get the ExpressionExperiments, if any, that are linked to the given reference.listAll()voidremove(BibliographicReference BibliographicReference) Removes the given entity from the persistent storage.search(SearchSettingsValueObject settings) thaw(Collection<BibliographicReference> bibliographicReferences) thaw(BibliographicReference bibliographicReference) Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, removeMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update, updateMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Method Details
-
browse
-
browse
-
find
check to see if the object already exists- Specified by:
findin interfaceBaseReadOnlyService<BibliographicReference>- Parameters:
bibliographicReference- reference- Returns:
- reference
-
findOrCreate
@Secured("GROUP_USER") BibliographicReference findOrCreate(BibliographicReference BibliographicReference) Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<BibliographicReference>- Parameters:
BibliographicReference- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<BibliographicReference>- Parameters:
bibliographicReference- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<BibliographicReference>- Parameters:
BibliographicReference- the entity to be removed.
-
findByExternalId
-
findByExternalId
Get a reference by the unqualified external id.- Parameters:
id- id- Returns:
- reference
-
findByExternalId
Retrieve a reference by identifier, qualified by the database name (such as 'pubmed').- Parameters:
id- iddatabaseName- db name- Returns:
- reference
-
findVOByExternalId
Get a reference by the unqualified external id. Searches for pubmed by default
- Parameters:
id- id- Returns:
- reference VO
-
countExperimentLinkedReferences
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") long countExperimentLinkedReferences() -
getAllExperimentLinkedReferences
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Map<BibliographicReference,Set<ExpressionExperiment>> getAllExperimentLinkedReferences(int offset, int limit) Return all the BibRefs that are linked to ExpressionExperiments.- Returns:
- all references with EEs
-
getRelatedExperiments
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<ExpressionExperiment> getRelatedExperiments(BibliographicReference bibliographicReference) Get the ExpressionExperiments, if any, that are linked to the given reference.- Parameters:
bibliographicReference- reference- Returns:
- datasets
-
getRelatedExperiments
Map<BibliographicReference,Collection<ExpressionExperiment>> getRelatedExperiments(Collection<BibliographicReference> records) -
listAll
Collection<Long> listAll()- Returns:
- all the IDs of bibliographic references in the system.
-
refresh
-
search
List<BibliographicReferenceValueObject> search(SearchSettingsValueObject settings) throws SearchException - Throws:
SearchException
-
search
- Throws:
SearchException
-
thaw
-
thaw
-