com.atlassian.jira.project.version
Interface VersionManager

All Known Implementing Classes:
DefaultVersionManager

public interface VersionManager


Method Summary
 void archiveVersion(Version version, boolean archive)
           
 void archiveVersions(String[] idsToArchive, String[] idsToUnarchive)
           
 Version createVersion(String name, Date releaseDate, String description, org.ofbiz.core.entity.GenericValue project, Long scheduleAfterVersion)
           
 void decreaseVersionSequence(Version version)
          Move a version to have a higher sequence number - ie make it later
 void deleteVersion(String actionType, Version version, String affectsAction, Long affectsSwapVersionId, String fixAction, Long fixSwapVersionId)
           
 void editVersionDetails(Version version, String name, String description, org.ofbiz.core.entity.GenericValue project)
           
 void editVersionReleaseDate(Version version, Date duedate)
           
 Collection getAffectedVersionsByIssue(org.ofbiz.core.entity.GenericValue issue)
           
 Collection getAffectsIssues(Version version)
           
 Collection getAllAffectedIssues(Collection versions)
          Return all Issues that are assoicated with the specified versions
 Collection getFixIssues(Version version)
          Return Fix Issues
 Collection getFixVersionsByIssue(org.ofbiz.core.entity.GenericValue issue)
           
 Collection getOtherVersions(Version version)
          Return all other versions in the project except this one
 Version getVersion(org.ofbiz.core.entity.GenericValue project, String name)
           
 Version getVersion(Long id)
           
 Version getVersion(Long projectId, String versionName)
           
 List getVersions(org.ofbiz.core.entity.GenericValue project)
           
 Collection getVersions(List ids)
           
 Collection getVersionsArchived(org.ofbiz.core.entity.GenericValue projectGV)
           
 Collection getVersionsReleased(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
           
 Collection getVersionsReleasedDesc(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
           
 Collection getVersionsUnarchived(org.ofbiz.core.entity.GenericValue projectGV)
           
 Collection getVersionsUnreleased(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
           
 void increaseVersionSequence(Version version)
          Move a version to have a lower sequence number - ie make it earlier
 boolean isVersionOverDue(Version version)
           
 void moveIssuesToNewVersion(List issues, Version currentVersion, Version swapToVersion)
           
 void moveToEndVersionSequence(Version version)
          Move a version to to the end of the version sequence
 void moveToStartVersionSequence(Version version)
          Move a version to the start of the version list
 void releaseVersions(Collection versions, boolean release)
           
 

Method Detail

createVersion

public Version createVersion(String name,
                             Date releaseDate,
                             String description,
                             org.ofbiz.core.entity.GenericValue project,
                             Long scheduleAfterVersion)
                      throws CreateException,
                             org.ofbiz.core.entity.GenericEntityException
Throws:
CreateException
org.ofbiz.core.entity.GenericEntityException

moveToStartVersionSequence

public void moveToStartVersionSequence(Version version)
                                throws org.ofbiz.core.entity.GenericEntityException
Move a version to the start of the version list

Throws:
org.ofbiz.core.entity.GenericEntityException

increaseVersionSequence

public void increaseVersionSequence(Version version)
                             throws org.ofbiz.core.entity.GenericEntityException
Move a version to have a lower sequence number - ie make it earlier

Throws:
org.ofbiz.core.entity.GenericEntityException

decreaseVersionSequence

public void decreaseVersionSequence(Version version)
                             throws org.ofbiz.core.entity.GenericEntityException
Move a version to have a higher sequence number - ie make it later

Throws:
org.ofbiz.core.entity.GenericEntityException

moveToEndVersionSequence

public void moveToEndVersionSequence(Version version)
                              throws org.ofbiz.core.entity.GenericEntityException
Move a version to to the end of the version sequence

Throws:
org.ofbiz.core.entity.GenericEntityException

deleteVersion

public void deleteVersion(String actionType,
                          Version version,
                          String affectsAction,
                          Long affectsSwapVersionId,
                          String fixAction,
                          Long fixSwapVersionId)
                   throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

editVersionDetails

public void editVersionDetails(Version version,
                               String name,
                               String description,
                               org.ofbiz.core.entity.GenericValue project)
                        throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

releaseVersions

public void releaseVersions(Collection versions,
                            boolean release)
                     throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

moveIssuesToNewVersion

public void moveIssuesToNewVersion(List issues,
                                   Version currentVersion,
                                   Version swapToVersion)
                            throws org.ofbiz.core.entity.GenericEntityException,
                                   IndexException
Throws:
org.ofbiz.core.entity.GenericEntityException
IndexException

archiveVersions

public void archiveVersions(String[] idsToArchive,
                            String[] idsToUnarchive)
                     throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

archiveVersion

public void archiveVersion(Version version,
                           boolean archive)

getVersionsUnarchived

public Collection getVersionsUnarchived(org.ofbiz.core.entity.GenericValue projectGV)
                                 throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getVersionsArchived

public Collection getVersionsArchived(org.ofbiz.core.entity.GenericValue projectGV)
                               throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

editVersionReleaseDate

public void editVersionReleaseDate(Version version,
                                   Date duedate)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

isVersionOverDue

public boolean isVersionOverDue(Version version)

getVersions

public List getVersions(org.ofbiz.core.entity.GenericValue project)

getVersions

public Collection getVersions(List ids)

getVersion

public Version getVersion(Long id)

getVersion

public Version getVersion(Long projectId,
                          String versionName)

getVersion

public Version getVersion(org.ofbiz.core.entity.GenericValue project,
                          String name)

getVersionsUnreleased

public Collection getVersionsUnreleased(org.ofbiz.core.entity.GenericValue project,
                                        boolean includeArchived)

getVersionsReleased

public Collection getVersionsReleased(org.ofbiz.core.entity.GenericValue project,
                                      boolean includeArchived)

getVersionsReleasedDesc

public Collection getVersionsReleasedDesc(org.ofbiz.core.entity.GenericValue project,
                                          boolean includeArchived)

getOtherVersions

public Collection getOtherVersions(Version version)
                            throws org.ofbiz.core.entity.GenericEntityException
Return all other versions in the project except this one

Throws:
org.ofbiz.core.entity.GenericEntityException

getAllAffectedIssues

public Collection getAllAffectedIssues(Collection versions)
                                throws org.ofbiz.core.entity.GenericEntityException
Return all Issues that are assoicated with the specified versions

Throws:
org.ofbiz.core.entity.GenericEntityException

getFixIssues

public Collection getFixIssues(Version version)
                        throws org.ofbiz.core.entity.GenericEntityException
Return Fix Issues

Throws:
org.ofbiz.core.entity.GenericEntityException

getAffectsIssues

public Collection getAffectsIssues(Version version)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getAffectedVersionsByIssue

public Collection getAffectedVersionsByIssue(org.ofbiz.core.entity.GenericValue issue)
Returns:
A collection of 'affects' Versions for an issue.

getFixVersionsByIssue

public Collection getFixVersionsByIssue(org.ofbiz.core.entity.GenericValue issue)
Returns:
A collection of 'fix for' Versions for an issue.


Copyright © 2002-2006 Atlassian. All Rights Reserved.