public class

VersionBeanFactoryImpl

extends Object
implements VersionBeanFactory
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.issue.version.VersionBeanFactoryImpl

Class Overview

Implementation of VersionBeanFactory.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.rest.v2.issue.version.VersionBeanFactory
Public Constructors
VersionBeanFactoryImpl(VersionService versionService, UriInfo info, DateFieldFormat dateFieldFormat, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager)
This constructor is still present for backwards compatibility with JIRA mobile which unfortunately makes use of what is not public api.
VersionBeanFactoryImpl(VersionService versionService, RemoteVersionLinkService remoteVersionLinkService, UriInfo info, DateFieldFormat dateFieldFormat, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager)
Public Methods
VersionBean createVersionBean(Version version)
Create a VersionBean given the passed Version.
VersionBean createVersionBean(Version version, boolean expandOps, boolean expandRemoteLinks)
Create a VersionBean given the passed Version and whether or not to include available operations, but will not contain remote links.
VersionBean createVersionBean(Version version, boolean expandOps)
Create a VersionBean given the passed Version and whether or not to include available operations, but will not contain remote links.
List<VersionBean> createVersionBeans(Collection<? extends Version> versions, boolean expandOps)
Create a list of VersionBeans given the passed Versions.
List<VersionBean> createVersionBeans(Collection<? extends Version> versions, boolean expandOps, boolean expandRemoteLinks)
Create a list of VersionBeans given the passed Versions.
List<VersionBean> createVersionBeans(Collection<? extends Version> versions)
Create a list of VersionBeans given the passed Versions.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.rest.v2.issue.version.VersionBeanFactory

Public Constructors

public VersionBeanFactoryImpl (VersionService versionService, UriInfo info, DateFieldFormat dateFieldFormat, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager)

This constructor is still present for backwards compatibility with JIRA mobile which unfortunately makes use of what is not public api.

public VersionBeanFactoryImpl (VersionService versionService, RemoteVersionLinkService remoteVersionLinkService, UriInfo info, DateFieldFormat dateFieldFormat, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager)

Public Methods

public VersionBean createVersionBean (Version version)

Create a VersionBean given the passed Version. Will not include available operations or remote links.

Parameters
version the version to convert.
Returns
  • the VersionBean from the passed Version.

public VersionBean createVersionBean (Version version, boolean expandOps, boolean expandRemoteLinks)

Create a VersionBean given the passed Version and whether or not to include available operations, but will not contain remote links.

Parameters
version the version to convert.
expandOps whether or not to include the operations
expandRemoteLinks whether or not to include the remote entity links
Returns
  • the VersionBean from the passed Version.

public VersionBean createVersionBean (Version version, boolean expandOps)

Create a VersionBean given the passed Version and whether or not to include available operations, but will not contain remote links.

Parameters
version the version to convert.
expandOps whether or not to include the operations
Returns
  • the VersionBean from the passed Version.

public List<VersionBean> createVersionBeans (Collection<? extends Version> versions, boolean expandOps)

Create a list of VersionBeans given the passed Versions.

Parameters
versions the versions to convert.
expandOps whether or not to include available operations.
Returns
  • the VersionBeans for the passed Versions.

public List<VersionBean> createVersionBeans (Collection<? extends Version> versions, boolean expandOps, boolean expandRemoteLinks)

Create a list of VersionBeans given the passed Versions.

Parameters
versions the versions to convert.
expandOps whether or not to include available operations.
expandRemoteLinks whether or not to include the remote entity links
Returns
  • the VersionBeans for the passed Versions.

public List<VersionBean> createVersionBeans (Collection<? extends Version> versions)

Create a list of VersionBeans given the passed Versions. This will not include available operations

Parameters
versions the versions to convert.
Returns
  • the VersionBeans for the passed Versions.