@ThreadSafe @Immutable public class

SimplePluginsTracker

extends Object
implements PluginsTracker
java.lang.Object
   ↳ com.atlassian.jira.plugin.util.SimplePluginsTracker

Summary

Public Constructors
SimplePluginsTracker(List<Plugin> trackedPlugins)
Public Methods
String getStateHashCode()
Return a hash that represents all the plugins in this tracker.
boolean isPluginInvolved(ModuleDescriptor moduleDescriptor)
Returns true if the plugin that this ModuleDescriptor belongs to is being tracked
boolean isPluginInvolved(Plugin plugin)
Returns true if the plugin is being tracked
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.util.PluginsTracker

Public Constructors

public SimplePluginsTracker (List<Plugin> trackedPlugins)

Public Methods

public String getStateHashCode ()

Return a hash that represents all the plugins in this tracker. This hash should change if the list of plugins being tracked changes.

It is used to help generate a cache busting WebResource URL prefix. That is, if this hash changes then it is likely that the URLs to all of JIRA's WebResources will change which will force all browsers to request all resources again.

Returns
  • Return a hash that represents all the plugins in this tracker.

public boolean isPluginInvolved (ModuleDescriptor moduleDescriptor)

Returns true if the plugin that this ModuleDescriptor belongs to is being tracked

Parameters
moduleDescriptor the ModuleDescriptor of the plugin in play
Returns
  • true if the underlying plugin is being tracked

public boolean isPluginInvolved (Plugin plugin)

Returns true if the plugin is being tracked

Parameters
plugin the plugin in play
Returns
  • true if the underlying plugin is being tracked

public String toString ()