Class VelocityFriendlyPageBuilderService


  • public class VelocityFriendlyPageBuilderService
    extends Object
    Shim class to allow various pageBuilderService and webResourceUrlProvider methods to be accessed from Velocity, which does not have the luxury of being able to pass in enum constants.
    • Constructor Detail

      • VelocityFriendlyPageBuilderService

        public VelocityFriendlyPageBuilderService​(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService,
                                                  com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory,
                                                  com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
                                                  ConfluenceWebResourceService confluenceWebResourceService)
    • Method Detail

      • requireResource

        public void requireResource​(String moduleCompleteKey)
      • requireResourcesForContext

        public void requireResourcesForContext​(String context)
      • includeResources

        public void includeResources​(Writer writer)
      • getRequiredResources

        public String getRequiredResources()
      • requireResource

        public void requireResource​(String moduleCompleteKey,
                                    Writer writer)
      • getResourceTags

        public String getResourceTags​(String moduleCompleteKey)
      • getStaticResourcePrefix

        public String getStaticResourcePrefix()
      • getStaticResourcePrefix

        public String getStaticResourcePrefix​(String resourceCounter)
      • getStaticResourcePrefix

        public String getStaticResourcePrefix​(String resourceCounter,
                                              com.atlassian.plugin.webresource.UrlMode urlMode)
      • getStaticPluginResource

        public String getStaticPluginResource​(String moduleCompleteKey,
                                              String resourceName)
      • getStaticPluginResource

        public String getStaticPluginResource​(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor,
                                              String resourceName)
      • getConfluenceResourceTags

        public String getConfluenceResourceTags​(String styleSheetAction,
                                                String spaceKey)