Class VelocityFriendlyPageBuilderService
- java.lang.Object
-
- com.atlassian.confluence.setup.velocity.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 Summary
Constructors Constructor Description VelocityFriendlyPageBuilderService(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, ConfluenceWebResourceService confluenceWebResourceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConfluenceResourceTags(String styleSheetAction, String spaceKey)
String
getRequiredResources()
String
getResourceTags(String moduleCompleteKey)
String
getStaticPluginResource(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor, String resourceName)
String
getStaticPluginResource(String moduleCompleteKey, String resourceName)
String
getStaticResourcePrefix()
String
getStaticResourcePrefix(String resourceCounter)
String
getStaticResourcePrefix(String resourceCounter, com.atlassian.plugin.webresource.UrlMode urlMode)
void
includeResources(Writer writer)
void
requireResource(String moduleCompleteKey)
void
requireResource(String moduleCompleteKey, Writer writer)
void
requireResourcesForContext(String context)
-
-
-
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()
-
getStaticResourcePrefix
public String getStaticResourcePrefix()
-
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)
-
-