uk.ac.ebi.mapper.web.service.impl
Class AccessionMapperServiceImpl

java.lang.Object
  extended by uk.ac.ebi.mapper.web.service.impl.AccessionMapperServiceImpl
All Implemented Interfaces:
AccessionMapperInterface

public class AccessionMapperServiceImpl
extends Object
implements AccessionMapperInterface

Created by IntelliJ IDEA. Date: 28-Feb-2007 Time: 10:21:36 $Id: AccessionMapperServiceImpl.java,v 1.12 2010/05/05 13:10:05 rcote Exp $


Constructor Summary
AccessionMapperServiceImpl()
           
 
Method Summary
 List<String> getMappedDatabaseNames()
           
 List<UPEntry> getUPIForAccession(String accession, String acVersion, List<String> searchDatabases, String taxonId, boolean onlyActive)
           
 UPEntry getUPIForSequence(String sequence, List<String> searchDatabases, String taxonId, boolean onlyActive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessionMapperServiceImpl

public AccessionMapperServiceImpl()
Method Detail

getUPIForSequence

@RequestWrapper(localName="getUPIForSequence",
                targetNamespace="http://www.ebi.ac.uk/picr/AccessionMappingService",
                className="uk.ac.ebi.mapper.web.service.GetUPIForSequence")
@ResponseWrapper(localName="getUPIForSequenceResponse",
                 targetNamespace="http://www.ebi.ac.uk/picr/AccessionMappingService",
                 className="uk.ac.ebi.mapper.web.service.GetUPIForSequenceResponse")
public UPEntry getUPIForSequence(String sequence,
                                                                List<String> searchDatabases,
                                                                String taxonId,
                                                                boolean onlyActive)
Specified by:
getUPIForSequence in interface AccessionMapperInterface
Parameters:
sequence - - the sequence to map with 100% sequence identity
searchDatabases - - a list of databases to retrieve mappings from. If null, all mappings returned.
taxonId - - an optional taxon ID to limit mappings to
onlyActive - - if true, return only active mappings. if false, return all known mappings
Returns:
returns a UPEntry object or null if search criteria not met

getUPIForAccession

@RequestWrapper(localName="getUPIForAccession",
                targetNamespace="http://www.ebi.ac.uk/picr/AccessionMappingService",
                className="uk.ac.ebi.mapper.web.service.GetUPIForAccession")
@ResponseWrapper(localName="getUPIForAccessionResponse",
                 targetNamespace="http://www.ebi.ac.uk/picr/AccessionMappingService",
                 className="uk.ac.ebi.mapper.web.service.GetUPIForAccessionResponse")
public List<UPEntry> getUPIForAccession(String accession,
                                                                       String acVersion,
                                                                       List<String> searchDatabases,
                                                                       String taxonId,
                                                                       boolean onlyActive)
Specified by:
getUPIForAccession in interface AccessionMapperInterface
Parameters:
accession - - the accession to map (ex P29375)
ac_version - - the optional version of the accession (ex 1)
searchDatabases - - a list of databases to retrieve mappings from. If null, all mappings returned.
taxonId - - an optional taxon ID to limit mappings to
onlyActive - - if true, return only active mappings. if false, return all known mappings
Returns:
returns a list of UPEntry objects

getMappedDatabaseNames

@RequestWrapper(localName="getMappedDatabaseNames",
                targetNamespace="http://www.ebi.ac.uk/picr/AccessionMappingService",
                className="uk.ac.ebi.mapper.web.service.GetMappedDatabaseNames")
@ResponseWrapper(localName="getMappedDatabaseNamesResponse",
                 targetNamespace="http://www.ebi.ac.uk/picr/AccessionMappingService",
                 className="uk.ac.ebi.mapper.web.service.GetMappedDatabaseNamesResponse")
public List<String> getMappedDatabaseNames()
Specified by:
getMappedDatabaseNames in interface AccessionMapperInterface
Returns:
returns a list of all the available databases to map against


Copyright © 2011. All Rights Reserved.