Class ProfiledDocuments
- java.lang.Object
-
- org.gcube.application.geoportal.service.rest.ProfiledDocuments
-
@Path("projects/{usecase_id}") public class ProfiledDocuments extends Object
-
-
Constructor Summary
Constructors Constructor Description ProfiledDocuments(String profileID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.gcube.application.geoportal.common.model.document.ProjectcreateNew(org.bson.Document d)Booleandelete(String id, Boolean force)org.gcube.application.geoportal.common.model.document.ProjectdeleteFileSet(String id, Boolean force, String path)org.gcube.application.geoportal.common.model.document.ProjectdeleteRelation(String id, String relationshipId, String targetId, String targetUCD)org.gcube.application.geoportal.common.model.document.ProjectforceUnlock(String id)org.gcube.application.geoportal.common.model.document.ProjectgetById(String id)org.gcube.application.geoportal.common.model.configuration.ConfigurationgetConfiguration(String profileID)StringgetRelationshipChain(String id, String relationshipId, Boolean deep)Iterable<?>list()org.gcube.application.geoportal.common.model.document.ProjectperformStep(String id, org.gcube.application.geoportal.common.model.rest.StepExecutionRequest request)Iterable<?>query(String queryString)org.gcube.application.geoportal.common.model.document.ProjectregisterFileSet(String id, org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest request)Stringsearch(String filter)org.gcube.application.geoportal.common.model.document.ProjectsetAccessPolicy(String id, org.gcube.application.geoportal.common.model.document.access.Access toSet)org.gcube.application.geoportal.common.model.document.ProjectsetRelation(String id, String relationshipId, String targetId, String targetUCD)org.gcube.application.geoportal.common.model.document.Projectupdate(String documentId, org.bson.Document d)
-
-
-
Constructor Detail
-
ProfiledDocuments
public ProfiledDocuments(@PathParam("usecase_id") String profileID) throws org.gcube.application.geoportal.common.model.rest.ConfigurationException- Throws:
org.gcube.application.geoportal.common.model.rest.ConfigurationException
-
-
Method Detail
-
getConfiguration
@GET @Path("configuration") @Produces("application/json") public org.gcube.application.geoportal.common.model.configuration.Configuration getConfiguration(@PathParam("usecase_id") String profileID)
-
createNew
@POST @Consumes("application/json") @Produces("application/json") public org.gcube.application.geoportal.common.model.document.Project createNew(org.bson.Document d)
-
update
@PUT @Path("{project_id}") @Consumes("application/json") @Produces("application/json") public org.gcube.application.geoportal.common.model.document.Project update(@PathParam("project_id") String documentId, org.bson.Document d)
-
delete
@DELETE @Produces("application/json") @Path("{project_id}") public Boolean delete(@PathParam("project_id") String id, @DefaultValue("false") @QueryParam("force") Boolean force)
-
registerFileSet
@POST @Consumes("application/json") @Produces("application/json") @Path("/registerFiles/{project_id}") public org.gcube.application.geoportal.common.model.document.Project registerFileSet(@PathParam("project_id") String id, org.gcube.application.geoportal.common.model.rest.RegisterFileSetRequest request)
-
deleteFileSet
@POST @Consumes("application/json") @Produces("application/json") @Path("/deleteFiles/{project_id}") public org.gcube.application.geoportal.common.model.document.Project deleteFileSet(@PathParam("project_id") String id, @DefaultValue("false") @QueryParam("force") Boolean force, String path)
-
performStep
@POST @Consumes("application/json") @Produces("application/json") @Path("/step/{project_id}") public org.gcube.application.geoportal.common.model.document.Project performStep(@PathParam("project_id") String id, org.gcube.application.geoportal.common.model.rest.StepExecutionRequest request)
-
forceUnlock
@PUT @Consumes("application/json") @Produces("application/json") @Path("/forceUnlock/{project_id}") public org.gcube.application.geoportal.common.model.document.Project forceUnlock(@PathParam("project_id") String id)
-
setAccessPolicy
@PUT @Consumes("application/json") @Produces("application/json") @Path("/setAccess/{project_id}") public org.gcube.application.geoportal.common.model.document.Project setAccessPolicy(@PathParam("project_id") String id, org.gcube.application.geoportal.common.model.document.access.Access toSet)
-
list
@GET @Produces("application/json") public Iterable<?> list()
-
getById
@GET @Produces("application/json") @Path("{project_id}") public org.gcube.application.geoportal.common.model.document.Project getById(@PathParam("project_id") String id)
-
search
@POST @Consumes("application/json") @Produces("application/json") @Path("/search") public String search(String filter)
-
query
@POST @Consumes("application/json") @Produces("application/json") @Path("/query") public Iterable<?> query(String queryString)
-
getRelationshipChain
@GET @Produces("application/json") @Path("{relationship}/{project_id}/{relationship_id}") public String getRelationshipChain(@PathParam("project_id") String id, @PathParam("relationship_id") String relationshipId, @DefaultValue("false") @QueryParam("deep") Boolean deep)
-
setRelation
@PUT @Produces("application/json") @Path("{relationship}/{project_id}/{relationship_id}") public org.gcube.application.geoportal.common.model.document.Project setRelation(@PathParam("project_id") String id, @PathParam("relationship_id") String relationshipId, @QueryParam("target_id") String targetId, @QueryParam("target_ucd") String targetUCD)
-
deleteRelation
@DELETE @Produces("application/json") @Path("{relationship}/{project_id}/{relationship_id}") public org.gcube.application.geoportal.common.model.document.Project deleteRelation(@PathParam("project_id") String id, @PathParam("relationship_id") String relationshipId, @QueryParam("target_id") String targetId, @QueryParam("target_ucd") String targetUCD)
-
-