Class BibliographicReferenceReadServiceImpl
java.lang.Object
ubic.gemma.persistence.service.common.description.BibliographicReferenceReadServiceImpl
- All Implemented Interfaces:
BibliographicReferenceReadService
@Service("bibliographicReferenceReadService")
@ParametersAreNonnullByDefault
public class BibliographicReferenceReadServiceImpl
extends Object
implements BibliographicReferenceReadService
Implementation of
BibliographicReferenceReadService.
All public methods are @Transactional(readOnly = true). ACL enforcement is the
responsibility of the facade BibliographicReferenceService interface -- this class
is unsecured at the AOP boundary on purpose, so intra-gemma-core callers can
bypass duplicate ACL checks once authenticated.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBibliographicReferenceReadServiceImpl(BibliographicReferenceDao bibliographicReferenceDao, SearchService searchService, ExpressionExperimentService expressionExperimentService) -
Method Summary
Modifier and TypeMethodDescriptionbrowse(int start, int limit) longlongfindAllByExternalId(String id, String databaseName) Retrieve ALL references sharing an identifier (accession + database name), ordered by id ascending.Get 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) Get a reference VO by the unqualified external id.getRelatedExperiments(int offset, int limit) listAll()thaw(Collection<BibliographicReference> bibliographicReferences) thaw(BibliographicReference bibliographicReference)
-
Constructor Details
-
BibliographicReferenceReadServiceImpl
@Autowired public BibliographicReferenceReadServiceImpl(BibliographicReferenceDao bibliographicReferenceDao, SearchService searchService, ExpressionExperimentService expressionExperimentService)
-
-
Method Details
-
browse
- Specified by:
browsein interfaceBibliographicReferenceReadService
-
browse
@Transactional(readOnly=true) public List<BibliographicReference> browse(int start, int limit, String orderField, boolean descending) - Specified by:
browsein interfaceBibliographicReferenceReadService
-
findByExternalId
@Transactional(readOnly=true) public BibliographicReference findByExternalId(DatabaseEntry accession) - Specified by:
findByExternalIdin interfaceBibliographicReferenceReadService
-
findByExternalId
Description copied from interface:BibliographicReferenceReadServiceGet a reference by the unqualified external id. Searches for pubmed by default.- Specified by:
findByExternalIdin interfaceBibliographicReferenceReadService
-
findByExternalId
@Transactional(readOnly=true) public BibliographicReference findByExternalId(String id, String databaseName) Description copied from interface:BibliographicReferenceReadServiceRetrieve a reference by identifier, qualified by the database name (such as 'pubmed').- Specified by:
findByExternalIdin interfaceBibliographicReferenceReadService
-
findAllByExternalId
@Transactional(readOnly=true) public List<BibliographicReference> findAllByExternalId(String id, String databaseName) Description copied from interface:BibliographicReferenceReadServiceRetrieve ALL references sharing an identifier (accession + database name), ordered by id ascending. Usually at most one, but prod has duplicate rows for some accessions; this exposes the whole set for de-duplication.- Specified by:
findAllByExternalIdin interfaceBibliographicReferenceReadService
-
findVOByExternalId
@Nullable @Transactional(readOnly=true) public BibliographicReferenceValueObject findVOByExternalId(String id) Description copied from interface:BibliographicReferenceReadServiceGet a reference VO by the unqualified external id. Searches for pubmed by default.- Specified by:
findVOByExternalIdin interfaceBibliographicReferenceReadService
-
countDistinctWithRelatedExperiments
@Transactional(readOnly=true) public long countDistinctWithRelatedExperiments()- Specified by:
countDistinctWithRelatedExperimentsin interfaceBibliographicReferenceReadService
-
countWithRelatedExperiments
@Transactional(readOnly=true) public long countWithRelatedExperiments()- Specified by:
countWithRelatedExperimentsin interfaceBibliographicReferenceReadService
-
getRelatedExperiments
@Transactional(readOnly=true) public Map<BibliographicReference, Set<ExpressionExperimentIdAndShortName>> getRelatedExperiments(int offset, int limit) - Specified by:
getRelatedExperimentsin interfaceBibliographicReferenceReadService
-
getRelatedExperiments
@Transactional(readOnly=true) public Map<BibliographicReference, Collection<ExpressionExperiment>> getRelatedExperiments(Collection<BibliographicReference> records) - Specified by:
getRelatedExperimentsin interfaceBibliographicReferenceReadService
-
listAll
- Specified by:
listAllin interfaceBibliographicReferenceReadService- Returns:
- all the IDs of bibliographic references in the system.
-
search
@Transactional(readOnly=true) public List<BibliographicReferenceValueObject> search(String query, boolean searchExperiments, boolean searchBibrefs) throws SearchException - Specified by:
searchin interfaceBibliographicReferenceReadService- Throws:
SearchException
-
search
@Transactional(readOnly=true) public List<BibliographicReferenceValueObject> search(String query) throws SearchException - Specified by:
searchin interfaceBibliographicReferenceReadService- Throws:
SearchException
-
thaw
@Transactional(readOnly=true) public BibliographicReference thaw(BibliographicReference bibliographicReference) - Specified by:
thawin interfaceBibliographicReferenceReadService
-
thaw
@Transactional(readOnly=true) public Collection<BibliographicReference> thaw(Collection<BibliographicReference> bibliographicReferences) - Specified by:
thawin interfaceBibliographicReferenceReadService
-