@Path(value="/")
public class HarvestDB
extends org.gcube.rest.resourceawareservice.ResourceAwareService<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps>
implements org.gcube.datatransformation.adaptors.common.HarversterDBServiceAPI
| Constructor and Description |
|---|
HarvestDB(DBPropsFactory dbPropsFactory,
org.gcube.rest.resourcemanager.publisher.ResourcePublisher<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> dbPropsPublisher,
org.gcube.rest.resourcemanager.discoverer.Discoverer<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> dbPropsDiscoverer,
org.gcube.rest.commons.filter.IResourceFilter<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> resourceFilter,
org.gcube.rest.commons.resourcefile.IResourceFileUtils<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> resourceFileUtils,
String hostname,
String port) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
AvailableResources() |
javax.ws.rs.core.Response |
CreateDBHarvesterConfig(String scopeHeader,
String dbPropsXML) |
javax.ws.rs.core.Response |
DeleteAllDBHarvesterConfigs(String scopeHeader) |
javax.ws.rs.core.Response |
GetResource(String scopeHeader,
String sourcename,
String propsname) |
String |
getResourceClass() |
String |
getResourceNamePref() |
String |
getScope() |
javax.ws.rs.core.Response |
HarvestDatabase(String scopeHeader,
String sourcename,
String propsname,
String recordid) |
javax.ws.rs.core.Response |
RemoveDBHarvesterConfig(String scopeHeader,
String propsname) |
javax.ws.rs.core.Response |
ReplaceDBHarvesterConfig(String scopeHeader,
String dbPropsXML) |
void |
setScope(String scope) |
closeService, createResource, createResourceREST, destroyResource, destroyResourceREST, filterResourcesREST, getAllResources, getResource, getResourceIDsByFilter, getResourceREST, getResourcesByFilter, listResourceIDs, listResources, listResourcesREST, loadResources, onClose, saveResource, startServicepublic HarvestDB(DBPropsFactory dbPropsFactory, org.gcube.rest.resourcemanager.publisher.ResourcePublisher<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> dbPropsPublisher, org.gcube.rest.resourcemanager.discoverer.Discoverer<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> dbPropsDiscoverer, org.gcube.rest.commons.filter.IResourceFilter<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> resourceFilter, org.gcube.rest.commons.resourcefile.IResourceFileUtils<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps> resourceFileUtils, String hostname, String port) throws org.gcube.rest.resourceawareservice.exceptions.ResourceAwareServiceException
org.gcube.rest.resourceawareservice.exceptions.ResourceAwareServiceExceptionpublic String getScope()
getScope in class org.gcube.rest.resourceawareservice.ResourceAwareService<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps>public void setScope(String scope)
public String getResourceClass()
getResourceClass in class org.gcube.rest.resourceawareservice.ResourceAwareService<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps>public String getResourceNamePref()
getResourceNamePref in class org.gcube.rest.resourceawareservice.ResourceAwareService<org.gcube.datatransformation.adaptors.common.db.xmlobjects.DBProps>@GET
@Path(value="/AvailableResources")
@Produces(value="application/xml; charset=UTF-8")
public javax.ws.rs.core.Response AvailableResources()
throws ParserConfigurationException,
TransformerException
AvailableResources in interface org.gcube.datatransformation.adaptors.common.HarversterDBServiceAPIParserConfigurationExceptionTransformerException@GET
@Path(value="/GetResource")
@Produces(value="application/xml; charset=UTF-8")
public javax.ws.rs.core.Response GetResource(@HeaderParam(value="gcube-scope")
String scopeHeader,
@QueryParam(value="sourcename")
String sourcename,
@QueryParam(value="propsname")
String propsname)
throws org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundException,
Exception
org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundExceptionException@POST
@Path(value="/DeleteAllDBHarvesterConfigs")
@Produces(value="text/plain; charset=UTF-8")
public javax.ws.rs.core.Response DeleteAllDBHarvesterConfigs(@HeaderParam(value="gcube-scope")
String scopeHeader)
throws org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundException,
Exception
org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundExceptionException@POST
@Path(value="/ReplaceDBHarvesterConfig")
@Produces(value="text/plain; charset=UTF-8")
public javax.ws.rs.core.Response ReplaceDBHarvesterConfig(@HeaderParam(value="gcube-scope")
String scopeHeader,
@FormParam(value="dbPropsXML")
String dbPropsXML)
throws org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundException,
Exception
ReplaceDBHarvesterConfig in interface org.gcube.datatransformation.adaptors.common.HarversterDBServiceAPIorg.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundExceptionException@POST
@Path(value="/CreateDBHarvesterConfig")
@Produces(value="text/plain; charset=UTF-8")
public javax.ws.rs.core.Response CreateDBHarvesterConfig(@HeaderParam(value="gcube-scope")
String scopeHeader,
@FormParam(value="dbPropsXML")
String dbPropsXML)
throws org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundException,
Exception
org.gcube.datatransformation.adaptors.common.db.exceptions.SourceIDNotFoundExceptionException@POST
@Path(value="/RemoveDBHarvesterConfig")
@Produces(value="text/plain; charset=UTF-8")
public javax.ws.rs.core.Response RemoveDBHarvesterConfig(@HeaderParam(value="gcube-scope")
String scopeHeader,
@FormParam(value="propsname")
String propsname)
throws org.gcube.rest.commons.resourceawareservice.resources.exceptions.StatefulResourceException,
org.gcube.rest.resourcemanager.discoverer.exceptions.DiscovererException
org.gcube.rest.commons.resourceawareservice.resources.exceptions.StatefulResourceExceptionorg.gcube.rest.resourcemanager.discoverer.exceptions.DiscovererException@GET
@Path(value="/HarvestDatabase")
@Produces(value="text/xml; charset=UTF-8")
public javax.ws.rs.core.Response HarvestDatabase(@HeaderParam(value="gcube-scope")
String scopeHeader,
@QueryParam(value="sourcename")
String sourcename,
@QueryParam(value="propsname")
String propsname,
@QueryParam(value="recordid")
String recordid)
throws Exception
HarvestDatabase in interface org.gcube.datatransformation.adaptors.common.HarversterDBServiceAPIExceptionCopyright © 2014. All Rights Reserved.