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 as Lazy since we don't use it outside Gemma Web, so it won't be loaded unless it's needed.
Author:
pavlidis
  • Field Details

  • Constructor Details

    • GeoBrowserServiceImpl

      public GeoBrowserServiceImpl()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.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 interface GeoBrowserService
      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 interface GeoBrowserService
      Parameters:
      start - page number, not starting record
      count - 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 interface GeoBrowserService
      Parameters:
      searchString - can be null
      start - first record to retrieve
      count - how many records to retrieve
      detailed - if true, more information is retrieved (slow)
      Returns:
      collection of GeoRecords
      Throws:
      IOException
    • toggleUsability

      public boolean toggleUsability(String accession)
      Specified by:
      toggleUsability in interface GeoBrowserService