Class QueryUpdateService
- java.lang.Object
-
- org.intermine.webservice.server.WebService
-
- org.intermine.webservice.server.query.QueryUploadService
-
- org.intermine.webservice.server.query.QueryUpdateService
-
public class QueryUpdateService extends QueryUploadService
Same in all respects as the upload service, but this class overwrites queries with the provided names.- Author:
- Alex Kalderimis
-
-
Field Summary
-
Fields inherited from class org.intermine.webservice.server.query.QueryUploadService
profile, QUERIES_PARAMETER, VERSION_PARAMETER
-
Fields inherited from class org.intermine.webservice.server.WebService
dataPackageOutput, DEFAULT_CALLBACK, im, os, out, output, request, response, webProperties
-
-
Constructor Summary
Constructors Constructor Description QueryUpdateService(InterMineAPI im)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>saveQueries(java.util.Map<java.lang.String,PathQuery> toSave)Save the given queries.-
Methods inherited from class org.intermine.webservice.server.query.QueryUploadService
canServe, execute, getDefaultFormat, getQueryString, makeXMLOutput, postInit, validateState
-
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, service, setFormat, setNameSpace, wantsColumnHeaders, wantsDataPackage
-
-
-
-
Constructor Detail
-
QueryUpdateService
public QueryUpdateService(InterMineAPI im)
- Parameters:
im- The InterMine state object
-
-
Method Detail
-
saveQueries
protected java.util.Map<java.lang.String,java.lang.String> saveQueries(java.util.Map<java.lang.String,PathQuery> toSave)
Description copied from class:QueryUploadServiceSave the given queries.- Overrides:
saveQueriesin classQueryUploadService- Parameters:
toSave- The queries to save.- Returns:
- A mapping from given name to the name they were actually saved under.
-
-