Class ProfiledDocuments


  • @Path("projects/{usecase_id}")
    public class ProfiledDocuments
    extends Object
    • 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)
        Delete file set. the Authorization must be a VRE token
        Parameters:
        id - the id
        force - the force
        path - the path must be passed as text in the body
        Returns:
        the project
      • 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)