@Path(value="/Scenario") public class ScenarioUtil extends BaseUtil
| Constructor and Description |
|---|
ScenarioUtil() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
add(gr.i2s.fishgrowth.model.Scenario scenario) |
javax.ws.rs.core.Response |
delete(Long id) |
String |
executeConsumptionScenario(String from,
String to,
Integer weight,
Integer count,
Long modelId) |
gr.i2s.fishgrowth.model.Scenario |
executeScenario(Long id) |
gr.i2s.fishgrowth.model.Scenario |
getScenario(Long id) |
List<gr.i2s.fishgrowth.model.Scenario> |
getScenarios(String ownerId) |
javax.ws.rs.core.Response |
update(gr.i2s.fishgrowth.model.Scenario scenario) |
@PUT
@Consumes(value="application/json")
public javax.ws.rs.core.Response add(gr.i2s.fishgrowth.model.Scenario scenario)
throws Exception
Exception@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response update(gr.i2s.fishgrowth.model.Scenario scenario)
throws Exception
Exception@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
Long id)
throws Exception
Exception@GET
@Path(value="/{id}")
@Produces(value="application/json")
public gr.i2s.fishgrowth.model.Scenario getScenario(@PathParam(value="id")
Long id)
throws Exception
Exception@GET
@Path(value="/all/{ownerId}")
public List<gr.i2s.fishgrowth.model.Scenario> getScenarios(@PathParam(value="ownerId")
String ownerId)
throws Exception
Exception@GET
@Path(value="/execute/{id}")
@Produces(value="application/json")
public gr.i2s.fishgrowth.model.Scenario executeScenario(@PathParam(value="id")
Long id)
throws Exception
Exception@GET
@Path(value="/execute/consumption/{from}/{to}/{weight}/{count}/{modelid}")
@Produces(value="application/json")
public String executeConsumptionScenario(@PathParam(value="from")
String from,
@PathParam(value="to")
String to,
@PathParam(value="weight")
Integer weight,
@PathParam(value="count")
Integer count,
@PathParam(value="modelid")
Long modelId)
throws Exception
ExceptionCopyright © 2017. All Rights Reserved.