Class VersionBeanFactoryImpl
java.lang.Object
com.atlassian.jira.rest.v2.issue.version.VersionBeanFactoryImpl
- All Implemented Interfaces:
VersionBeanFactory
Implementation of
VersionBeanFactory.- Since:
- v4.4
-
Field Summary
Fields inherited from interface com.atlassian.jira.rest.v2.issue.version.VersionBeanFactory
VERSION_OPERATIONS_WEB_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionVersionBeanFactoryImpl(VersionService versionService, RemoteVersionLinkService remoteVersionLinkService, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager, JiraBaseUrls baseUrls, VersionDateFormatter versionDateFormatter) VersionBeanFactoryImpl(VersionService versionService, jakarta.ws.rs.core.UriInfo info, DateFieldFormat dateFieldFormat, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateVersionBean(Version version) Create a VersionBean given the passed Version.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.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.createVersionBeans(Collection<? extends Version> versions) Create a list of VersionBeans given the passed Versions.createVersionBeans(Collection<? extends Version> versions, boolean expandOps) Create a list of VersionBeans given the passed Versions.createVersionBeans(Collection<? extends Version> versions, boolean expandOps, boolean expandRemoteLinks) Create a list of VersionBeans given the passed Versions.
-
Constructor Details
-
VersionBeanFactoryImpl
@Deprecated public VersionBeanFactoryImpl(VersionService versionService, jakarta.ws.rs.core.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
public VersionBeanFactoryImpl(VersionService versionService, RemoteVersionLinkService remoteVersionLinkService, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager, JiraBaseUrls baseUrls, VersionDateFormatter versionDateFormatter)
-
-
Method Details
-
createVersionBean
Description copied from interface:VersionBeanFactoryCreate a VersionBean given the passed Version. Will not include available operations or remote links.- Specified by:
createVersionBeanin interfaceVersionBeanFactory- Parameters:
version- the version to convert.- Returns:
- the VersionBean from the passed Version.
-
createVersionBean
Description copied from interface:VersionBeanFactoryCreate a VersionBean given the passed Version and whether or not to include available operations, but will not contain remote links.- Specified by:
createVersionBeanin interfaceVersionBeanFactory- Parameters:
version- the version to convert.expandOps- whether or not to include the operations- Returns:
- the VersionBean from the passed Version.
-
createVersionBean
Description copied from interface:VersionBeanFactoryCreate a VersionBean given the passed Version and whether or not to include available operations, but will not contain remote links.- Specified by:
createVersionBeanin interfaceVersionBeanFactory- Parameters:
version- the version to convert.expandOps- whether or not to include the operationsexpandRemoteLinks- whether or not to include the remote entity links- Returns:
- the VersionBean from the passed Version.
-
createVersionBeans
Description copied from interface:VersionBeanFactoryCreate a list of VersionBeans given the passed Versions. This will not include available operations- Specified by:
createVersionBeansin interfaceVersionBeanFactory- Parameters:
versions- the versions to convert.- Returns:
- the VersionBeans for the passed Versions.
-
createVersionBeans
public List<VersionBean> createVersionBeans(Collection<? extends Version> versions, boolean expandOps) Description copied from interface:VersionBeanFactoryCreate a list of VersionBeans given the passed Versions.- Specified by:
createVersionBeansin interfaceVersionBeanFactory- Parameters:
versions- the versions to convert.expandOps- whether or not to include available operations.- Returns:
- the VersionBeans for the passed Versions.
-
createVersionBeans
public List<VersionBean> createVersionBeans(Collection<? extends Version> versions, boolean expandOps, boolean expandRemoteLinks) Description copied from interface:VersionBeanFactoryCreate a list of VersionBeans given the passed Versions.- Specified by:
createVersionBeansin interfaceVersionBeanFactory- 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.
-
VersionBeanFactoryImpl(VersionService, RemoteVersionLinkService, JiraAuthenticationContext, SimpleLinkManager, JiraBaseUrls, VersionDateFormatter)