Class ModuleEditorResource
- java.lang.Object
-
- lumis.service.portalmanagement.deployment.moduleeditor.ModuleEditorResource
-
-
Constructor Summary
Constructors Constructor Description ModuleEditorResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
areThemeFilesEditable(String moduleId)
void
createNewDirectory(String moduleId, String filePath, String dirName)
void
createNewFile(String moduleId, String filePath, String fileName)
void
deleteFile(String moduleId, String filePath)
Response
downloadZip(String moduleId, String folderPath)
Response
getFile(String moduleId, String filePath)
String
getFileText(String moduleId, String filePath)
String
getFolderChildren(String moduleId, String folderPath)
protected IFile
getModuleDir(String moduleId)
void
renameFile(String moduleId, String filePath, String newFileName)
void
saveFileText(String moduleId, String filePath, String fileContent)
String
uploadFile(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String moduleId, String filePath)
String
uploadZip(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String moduleId, String filePath)
-
-
-
Method Detail
-
areThemeFilesEditable
@Path("/aremodulefileseditable") @GET @Produces("text/plain") public String areThemeFilesEditable(@QueryParam("moduleId") String moduleId) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getModuleDir
protected IFile getModuleDir(String moduleId) throws PortalException, UnexpectedException
- Throws:
PortalException
UnexpectedException
-
getFolderChildren
@Path("/getfolderchildren") @GET @Produces("text/plain") public String getFolderChildren(@QueryParam("moduleId") String moduleId, @QueryParam("folderPath") String folderPath) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getFile
@Path("/getfile") @GET public Response getFile(@QueryParam("moduleId") String moduleId, @QueryParam("filePath") String filePath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
getFileText
@Path("/getfiletext") @GET @Produces("text/plain") public String getFileText(@QueryParam("moduleId") String moduleId, @QueryParam("filePath") String filePath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
saveFileText
@Path("/savefiletext") @POST public void saveFileText(@FormParam("moduleId") String moduleId, @FormParam("filePath") String filePath, @FormParam("fileContent") String fileContent) throws IOException, PortalException
- Throws:
IOException
PortalException
-
createNewFile
@Path("/createnewfile") @POST public void createNewFile(@FormParam("moduleId") String moduleId, @FormParam("filePath") String filePath, @FormParam("fileName") String fileName) throws IOException, PortalException
- Throws:
IOException
PortalException
-
createNewDirectory
@Path("/createnewdir") @POST public void createNewDirectory(@FormParam("moduleId") String moduleId, @FormParam("filePath") String filePath, @FormParam("dirName") String dirName) throws IOException, PortalException
- Throws:
IOException
PortalException
-
renameFile
@Path("/renamefile") @POST public void renameFile(@FormParam("moduleId") String moduleId, @FormParam("filePath") String filePath, @FormParam("newFileName") String newFileName) throws IOException, PortalException
- Throws:
IOException
PortalException
-
deleteFile
@Path("/deletefile") @POST public void deleteFile(@FormParam("moduleId") String moduleId, @FormParam("filePath") String filePath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
uploadFile
@POST @Path("/uploadfile") @Consumes("multipart/form-data") public String uploadFile(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String moduleId, String filePath) throws PortalException, IOException
- Throws:
PortalException
IOException
-
uploadZip
@POST @Path("/uploadzip") @Consumes("multipart/form-data") public String uploadZip(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String moduleId, String filePath) throws PortalException, IOException
- Throws:
PortalException
IOException
-
downloadZip
@Path("/downloadzip") @GET @Produces("application/octet-stream") public Response downloadZip(@QueryParam("moduleId") String moduleId, @QueryParam("folderPath") String folderPath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
-