@Path(value="projects") public class Projects extends Object
| Constructor and Description |
|---|
Projects() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String profile,
String id) |
List<org.gcube.application.geoportal.common.model.project.Project> |
getAll() |
List<org.gcube.application.geoportal.common.model.project.Project> |
getAllinProfile(String profileId) |
org.gcube.application.geoportal.common.model.project.Project |
getByID(String profile,
String id) |
List<org.gcube.application.geoportal.common.model.project.Project> |
getFilteredAll(org.bson.Document filter) |
List<org.gcube.application.geoportal.common.model.project.Project> |
getFilteredAllInProfiles(String profileId,
org.bson.Document filters) |
org.gcube.application.geoportal.common.model.project.Project |
registerNew(String profileId,
org.bson.Document toRegister) |
org.gcube.application.geoportal.common.model.project.Project |
updateDocument(String profile,
String id,
org.bson.Document toSetDocument) |
@GET @Produces(value="application/json") public List<org.gcube.application.geoportal.common.model.project.Project> getAll()
@POST @Consumes(value="application/json") @Produces(value="application/json") @Path(value="/search") public List<org.gcube.application.geoportal.common.model.project.Project> getFilteredAll(org.bson.Document filter)
@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
@Path(value="{profile_id}")
public org.gcube.application.geoportal.common.model.project.Project registerNew(@PathParam(value="profile_id")
String profileId,
org.bson.Document toRegister)
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="/search/{profile_id}")
public List<org.gcube.application.geoportal.common.model.project.Project> getFilteredAllInProfiles(@PathParam(value="profile_id")
String profileId,
org.bson.Document filters)
@GET
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="{profile_id}")
public List<org.gcube.application.geoportal.common.model.project.Project> getAllinProfile(@PathParam(value="profile_id")
String profileId)
@GET
@Produces(value="application/json")
@Path(value="{profile_id}/{project_id}")
public org.gcube.application.geoportal.common.model.project.Project getByID(@PathParam(value="profile_id")
String profile,
@PathParam(value="project_id")
String id)
@DELETE
@Produces(value="application/json")
@Path(value="{profile_id}/{project_id}")
public void delete(@PathParam(value="profile_id")
String profile,
@PathParam(value="project_id")
String id)
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="{profile_id}/{project_id}")
public org.gcube.application.geoportal.common.model.project.Project updateDocument(@PathParam(value="profile_id")
String profile,
@PathParam(value="project_id")
String id,
org.bson.Document toSetDocument)
Copyright © 2021. All Rights Reserved.