Class OrganizerServices


  • @Singleton
    @Path("/organizer")
    public class OrganizerServices
    extends step.core.deployment.AbstractServices
    • Constructor Detail

      • OrganizerServices

        public OrganizerServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractServices
        Throws:
        java.lang.Exception
      • list

        @GET
        @Path("/browse")
        public java.util.List<OrganizerServices.DirEntry> list​(@QueryParam("path")
                                                               java.lang.String path,
                                                               @QueryParam("query")
                                                               java.lang.String query,
                                                               @QueryParam("type")
                                                               java.lang.String type)
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getFileContent

        @GET
        @Path("/file")
        public java.lang.String getFileContent​(@QueryParam("path")
                                               java.lang.String path)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • saveFileContent

        @POST
        @Path("/file/content")
        public void saveFileContent​(@QueryParam("path")
                                    java.lang.String path,
                                    java.lang.String content)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getFileAndAssertItExists

        protected java.io.File getFileAndAssertItExists​(java.lang.String path)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteFile

        @DELETE
        @Path("/file")
        public void deleteFile​(@QueryParam("path")
                               java.lang.String path)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteFile

        @POST
        @Path("/file/copy")
        public void deleteFile​(@QueryParam("path")
                               java.lang.String path,
                               @QueryParam("to")
                               java.lang.String to)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addFolder

        @POST
        @Path("/folder")
        public void addFolder​(@QueryParam("path")
                              java.lang.String path,
                              @QueryParam("name")
                              java.lang.String name)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteFolder

        @DELETE
        @Path("/folder")
        public void deleteFolder​(@QueryParam("path")
                                 java.lang.String path)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addFile

        @PUT
        @Path("/file")
        public void addFile​(OrganizerServices.DirEntry entry)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • saveFile

        @POST
        @Path("/file")
        public void saveFile​(OrganizerServices.DirEntry entry)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • commit

        @POST
        @Path("/git/commit")
        public void commit()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • reset

        @POST
        @Path("/git/reset")
        public void reset()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addAll

        @POST
        @Path("/git/addall")
        public void addAll()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception