Class ThemeEditorResource
- java.lang.Object
-
- lumis.service.portalmanagement.theme.editor.ThemeEditorResource
-
-
Constructor Summary
Constructors Constructor Description ThemeEditorResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
String
getEditableThemes(String pageId)
protected List<ITheme>
getEditableThemes(PageConfig page, ITransaction transaction)
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)
-
-
-
Method Detail
-
areThemeFilesEditable
@Path("/arethemefileseditable") @GET @Produces("text/plain") public String areThemeFilesEditable(@QueryParam("themeId") String themeId) throws PortalException
- Throws:
PortalException
-
getEditableThemes
@Path("/geteditablethemes") @GET @Produces("text/plain") public String getEditableThemes(@QueryParam("pageId") String pageId) throws PortalException, IOException
- Throws:
PortalException
IOException
-
isPageLayoutFileEditable
@Path("/ispagelayoutfileeditable") @GET @Produces("text/plain") public String isPageLayoutFileEditable(@QueryParam("pageId") String pageId) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getEditableThemes
protected List<ITheme> getEditableThemes(PageConfig page, ITransaction transaction) throws DaoException, ManagerException, PortalException, IOException
-
getPageHolderInfo
@Path("/getpageholderinfo") @POST @Produces("application/json") public String getPageHolderInfo(@FormParam("pageId") String pageId, @FormParam("pageHolderPath") String pageHolderPath) throws PortalException, IOException
- Throws:
PortalException
IOException
-
insertPageHolder
@Path("/insertpageholder") @POST @Produces("text/plain") public String insertPageHolder(@FormParam("pageId") String pageId, @FormParam("pageHolderPath") String pageHolderPath, @FormParam("pageHolderName") String pageHolderName) throws PortalException, IOException
- Throws:
PortalException
IOException
-
deletePageHolder
@Path("/deletepageholder") @POST @Produces("text/plain") public String deletePageHolder(@FormParam("pageId") String pageId, @FormParam("pageHolderName") String pageHolderName) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getPageBlockInfo
@Path("/getpageblockinfo") @POST @Produces("application/json") public String getPageBlockInfo(@FormParam("pageId") String pageId, @FormParam("pageBlockPath") String pageBlockPath, @FormParam("pageBlockPathParents") int pageBlockPathParents) throws PortalException, IOException
- Throws:
PortalException
IOException
-
insertPageBlock
@Path("/insertpageblock") @POST @Produces("text/plain") public String insertPageBlock(@FormParam("pageId") String pageId, @FormParam("pageBlockPath") String pageBlockPath, @FormParam("pageBlockPathParents") int pageBlockPathParents, @FormParam("pageBlockName") String pageBlockName, @FormParam("pageBlockReference") String pageBlockReference, @FormParam("selectedPageBlock") String selectedPageBlock) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getEditTheme
@Path("/editTheme") @GET public String getEditTheme(@Context HttpServletRequest req, @Context HttpServletResponse resp) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getFolderChildren
@Path("/getfolderchildren") @GET @Produces("text/plain") public String getFolderChildren(@QueryParam("themeId") String themeId, @QueryParam("folderPath") String folderPath) throws PortalException, IOException
- Throws:
PortalException
IOException
-
getFile
@Path("/getfile") @GET public Response getFile(@QueryParam("themeId") String themeId, @QueryParam("filePath") String filePath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
getFileText
@Path("/getfiletext") @GET @Produces("text/plain") public String getFileText(@QueryParam("themeId") String themeId, @QueryParam("filePath") String filePath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
saveFileText
@Path("/savefiletext") @POST public void saveFileText(@FormParam("themeId") String themeId, @FormParam("filePath") String filePath, @FormParam("fileContent") String fileContent) throws IOException, PortalException
- Throws:
IOException
PortalException
-
createNewFile
@Path("/createnewfile") @POST public void createNewFile(@FormParam("themeId") String themeId, @FormParam("filePath") String filePath, @FormParam("fileName") String fileName) throws IOException, PortalException
- Throws:
IOException
PortalException
-
createNewDirectory
@Path("/createnewdir") @POST public void createNewDirectory(@FormParam("themeId") String themeId, @FormParam("filePath") String filePath, @FormParam("dirName") String dirName) throws IOException, PortalException
- Throws:
IOException
PortalException
-
renameFile
@Path("/renamefile") @POST public void renameFile(@FormParam("themeId") String themeId, @FormParam("filePath") String filePath, @FormParam("newFileName") String newFileName) throws IOException, PortalException
- Throws:
IOException
PortalException
-
deleteFile
@Path("/deletefile") @POST public void deleteFile(@FormParam("themeId") String themeId, @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 themeId, 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 themeId, String filePath) throws PortalException, IOException
- Throws:
PortalException
IOException
-
downloadZip
@Path("/downloadzip") @GET @Produces("application/octet-stream") public Response downloadZip(@QueryParam("themeId") String themeId, @QueryParam("folderPath") String folderPath) throws IOException, PortalException
- Throws:
IOException
PortalException
-
-