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) longlongcreate(Collection<BibliographicReference> entities) create(BibliographicReference bibliographicReference) 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) Get a reference by the unqualified external id.getRelatedExperiments(int offset, int limit) Return all the BibRefs that are linked to ExpressionExperiments.listAll()voidremove(Collection<BibliographicReference> entities) voidremove(BibliographicReference BibliographicReference) save(Collection<BibliographicReference> entities) save(BibliographicReference entity) thaw(Collection<BibliographicReference> bibliographicReferences) thaw(BibliographicReference bibliographicReference) voidupdate(Collection<BibliographicReference> entities) voidupdate(BibliographicReference entity) Methods 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.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
- See Also:
-
findOrCreate
@Secured("GROUP_USER") BibliographicReference findOrCreate(BibliographicReference BibliographicReference) - Specified by:
findOrCreatein interfaceBaseImmutableService<BibliographicReference>- See Also:
-
create
- Specified by:
createin interfaceBaseImmutableService<BibliographicReference>- See Also:
-
create
@Secured("GROUP_USER") Collection<BibliographicReference> create(Collection<BibliographicReference> entities) - Specified by:
createin interfaceBaseImmutableService<BibliographicReference>- See Also:
-
update
- Specified by:
updatein interfaceBaseService<BibliographicReference>- See Also:
-
update
- Specified by:
updatein interfaceBaseService<BibliographicReference>- See Also:
-
save
- Specified by:
savein interfaceBaseService<BibliographicReference>- See Also:
-
save
@Secured("GROUP_USER") Collection<BibliographicReference> save(Collection<BibliographicReference> entities) - Specified by:
savein interfaceBaseService<BibliographicReference>- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<BibliographicReference>- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<BibliographicReference>- See Also:
-
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
-
countDistinctWithRelatedExperiments
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") long countDistinctWithRelatedExperiments() -
countWithRelatedExperiments
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") long countWithRelatedExperiments() -
getRelatedExperiments
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Map<BibliographicReference,Set<ExpressionExperimentIdAndShortName>> getRelatedExperiments(int offset, int limit) Return all the BibRefs that are linked to ExpressionExperiments.- Returns:
- all references with EEs
-
getRelatedExperiments
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") 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(String query, boolean searchExperiments, boolean searchBibrefs) throws SearchException - Throws:
SearchException
-
search
- Throws:
SearchException
-
thaw
-
thaw
-