Interface BibliographicReferenceService
-
- All Superinterfaces:
BaseImmutableService<BibliographicReference>,BaseReadOnlyService<BibliographicReference>,BaseVoEnabledService<BibliographicReference,BibliographicReferenceValueObject>
- All Known Implementing Classes:
BibliographicReferenceServiceImpl
@ParametersAreNonnullByDefault public interface BibliographicReferenceService extends BaseImmutableService<BibliographicReference>, BaseVoEnabledService<BibliographicReference,BibliographicReferenceValueObject>
- Author:
- kelsey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<BibliographicReference>browse(int start, int limit)List<BibliographicReference>browse(int start, int limit, String orderField, boolean descending)BibliographicReferencecreate(BibliographicReference bibliographicReference)Creates the given entity in the persistent storage.BibliographicReferencefind(BibliographicReference bibliographicReference)check to see if the object already existsBibliographicReferencefindByExternalId(String id)Get a reference by the unqualified external id.BibliographicReferencefindByExternalId(String id, String databaseName)Retrieve a reference by identifier, qualified by the database name (such as 'pubmed').BibliographicReferencefindByExternalId(DatabaseEntry accession)BibliographicReferencefindOrCreate(BibliographicReference BibliographicReference)Does a search for the entity in the persistent storage, and if not found, creates it.BibliographicReferenceValueObjectfindVOByExternalId(String id)Get a reference by the unqualified external id.Map<ExpressionExperiment,BibliographicReference>getAllExperimentLinkedReferences()Return all the BibRefs that are linked to ExpressionExperiments.Map<BibliographicReference,Collection<ExpressionExperiment>>getRelatedExperiments(Collection<BibliographicReference> records)Collection<ExpressionExperiment>getRelatedExperiments(BibliographicReference bibliographicReference)Get the ExpressionExperiments, if any, that are linked to the given reference.Collection<Long>listAll()BibliographicReferencerefresh(String pubMedId)voidremove(BibliographicReference BibliographicReference)Removes the given entity from the persistent storage.List<BibliographicReferenceValueObject>search(String query)List<BibliographicReferenceValueObject>search(SearchSettingsValueObject settings)Collection<BibliographicReference>thaw(Collection<BibliographicReference> bibliographicReferences)BibliographicReferencethaw(BibliographicReference bibliographicReference)-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
-
-
-
Method Detail
-
browse
List<BibliographicReference> browse(int start, int limit)
-
browse
List<BibliographicReference> browse(int start, int limit, String orderField, boolean descending)
-
find
BibliographicReference find(BibliographicReference bibliographicReference)
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
@Secured("GROUP_USER") BibliographicReference create(BibliographicReference bibliographicReference)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
@Secured("GROUP_ADMIN") void remove(BibliographicReference BibliographicReference)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
BibliographicReference findByExternalId(DatabaseEntry accession)
-
findByExternalId
BibliographicReference findByExternalId(String id)
Get a reference by the unqualified external id.- Parameters:
id- id- Returns:
- reference
-
findByExternalId
BibliographicReference findByExternalId(String id, String databaseName)
Retrieve a reference by identifier, qualified by the database name (such as 'pubmed').- Parameters:
id- iddatabaseName- db name- Returns:
- reference
-
findVOByExternalId
BibliographicReferenceValueObject findVOByExternalId(String id)
Get a reference by the unqualified external id. Searches for pubmed by default
- Parameters:
id- id- Returns:
- reference VO
-
getAllExperimentLinkedReferences
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_MAP_READ"}) Map<ExpressionExperiment,BibliographicReference> getAllExperimentLinkedReferences()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
@Secured("GROUP_ADMIN") BibliographicReference refresh(String pubMedId)
-
search
List<BibliographicReferenceValueObject> search(SearchSettingsValueObject settings) throws SearchException
- Throws:
SearchException
-
search
List<BibliographicReferenceValueObject> search(String query) throws SearchException
- Throws:
SearchException
-
thaw
BibliographicReference thaw(BibliographicReference bibliographicReference)
-
thaw
Collection<BibliographicReference> thaw(Collection<BibliographicReference> bibliographicReferences)
-
-