com.atlassian.jira.rest.v2.issue.version
Class VersionBeanFactoryImpl

java.lang.Object
  extended by com.atlassian.jira.rest.v2.issue.version.VersionBeanFactoryImpl
All Implemented Interfaces:
VersionBeanFactory

public class VersionBeanFactoryImpl
extends Object
implements 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
VersionBeanFactoryImpl(VersionService versionService, javax.ws.rs.core.UriInfo info, DateFieldFormat dateFieldFormat, JiraAuthenticationContext authContext, SimpleLinkManager simpleLinkManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionBeanFactoryImpl

public VersionBeanFactoryImpl(VersionService versionService,
                              javax.ws.rs.core.UriInfo info,
                              DateFieldFormat dateFieldFormat,
                              JiraAuthenticationContext authContext,
                              SimpleLinkManager simpleLinkManager)
Method Detail

createVersionBean

public VersionBean createVersionBean(Version version)
Description copied from interface: VersionBeanFactory
Create a VersionBean given the passed Version. Will not include available operations

Specified by:
createVersionBean in interface VersionBeanFactory
Parameters:
version - the version to convert.
Returns:
the VersionBean from the passed Version.

createVersionBean

public VersionBean createVersionBean(Version version,
                                     boolean expandOps)
Description copied from interface: VersionBeanFactory
Create a VersionBean given the passed Version and whether or not to include available operations.

Specified by:
createVersionBean in interface VersionBeanFactory
Parameters:
version - the version to convert.
expandOps - whether or not to include the operations
Returns:
the VersionBean from the passed Version.

createVersionBeans

public List<VersionBean> createVersionBeans(Collection<? extends Version> versions)
Description copied from interface: VersionBeanFactory
Create a list of VersionBeans given the passed Versions. This will not include available operations

Specified by:
createVersionBeans in interface VersionBeanFactory
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: VersionBeanFactory
Create a list of VersionBeans given the passed Versions.

Specified by:
createVersionBeans in interface VersionBeanFactory
Parameters:
versions - the versions to convert.
expandOps - whether or not to include available operations.
Returns:
the VersionBeans for the passed Versions.


Copyright © 2002-2013 Atlassian. All Rights Reserved.