Package lumis.doui.control.htmleditor
Class PageBuilderResource
- java.lang.Object
-
- lumis.doui.control.htmleditor.PageBuilderResource
-
@Path("/lumis/doui/control/htmleditor/pagebuilder/{serviceInstanceId:[a-fA-F0-9]{32}}/{sourceId:[\\w]+}/{fieldId:[\\w]+}") public class PageBuilderResource extends java.lang.Object
REST resources used by the page builder plugin.- Since:
- 17.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description PageBuilderResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getPreinitScripts()
Returns the href of the pre-init scripts to be used for this page builder.java.lang.String
getTemplatesScript()
Returns a script that loads the LumisXP HTML templates available in the field being edited as page builder blocks or sections.
-
-
-
Method Detail
-
getPreinitScripts
@Path("/preInitScripts") @GET @Produces("application/json") public java.util.List<java.lang.String> getPreinitScripts() throws PortalException
Returns the href of the pre-init scripts to be used for this page builder.- Returns:
- a JSON array of href of the pre-init scripts, relative to the VvvebJs directory.
- Throws:
AccessDeniedException
- if the user does not have edit content permission on the specified service instance.PortalException
- Since:
- 17.0.0
-
getTemplatesScript
@Path("/templatesScript") @GET @Produces("application/javascript;charset=utf-8") public java.lang.String getTemplatesScript() throws PortalException
Returns a script that loads the LumisXP HTML templates available in the field being edited as page builder blocks or sections.- Returns:
- the script.
- Throws:
PortalException
- Since:
- 17.0.0
-
-