Package org.intermine.bio.webservice
Class GenomicRegionSearchService
- java.lang.Object
-
- org.intermine.webservice.server.WebService
-
- org.intermine.webservice.server.core.JSONService
-
- org.intermine.webservice.server.lists.AbstractListService
-
- org.intermine.webservice.server.lists.AuthenticatedListService
-
- org.intermine.webservice.server.lists.ListMakerService
-
- org.intermine.bio.webservice.GenomicRegionSearchService
-
- Direct Known Subclasses:
AbstractRegionExportService
public class GenomicRegionSearchService extends org.intermine.webservice.server.lists.ListMakerServiceA web service resource to expose the Region Search functionality.
-
-
Constructor Summary
Constructors Constructor Description GenomicRegionSearchService(org.intermine.api.InterMineAPI im)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<GenomicRegion,org.intermine.objectstore.query.Query>createQueries(GenomicRegionSearchListInput.GenomicRegionSearchInfo info)Create the queries used to run the genomic region search.protected org.intermine.api.profile.InterMineBagdoListCreation(GenomicRegionSearchListInput input, org.intermine.api.profile.Profile profile, java.lang.String type)Create the list specified by the region search input.protected java.util.Map<java.lang.String,java.lang.Object>getHeaderAttributes()Gets the header attributes on the output object.protected org.intermine.webservice.server.lists.ListInputgetInput()protected java.lang.StringgetNewListType(org.intermine.webservice.server.lists.ListInput input)protected voidmakeList(org.intermine.webservice.server.lists.ListInput input, java.lang.String type, org.intermine.api.profile.Profile profile, java.util.Set<java.lang.String> temporaryBagNamesAccumulator)-
Methods inherited from class org.intermine.webservice.server.lists.ListMakerService
canServe, execute, getDefaultFormat, initialiseDelendumAccumulator, validateState
-
Methods inherited from class org.intermine.webservice.server.lists.AbstractListService
getClassesForBags
-
Methods inherited from class org.intermine.webservice.server.core.JSONService
addOutputInfo, addResultEntries, addResultEntries, addResultEntry, addResultEntry, addResultItem, addResultItem, addResultValue, addResultValue, addResultValue, getResultsKey, lazyList, postInit
-
Methods inherited from class org.intermine.webservice.server.WebService
cleanUp, formatIsFlatFile, formatIsJSON, formatIsJSONP, formatIsXML, getAuthenticatedUser, getCallback, getColumnHeaderStyle, getDefaultFileName, getDefaultOutput, getDefaultOutput, getExtension, getFormat, getIntParameter, getIntParameter, getLineBreak, getListManager, getOptionalParameter, getOptionalParameter, getPermission, getProperty, getRawOutput, getRequestFileName, getRequiredParameter, hasCallback, initState, isAuthenticated, isGzip, isUncompressed, isZip, makeJSONOutput, makeXMLOutput, service, setFormat, setNameSpace, wantsColumnHeaders, wantsDataPackage
-
-
-
-
Method Detail
-
getNewListType
protected java.lang.String getNewListType(org.intermine.webservice.server.lists.ListInput input)
- Specified by:
getNewListTypein classorg.intermine.webservice.server.lists.ListMakerService
-
makeList
protected void makeList(org.intermine.webservice.server.lists.ListInput input, java.lang.String type, org.intermine.api.profile.Profile profile, java.util.Set<java.lang.String> temporaryBagNamesAccumulator) throws java.lang.Exception- Specified by:
makeListin classorg.intermine.webservice.server.lists.ListMakerService- Throws:
java.lang.Exception
-
doListCreation
protected org.intermine.api.profile.InterMineBag doListCreation(GenomicRegionSearchListInput input, org.intermine.api.profile.Profile profile, java.lang.String type) throws org.intermine.objectstore.ObjectStoreException, org.intermine.api.bag.ClassKeysNotFoundException, org.intermine.api.bag.UnknownBagTypeException
Create the list specified by the region search input.- Parameters:
input- The input object, containing the values specified by the user.profile- The user's profiletype- The unqualified name of the class of object in the new list.- Returns:
- A new list
- Throws:
org.intermine.objectstore.ObjectStoreException- if there is an error running the queries.org.intermine.api.bag.UnknownBagTypeException- if bad bag typeorg.intermine.api.bag.ClassKeysNotFoundException- no class keys
-
getHeaderAttributes
protected java.util.Map<java.lang.String,java.lang.Object> getHeaderAttributes()
Gets the header attributes on the output object.- Overrides:
getHeaderAttributesin classorg.intermine.webservice.server.lists.ListMakerService- Returns:
- A map of header attributes for JSON output.
-
getInput
protected org.intermine.webservice.server.lists.ListInput getInput()
- Overrides:
getInputin classorg.intermine.webservice.server.lists.AbstractListService
-
createQueries
protected java.util.Map<GenomicRegion,org.intermine.objectstore.query.Query> createQueries(GenomicRegionSearchListInput.GenomicRegionSearchInfo info)
Create the queries used to run the genomic region search.- Parameters:
info- The options input object.- Returns:
- A map from a region to the query needed to find objects in that region.
-
-