41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
package org.gcube.application.perform.service.rest;
|
|
|
|
import java.util.List;
|
|
|
|
import javax.ws.rs.GET;
|
|
import javax.ws.rs.POST;
|
|
import javax.ws.rs.Path;
|
|
import javax.ws.rs.QueryParam;
|
|
import javax.ws.rs.WebApplicationException;
|
|
import javax.ws.rs.core.Response;
|
|
|
|
import org.gcube.application.perform.service.PerformServiceManager;
|
|
import org.gcube.application.perform.service.ServiceConstants;
|
|
import org.gcube.application.perform.service.engine.model.importer.ImportRoutineDescriptor;
|
|
import org.gcube.smartgears.annotations.ManagedBy;
|
|
|
|
@Path(ServiceConstants.Import.PATH)
|
|
|
|
@ManagedBy(PerformServiceManager.class)
|
|
public class Execution {
|
|
|
|
@POST
|
|
public void importExcel(@QueryParam(ServiceConstants.Import.BATCH_TYPE_PARAMETER)String batchType,
|
|
@QueryParam(ServiceConstants.Import.FARM_ID_PARAMETER)Long farmid,
|
|
@QueryParam(ServiceConstants.Import.EXCEL_FILE_PARAMETER)String sourceFile) {
|
|
|
|
throw new WebApplicationException("Not YET Implemented", Response.Status.NOT_IMPLEMENTED);
|
|
}
|
|
|
|
|
|
|
|
@GET
|
|
@Path("{"+ServiceConstants.Import.FARM_ID_PARAMETER+"}")
|
|
public List<ImportRoutineDescriptor> getAll(){
|
|
throw new WebApplicationException("Not YET Implemented", Response.Status.NOT_IMPLEMENTED);
|
|
}
|
|
|
|
|
|
|
|
}
|