com.atlassian.jira.project.version.VersionStore |
Known Indirect Subclasses
|
Interface for the VersionStore.
This is used by the VersionManager to store and retrieve Project Versions.
Most of the methods still work with GenericValue
s, because this happens to be useful to the DefaultVersionManager.
(Specifically, it uses EntityUtil.filterByAnd() to filter the List of GenericValues returned by the getAllVersions() method).
On the other hand, storeVersions() takes a List of Version objects because this is what the DefaultVersionManager wants.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a list of GenericValues representing all Versions in JIRA, ordered by sequence.
| |||||||||||
Returns a list of GenericValues representing all Versions in JIRA with a given name, case insensitively.
| |||||||||||
Returns a list of GenericValues representing all Versions in a project.
| |||||||||||
Stores an individual Version in the DB.
| |||||||||||
Stores a collection of Version objects.
|
Returns a list of GenericValues representing all Versions in JIRA, ordered by sequence.
Returns a list of GenericValues representing all Versions in JIRA with a given name, case insensitively.
name | Version name |
---|
Returns a list of GenericValues representing all Versions in a project.
projectId | Project Id |
---|
Stores an individual Version in the DB.
If you want to store a collection of Versions, consider using storeVersions(Collection
, it can be more efficient.
version | The Version to store. |
---|
Stores a collection of Version objects.
This method can have performance benefits over calling storeVersion()
multiple times.
eg the
CachingVersionStore
will reload the cache from DB with every call to storeVersion()
.
versions | Collection of Version objects. |
---|