Class PageVariablesAction

    • Constructor Detail

      • PageVariablesAction

        public PageVariablesAction()
    • Method Detail

      • execute

        @XsrfProtectionExcluded
        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • getRenderedTemplateContent

        public String getRenderedTemplateContent()
        get rendered template content 1) manually injected script in renderedTemplateContent will be removed to avoid XSS 2) script from html macro will be parsed according to the specified template ID and will be added to renderedTemplateContent
      • setRenderedTemplateContent

        public void setRenderedTemplateContent​(String renderedTemplateContent)
      • validate

        public void validate()
        Description copied from class: AbstractPreviewPageAction
        Convert the editor content to storageFormat, catching and reporting any problems in the process. On successful validation, the storageFormat field will be populated with a storage format representation of the editor content, ready for saving.
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class CreatePageAction
      • isPermitted

        public boolean isPermitted()
        This action is being used to set up the content for the CreatePageAction, so the permissions test is not needed (and doesn't work, as the final space the page will be created in hasn't been chosen yet)
        Overrides:
        isPermitted in class CreatePageAction
      • isTemplateApplied

        public boolean isTemplateApplied()
      • setTemplateApplied

        public void setTemplateApplied​(boolean templateApplied)
      • setEditorFormatService

        @Deprecated
        public void setEditorFormatService​(EditorFormatService editorFormatService)
        Deprecated.
        since 5.10. Unused.
      • setXhtmlContent

        public void setXhtmlContent​(XhtmlContent xhtmlContent)
      • setRenderedContentCleaner

        public void setRenderedContentCleaner​(RenderedContentCleaner renderedContentCleaner)