Class PluginVersionImpl

java.lang.Object
com.atlassian.jira.plugin.PluginVersionImpl
All Implemented Interfaces:
PluginVersion, Serializable

public class PluginVersionImpl extends Object implements PluginVersion
Since:
v3.13
See Also:
  • Constructor Details

    • PluginVersionImpl

      public PluginVersionImpl(String key, String name, String version, Date created)
      Used to create a representation of a PluginVersion when the persistent id is not known.
      Parameters:
      key - plugin key.
      name - plugin name.
      version - plugin version.
      created - date this is being created
    • PluginVersionImpl

      public PluginVersionImpl(Long id, String key, String name, String version, Date created)
      Used to create a representation of a PluginVersion which is stored in database.
      Parameters:
      id - the database id of the stored record.
      key - plugin key.
      name - plugin name.
      version - plugin version.
      created - date this is being created
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface PluginVersion
      Returns:
      the id of the PluginVersion record.
    • getKey

      public String getKey()
      Specified by:
      getKey in interface PluginVersion
      Returns:
      the string representing the plugins key. This is the key that you can access the plugin with via a call to PluginAccessor.getPlugin(String).
    • getName

      public String getName()
      Specified by:
      getName in interface PluginVersion
      Returns:
      the descriptive name of the plugin.
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface PluginVersion
      Returns:
      a string representing the version of the plugin.
    • getCreated

      public Date getCreated()
      Specified by:
      getCreated in interface PluginVersion
      Returns:
      the date this plugin version was added/updated in the database.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object