Constructor and Description |
---|
ModuleEditorResource() |
Modifier and Type | Method and 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) |
@Path(value="/aremodulefileseditable") @GET @Produces(value="text/plain") public String areThemeFilesEditable(@QueryParam(value="moduleId") String moduleId) throws PortalException, IOException
PortalException
IOException
protected IFile getModuleDir(String moduleId) throws PortalException, UnexpectedException
PortalException
UnexpectedException
@Path(value="/getfolderchildren") @GET @Produces(value="text/plain") public String getFolderChildren(@QueryParam(value="moduleId") String moduleId, @QueryParam(value="folderPath") String folderPath) throws PortalException, IOException
PortalException
IOException
@Path(value="/getfile") @GET public Response getFile(@QueryParam(value="moduleId") String moduleId, @QueryParam(value="filePath") String filePath) throws IOException, PortalException
IOException
PortalException
@Path(value="/getfiletext") @GET @Produces(value="text/plain") public String getFileText(@QueryParam(value="moduleId") String moduleId, @QueryParam(value="filePath") String filePath) throws IOException, PortalException
IOException
PortalException
@Path(value="/savefiletext") @POST public void saveFileText(@FormParam(value="moduleId") String moduleId, @FormParam(value="filePath") String filePath, @FormParam(value="fileContent") String fileContent) throws IOException, PortalException
IOException
PortalException
@Path(value="/createnewfile") @POST public void createNewFile(@FormParam(value="moduleId") String moduleId, @FormParam(value="filePath") String filePath, @FormParam(value="fileName") String fileName) throws IOException, PortalException
IOException
PortalException
@Path(value="/createnewdir") @POST public void createNewDirectory(@FormParam(value="moduleId") String moduleId, @FormParam(value="filePath") String filePath, @FormParam(value="dirName") String dirName) throws IOException, PortalException
IOException
PortalException
@Path(value="/renamefile") @POST public void renameFile(@FormParam(value="moduleId") String moduleId, @FormParam(value="filePath") String filePath, @FormParam(value="newFileName") String newFileName) throws IOException, PortalException
IOException
PortalException
@Path(value="/deletefile") @POST public void deleteFile(@FormParam(value="moduleId") String moduleId, @FormParam(value="filePath") String filePath) throws IOException, PortalException
IOException
PortalException
@POST @Path(value="/uploadfile") @Consumes(value="multipart/form-data") public String uploadFile(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String moduleId, String filePath) throws PortalException, IOException
PortalException
IOException
@POST @Path(value="/uploadzip") @Consumes(value="multipart/form-data") public String uploadZip(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String moduleId, String filePath) throws PortalException, IOException
PortalException
IOException
@Path(value="/downloadzip") @GET @Produces(value="application/octet-stream") public Response downloadZip(@QueryParam(value="moduleId") String moduleId, @QueryParam(value="folderPath") String folderPath) throws IOException, PortalException
IOException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.