@Path(value="/Modeler") public class ModelerUtil extends BaseUtil
| Constructor and Description |
|---|
ModelerUtil() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
add(gr.i2s.fishgrowth.model.Modeler modeler) |
void |
cleanKPIs(Long id) |
javax.ws.rs.core.Response |
delete(Long id) |
gr.i2s.fishgrowth.model.Modeler |
getModeler(Long id) |
List<gr.i2s.fishgrowth.model.Modeler> |
getModelers(String ownerId,
List<Long> statuses) |
List<gr.i2s.fishgrowth.model.Usage> |
getUsage(String ownerId) |
javax.ws.rs.core.Response |
update(gr.i2s.fishgrowth.model.Modeler modeler) |
@PUT
@Consumes(value="application/json")
public javax.ws.rs.core.Response add(gr.i2s.fishgrowth.model.Modeler modeler)
throws Exception
Exception@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response update(gr.i2s.fishgrowth.model.Modeler modeler)
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.Modeler getModeler(@PathParam(value="id")
Long id)
throws Exception
Exception@GET
@Path(value="/all/{ownerId}")
public List<gr.i2s.fishgrowth.model.Modeler> getModelers(@PathParam(value="ownerId")
String ownerId,
@QueryParam(value="statuses")
List<Long> statuses)
throws Exception
Exception@DELETE
@Path(value="/kpi/{id}")
public void cleanKPIs(@PathParam(value="id")
Long id)
Copyright © 2017. All Rights Reserved.