Class BibliographicReferenceServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<BibliographicReference>
ubic.gemma.persistence.service.AbstractVoEnabledService<BibliographicReference,BibliographicReferenceValueObject>
ubic.gemma.persistence.service.common.description.BibliographicReferenceServiceImpl
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,BaseImmutableService<BibliographicReference>,BaseReadOnlyService<BibliographicReference>,BaseService<BibliographicReference>,BaseVoEnabledService<BibliographicReference,,BibliographicReferenceValueObject> BibliographicReferenceService
@Service
@ParametersAreNonnullByDefault
public class BibliographicReferenceServiceImpl
extends AbstractVoEnabledService<BibliographicReference,BibliographicReferenceValueObject>
implements BibliographicReferenceService, org.springframework.beans.factory.InitializingBean
Implementation of BibliographicReferenceService.
Note: This is only in Core because it uses SearchService, but it could be refactored.
- Author:
- keshav
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log -
Constructor Summary
ConstructorsConstructorDescriptionBibliographicReferenceServiceImpl(BibliographicReferenceDao bibliographicReferenceDao) -
Method Summary
Modifier and TypeMethodDescriptionvoidbrowse(int start, int limit) longGet 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 by the unqualified external id.getAllExperimentLinkedReferences(int offset, int limit) Return all the BibRefs that are linked to ExpressionExperiments.Get the ExpressionExperiments, if any, that are linked to the given reference.listAll()Loads value objects representing all the entities of specific type.search(SearchSettingsValueObject settings) thaw(Collection<BibliographicReference> bibliographicReferences) thaw(BibliographicReference bibliographicReference) Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledService
loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface ubic.gemma.persistence.service.common.description.BibliographicReferenceService
create, find, findOrCreate, remove
-
Constructor Details
-
BibliographicReferenceServiceImpl
@Autowired public BibliographicReferenceServiceImpl(BibliographicReferenceDao bibliographicReferenceDao)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
loadValueObject
@Transactional(readOnly=true) public BibliographicReferenceValueObject loadValueObject(BibliographicReference entity) - Specified by:
loadValueObjectin interfaceBaseVoEnabledService<BibliographicReference,BibliographicReferenceValueObject> - Overrides:
loadValueObjectin classAbstractVoEnabledService<BibliographicReference,BibliographicReferenceValueObject> - See Also:
-
loadAllValueObjects
Description copied from interface:BaseVoEnabledServiceLoads value objects representing all the entities of specific type.- Specified by:
loadAllValueObjectsin interfaceBaseVoEnabledService<BibliographicReference,BibliographicReferenceValueObject> - Overrides:
loadAllValueObjectsin classAbstractVoEnabledService<BibliographicReference,BibliographicReferenceValueObject> - Returns:
- a collection of value objects
-
browse
- Specified by:
browsein interfaceBibliographicReferenceService
-
browse
@Transactional(readOnly=true) public List<BibliographicReference> browse(int start, int limit, String orderField, boolean descending) - Specified by:
browsein interfaceBibliographicReferenceService
-
findByExternalId
@Transactional(readOnly=true) public BibliographicReference findByExternalId(DatabaseEntry accession) - Specified by:
findByExternalIdin interfaceBibliographicReferenceService
-
findByExternalId
Description copied from interface:BibliographicReferenceServiceGet a reference by the unqualified external id.- Specified by:
findByExternalIdin interfaceBibliographicReferenceService- Parameters:
id- id- Returns:
- reference
-
findByExternalId
Description copied from interface:BibliographicReferenceServiceRetrieve a reference by identifier, qualified by the database name (such as 'pubmed').- Specified by:
findByExternalIdin interfaceBibliographicReferenceService- Parameters:
id- iddatabaseName- db name- Returns:
- reference
-
findVOByExternalId
@Transactional(readOnly=true) public BibliographicReferenceValueObject findVOByExternalId(String id) Description copied from interface:BibliographicReferenceServiceGet a reference by the unqualified external id. Searches for pubmed by default
- Specified by:
findVOByExternalIdin interfaceBibliographicReferenceService- Parameters:
id- id- Returns:
- reference VO
- See Also:
-
countExperimentLinkedReferences
@Transactional(readOnly=true) public long countExperimentLinkedReferences()- Specified by:
countExperimentLinkedReferencesin interfaceBibliographicReferenceService
-
getAllExperimentLinkedReferences
@Transactional(readOnly=true) public Map<BibliographicReference,Set<ExpressionExperiment>> getAllExperimentLinkedReferences(int offset, int limit) Description copied from interface:BibliographicReferenceServiceReturn all the BibRefs that are linked to ExpressionExperiments.- Specified by:
getAllExperimentLinkedReferencesin interfaceBibliographicReferenceService- Returns:
- all references with EEs
-
getRelatedExperiments
@Transactional(readOnly=true) public Collection<ExpressionExperiment> getRelatedExperiments(BibliographicReference bibRef) Description copied from interface:BibliographicReferenceServiceGet the ExpressionExperiments, if any, that are linked to the given reference.- Specified by:
getRelatedExperimentsin interfaceBibliographicReferenceService- Parameters:
bibRef- reference- Returns:
- datasets
-
getRelatedExperiments
@Transactional(readOnly=true) public Map<BibliographicReference,Collection<ExpressionExperiment>> getRelatedExperiments(Collection<BibliographicReference> records) - Specified by:
getRelatedExperimentsin interfaceBibliographicReferenceService
-
listAll
- Specified by:
listAllin interfaceBibliographicReferenceService- Returns:
- all the IDs of bibliographic references in the system.
-
refresh
- Specified by:
refreshin interfaceBibliographicReferenceService
-
search
@Transactional(readOnly=true) public List<BibliographicReferenceValueObject> search(SearchSettingsValueObject settings) throws SearchException - Specified by:
searchin interfaceBibliographicReferenceService- Throws:
SearchException
-
search
@Transactional(readOnly=true) public List<BibliographicReferenceValueObject> search(String query) throws SearchException - Specified by:
searchin interfaceBibliographicReferenceService- Throws:
SearchException
-
thaw
@Transactional(readOnly=true) public BibliographicReference thaw(BibliographicReference bibliographicReference) - Specified by:
thawin interfaceBibliographicReferenceService
-
thaw
@Transactional(readOnly=true) public Collection<BibliographicReference> thaw(Collection<BibliographicReference> bibliographicReferences) - Specified by:
thawin interfaceBibliographicReferenceService
-