Class GeoBrowserServiceImpl
- java.lang.Object
-
- ubic.gemma.core.loader.expression.geo.service.GeoBrowserServiceImpl
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,GeoBrowserService
@Lazy @Component public class GeoBrowserServiceImpl extends Object implements GeoBrowserService, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
This is marked asLazy
since we don't use it outside Gemma Web, so it won't be loaded unless it's needed.- Author:
- pavlidis
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayDesignService
arrayDesignService
protected ExpressionExperimentService
expressionExperimentService
-
Constructor Summary
Constructors Constructor Description GeoBrowserServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
String
getDetails(String accession, String contextPath)
Get details from GEO about an accession.List<GeoRecord>
getRecentGeoRecords(int start, int count)
List<GeoRecord>
searchGeoRecords(String searchString, int start, int count, boolean detailed)
boolean
toggleUsability(String accession)
-
-
-
Field Detail
-
expressionExperimentService
@Autowired protected ExpressionExperimentService expressionExperimentService
-
arrayDesignService
@Autowired protected ArrayDesignService arrayDesignService
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
getDetails
public String getDetails(String accession, String contextPath) throws IOException
Description copied from interface:GeoBrowserService
Get details from GEO about an accession.- Specified by:
getDetails
in interfaceGeoBrowserService
- Parameters:
accession
- accession- Returns:
- details
- Throws:
IOException
- if there is a problem while manipulating the file
-
getRecentGeoRecords
public List<GeoRecord> getRecentGeoRecords(int start, int count) throws IOException
- Specified by:
getRecentGeoRecords
in interfaceGeoBrowserService
- Parameters:
start
- page number, not starting recordcount
- page size- Returns:
- geo records
- Throws:
IOException
- if there is a problem while manipulating the file
-
searchGeoRecords
public List<GeoRecord> searchGeoRecords(String searchString, int start, int count, boolean detailed) throws IOException
- Specified by:
searchGeoRecords
in interfaceGeoBrowserService
- Parameters:
searchString
- can be nullstart
- first record to retrievecount
- how many records to retrievedetailed
- if true, more information is retrieved (slow)- Returns:
- collection of GeoRecords
- Throws:
IOException
-
toggleUsability
public boolean toggleUsability(String accession)
- Specified by:
toggleUsability
in interfaceGeoBrowserService
-
-