@PublicApi public interface

Version

implements OfBizValueWrapper ProjectConstant NamedWithDescription
com.atlassian.jira.project.version.Version
Known Indirect Subclasses

@PublicApi

This interface is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Summary

Public Methods
@Nullable String getDescription()
Long getId()
String getName()
GenericValue getProject()
This method is deprecated. Please use getProjectObject(). Since v4.0
Long getProjectId()
Returns the ID of the project that this version belongs to.
Project getProjectObject()
Returns project this version relates to.
@Nullable Date getReleaseDate()
Long getSequence()
@Nullable Date getStartDate()
Returns the start date of the version
boolean isArchived()
boolean isReleased()
void setArchived(boolean archived)
void setDescription(String description)
void setName(String name)
void setReleaseDate(Date releasedate)
void setReleased(boolean released)
void setSequence(Long sequence)
void setStartDate(Date startDate)
Sets the start date of the version
[Expand]
Inherited Methods
From interface com.atlassian.jira.ofbiz.OfBizValueWrapper
From interface com.atlassian.jira.project.ProjectConstant
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription

Public Methods

@Nullable public String getDescription ()

public Long getId ()

public String getName ()

public GenericValue getProject ()

This method is deprecated.
Please use getProjectObject(). Since v4.0

Returns Project as a GenericValue.

Returns
  • Project as a GenericValue.

public Long getProjectId ()

Returns the ID of the project that this version belongs to.

Returns
  • the ID of the project that this version belongs to.

public Project getProjectObject ()

Returns project this version relates to.

Returns
  • project domain object

@Nullable public Date getReleaseDate ()

public Long getSequence ()

@Nullable public Date getStartDate ()

Returns the start date of the version

Returns
  • The start date of the version

public boolean isArchived ()

public boolean isReleased ()

public void setArchived (boolean archived)

public void setDescription (String description)

public void setName (String name)

public void setReleaseDate (Date releasedate)

public void setReleased (boolean released)

public void setSequence (Long sequence)

public void setStartDate (Date startDate)

Sets the start date of the version

Parameters
startDate The start date of the version