com.atlassian.jira.plugin
Class PluginVersionImpl

java.lang.Object
  extended by com.atlassian.jira.plugin.PluginVersionImpl
All Implemented Interfaces:
PluginVersion

public class PluginVersionImpl
extends Object
implements PluginVersion

Since:
v3.13

Constructor Summary
PluginVersionImpl(Long id, String key, String name, String version, Date created)
          Used to create a representation of a PluginVersion which is stored in database.
PluginVersionImpl(String key, String name, String version, Date created)
          Used to create a representation of a PluginVersion when the persistent id is not known.
 
Method Summary
 boolean equals(Object o)
           
 Date getCreated()
           
 Long getId()
           
 String getKey()
           
 String getName()
           
 String getVersion()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.