Class FilesystemRestService


  • @Component
    @Path("filesystem")
    public class FilesystemRestService
    extends Object
    • Constructor Detail

      • FilesystemRestService

        public FilesystemRestService()
    • Method Detail

      • getFiles

        @GET
        @Path("/")
        @Produces("application/json")
        public List<String> getFiles​(@QueryParam("changedFilesOnly")
                                     boolean changedFilesOnly,
                                     @Context
                                     javax.ws.rs.core.SecurityContext securityContext)
      • doesFileExistAndMatchContentsWithEtcPristine

        public boolean doesFileExistAndMatchContentsWithEtcPristine​(String file)
      • getFileHelp

        @GET
        @Path("/help")
        @Produces("text/markdown")
        public InputStream getFileHelp​(@QueryParam("f")
                                       String fileName,
                                       @Context
                                       javax.ws.rs.core.SecurityContext securityContext)
      • getSupportedExtensions

        @GET
        @Path("/extensions")
        @Produces("application/json")
        public List<String> getSupportedExtensions​(@Context
                                                   javax.ws.rs.core.SecurityContext securityContext)
      • getFileContents

        @GET
        @Path("/contents")
        public javax.ws.rs.core.Response getFileContents​(@QueryParam("f")
                                                         String fileName,
                                                         @Context
                                                         javax.ws.rs.core.SecurityContext securityContext)
      • uploadFile

        @POST
        @Path("/contents")
        @Produces("text/html")
        @Consumes("multipart/form-data")
        public String uploadFile​(@QueryParam("f")
                                 String fileName,
                                 org.apache.cxf.jaxrs.ext.multipart.Attachment attachment,
                                 @Context
                                 javax.ws.rs.core.SecurityContext securityContext)
                          throws IOException
        Throws:
        IOException
      • deleteFile

        @DELETE
        @Path("/contents")
        @Produces("text/html")
        public String deleteFile​(@QueryParam("f")
                                 String fileName,
                                 @Context
                                 javax.ws.rs.core.SecurityContext securityContext)
                          throws IOException
        Throws:
        IOException
      • fileContents

        public static javax.ws.rs.core.Response fileContents​(Path path)