com.atlassian.jira.rest.v2.issue.version
Interface VersionBeanFactory

All Known Implementing Classes:
VersionBeanFactoryImpl

public interface VersionBeanFactory

Simple factory used to create version beans from versions.

Since:
v4.4

Field Summary
static String VERSION_OPERATIONS_WEB_LOCATION
           
 
Method Summary
 VersionBean createVersionBean(Version version)
          Create a VersionBean given the passed Version.
 VersionBean createVersionBean(Version version, boolean expandOps)
          Create a VersionBean given the passed Version and whether or not to include available operations.
 List<VersionBean> createVersionBeans(Collection<? extends Version> versions)
          Create a list of VersionBeans given the passed Versions.
 List<VersionBean> createVersionBeans(Collection<? extends Version> versions, boolean expandOps)
          Create a list of VersionBeans given the passed Versions.
 

Field Detail

VERSION_OPERATIONS_WEB_LOCATION

static final String VERSION_OPERATIONS_WEB_LOCATION
See Also:
Constant Field Values
Method Detail

createVersionBean

VersionBean createVersionBean(Version version)
Create a VersionBean given the passed Version. Will not include available operations

Parameters:
version - the version to convert.
Returns:
the VersionBean from the passed Version.

createVersionBean

VersionBean createVersionBean(Version version,
                              boolean expandOps)
Create a VersionBean given the passed Version and whether or not to include available operations.

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

createVersionBeans

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.

createVersionBeans

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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.