com.atlassian.confluence.setup.velocity
Class WebResourceContextItemProvider

java.lang.Object
  extended by com.atlassian.confluence.setup.velocity.WebResourceContextItemProvider
All Implemented Interfaces:
VelocityContextItemProvider

public class WebResourceContextItemProvider
extends java.lang.Object
implements VelocityContextItemProvider

Context map provider for information from the WebResourceManager and its kin. Since the WebResourceManager was refactored to take UrlModes in its important methods (and it's impossible to pass such a beast in from Velocity), all references to the manager from Velocity ended up being deprecated calls.


Field Summary
static java.lang.String STATIC_RESOURCE_URL_PREFIX
           
static java.lang.String WEB_RESOURCE_HELPER
           
 
Constructor Summary
WebResourceContextItemProvider(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, ConfluenceWebResourceService confluenceWebResourceService)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getContextMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATIC_RESOURCE_URL_PREFIX

public static final java.lang.String STATIC_RESOURCE_URL_PREFIX
See Also:
Constant Field Values

WEB_RESOURCE_HELPER

public static final java.lang.String WEB_RESOURCE_HELPER
See Also:
Constant Field Values
Constructor Detail

WebResourceContextItemProvider

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

getContextMap

public java.util.Map<java.lang.String,java.lang.Object> getContextMap()
Specified by:
getContextMap in interface VelocityContextItemProvider
Returns:
A map of values to be used within a Velocity Context. Must not be null


Copyright © 2003-2014 Atlassian. All Rights Reserved.