Constructor and Description |
---|
ThemeEditorResource() |
Modifier and Type | Method and Description |
---|---|
String |
areThemeFilesEditable(String themeId) |
void |
createNewDirectory(String themeId,
String filePath,
String dirName) |
void |
createNewFile(String themeId,
String filePath,
String fileName) |
void |
deleteFile(String themeId,
String filePath) |
String |
deletePageHolder(String pageId,
String pageHolderName) |
Response |
downloadZip(String themeId,
String folderPath) |
protected List<ITheme> |
getEditableThemes(PageConfig page,
ITransaction transaction) |
String |
getEditableThemes(String pageId) |
String |
getEditTheme(HttpServletRequest req,
HttpServletResponse resp) |
Response |
getFile(String themeId,
String filePath) |
String |
getFileText(String themeId,
String filePath) |
String |
getFolderChildren(String themeId,
String folderPath) |
String |
getPageBlockInfo(String pageId,
String pageBlockPath,
int pageBlockPathParents) |
String |
getPageHolderInfo(String pageId,
String pageHolderPath) |
String |
insertPageBlock(String pageId,
String pageBlockPath,
int pageBlockPathParents,
String pageBlockName,
String pageBlockReference,
String selectedPageBlock) |
String |
insertPageHolder(String pageId,
String pageHolderPath,
String pageHolderName) |
String |
isPageLayoutFileEditable(String pageId) |
void |
renameFile(String themeId,
String filePath,
String newFileName) |
void |
saveFileText(String themeId,
String filePath,
String fileContent) |
String |
uploadFile(InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String themeId,
String filePath) |
String |
uploadZip(InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String themeId,
String filePath) |
@Path(value="/arethemefileseditable") @GET @Produces(value="text/plain") public String areThemeFilesEditable(@QueryParam(value="themeId") String themeId) throws PortalException
PortalException
@Path(value="/geteditablethemes") @GET @Produces(value="text/plain") public String getEditableThemes(@QueryParam(value="pageId") String pageId) throws PortalException, IOException
PortalException
IOException
@Path(value="/ispagelayoutfileeditable") @GET @Produces(value="text/plain") public String isPageLayoutFileEditable(@QueryParam(value="pageId") String pageId) throws PortalException, IOException
PortalException
IOException
protected List<ITheme> getEditableThemes(PageConfig page, ITransaction transaction) throws DaoException, ManagerException, PortalException, IOException
@Path(value="/getpageholderinfo") @POST @Produces(value="application/json") public String getPageHolderInfo(@FormParam(value="pageId") String pageId, @FormParam(value="pageHolderPath") String pageHolderPath) throws PortalException, IOException
PortalException
IOException
@Path(value="/insertpageholder") @POST @Produces(value="text/plain") public String insertPageHolder(@FormParam(value="pageId") String pageId, @FormParam(value="pageHolderPath") String pageHolderPath, @FormParam(value="pageHolderName") String pageHolderName) throws PortalException, IOException
PortalException
IOException
@Path(value="/deletepageholder") @POST @Produces(value="text/plain") public String deletePageHolder(@FormParam(value="pageId") String pageId, @FormParam(value="pageHolderName") String pageHolderName) throws PortalException, IOException
PortalException
IOException
@Path(value="/getpageblockinfo") @POST @Produces(value="application/json") public String getPageBlockInfo(@FormParam(value="pageId") String pageId, @FormParam(value="pageBlockPath") String pageBlockPath, @FormParam(value="pageBlockPathParents") int pageBlockPathParents) throws PortalException, IOException
PortalException
IOException
@Path(value="/insertpageblock") @POST @Produces(value="text/plain") public String insertPageBlock(@FormParam(value="pageId") String pageId, @FormParam(value="pageBlockPath") String pageBlockPath, @FormParam(value="pageBlockPathParents") int pageBlockPathParents, @FormParam(value="pageBlockName") String pageBlockName, @FormParam(value="pageBlockReference") String pageBlockReference, @FormParam(value="selectedPageBlock") String selectedPageBlock) throws PortalException, IOException
PortalException
IOException
@Path(value="/editTheme") @GET public String getEditTheme(@Context HttpServletRequest req, @Context HttpServletResponse resp) throws PortalException, IOException
PortalException
IOException
@Path(value="/getfolderchildren") @GET @Produces(value="text/plain") public String getFolderChildren(@QueryParam(value="themeId") String themeId, @QueryParam(value="folderPath") String folderPath) throws PortalException, IOException
PortalException
IOException
@Path(value="/getfile") @GET public Response getFile(@QueryParam(value="themeId") String themeId, @QueryParam(value="filePath") String filePath) throws IOException, PortalException
IOException
PortalException
@Path(value="/getfiletext") @GET @Produces(value="text/plain") public String getFileText(@QueryParam(value="themeId") String themeId, @QueryParam(value="filePath") String filePath) throws IOException, PortalException
IOException
PortalException
@Path(value="/savefiletext") @POST public void saveFileText(@FormParam(value="themeId") String themeId, @FormParam(value="filePath") String filePath, @FormParam(value="fileContent") String fileContent) throws IOException, PortalException
IOException
PortalException
@Path(value="/createnewfile") @POST public void createNewFile(@FormParam(value="themeId") String themeId, @FormParam(value="filePath") String filePath, @FormParam(value="fileName") String fileName) throws IOException, PortalException
IOException
PortalException
@Path(value="/createnewdir") @POST public void createNewDirectory(@FormParam(value="themeId") String themeId, @FormParam(value="filePath") String filePath, @FormParam(value="dirName") String dirName) throws IOException, PortalException
IOException
PortalException
@Path(value="/renamefile") @POST public void renameFile(@FormParam(value="themeId") String themeId, @FormParam(value="filePath") String filePath, @FormParam(value="newFileName") String newFileName) throws IOException, PortalException
IOException
PortalException
@Path(value="/deletefile") @POST public void deleteFile(@FormParam(value="themeId") String themeId, @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 themeId, 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 themeId, String filePath) throws PortalException, IOException
PortalException
IOException
@Path(value="/downloadzip") @GET @Produces(value="application/octet-stream") public Response downloadZip(@QueryParam(value="themeId") String themeId, @QueryParam(value="folderPath") String folderPath) throws IOException, PortalException
IOException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.