com.atlassian.jira.plugin
Class PluginVersionImpl
java.lang.Object
com.atlassian.jira.plugin.PluginVersionImpl
- All Implemented Interfaces:
- PluginVersion
public class PluginVersionImpl
- extends java.lang.Object
- implements PluginVersion
- Since:
- v3.13
Constructor Summary |
PluginVersionImpl(java.lang.Long id,
java.lang.String key,
java.lang.String name,
java.lang.String version,
java.util.Date created)
Used to create a representation of a PluginVersion which is stored in database. |
PluginVersionImpl(java.lang.String key,
java.lang.String name,
java.lang.String version,
java.util.Date created)
Used to create a representation of a PluginVersion when the persistent id is not known. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PluginVersionImpl
public PluginVersionImpl(java.lang.String key,
java.lang.String name,
java.lang.String version,
java.util.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(java.lang.Long id,
java.lang.String key,
java.lang.String name,
java.lang.String version,
java.util.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
getId
public java.lang.Long getId()
- Specified by:
getId
in interface PluginVersion
- Returns:
- the id of the PluginVersion record.
getKey
public java.lang.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 java.lang.String getName()
- Specified by:
getName
in interface PluginVersion
- Returns:
- the descriptive name of the plugin.
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interface PluginVersion
- Returns:
- a string representing the version of the plugin.
getCreated
public java.util.Date getCreated()
- Specified by:
getCreated
in interface PluginVersion
- Returns:
- the date this plugin version was added/updated in the database.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2002-2011 Atlassian. All Rights Reserved.