com.atlassian.plugin.webresource
Interface WebResourceIntegration


public interface WebResourceIntegration

The integration layer between Plugin's Web Resource Handler, and specific applications (eg JIRA, Confluence).

See Also:
WebResourceManagerImpl#WebResourceManagerImpl(WebResourceIntegration)

Method Summary
 java.lang.String getBaseUrl()
          This should be the 'short' contextPath for the system.
 PluginAccessor getPluginAccessor()
          Applications must implement this method to get access to the application's PluginAccessor
 java.util.Map<java.lang.String,java.lang.Object> getRequestCache()
          This must be a thread-local cache that will be accessible from both the page, and the decorator
 java.lang.String getSystemBuildNumber()
          Represents the last time the system was updated.
 java.lang.String getSystemCounter()
          Represents the unique number for this system, which when updated will flush the cache.
 

Method Detail

getPluginAccessor

PluginAccessor getPluginAccessor()
Applications must implement this method to get access to the application's PluginAccessor


getRequestCache

java.util.Map<java.lang.String,java.lang.Object> getRequestCache()
This must be a thread-local cache that will be accessible from both the page, and the decorator


getSystemCounter

java.lang.String getSystemCounter()
Represents the unique number for this system, which when updated will flush the cache. This should be a number and is generally stored in the global application-properties.

Returns:
A string representing the count

getSystemBuildNumber

java.lang.String getSystemBuildNumber()
Represents the last time the system was updated. This is generally obtained from BuildUtils or similar.


getBaseUrl

java.lang.String getBaseUrl()
This should be the 'short' contextPath for the system. In most cases, this would equal request.getContextPath() (perhaps retrieved from a thread local), or else parsed from the application's base URL.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.