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(java.lang.String[] idsToArchive, java.lang.String[] idsToUnarchive)
           
 Version createVersion(java.lang.String name, java.util.Date releaseDate, java.lang.String description, org.ofbiz.core.entity.GenericValue project, java.lang.Long scheduleAfterVersion)
           
 void decreaseVersionSequence(Version version)
          Move a version to have a higher sequence number - ie make it later
 void deleteVersion(java.lang.String actionType, Version version, java.lang.String affectsAction, java.lang.Long affectsSwapVersionId, java.lang.String fixAction, java.lang.Long fixSwapVersionId)
           
 void editVersionDetails(Version version, java.lang.String name, java.lang.String description, org.ofbiz.core.entity.GenericValue project)
           
 void editVersionReleaseDate(Version version, java.util.Date duedate)
           
 java.util.Collection getAffectsIssues(Version version)
           
 java.util.Collection getAllAffectedIssues(java.util.Collection versions)
          Return all Issues that are assoicated with the specified versions
 java.util.Collection getFixIssues(Version version)
          Return Fix Issues
 java.util.Collection getOtherVersions(Version version)
          Return all other versions in the project except this one
 Version getVersion(org.ofbiz.core.entity.GenericValue project, java.lang.String name)
           
 Version getVersion(java.lang.Long id)
           
 Version getVersion(java.lang.Long projectId, java.lang.String versionName)
           
 java.util.List getVersions(org.ofbiz.core.entity.GenericValue project)
           
 java.util.Collection getVersions(java.util.List ids)
           
 java.util.Collection getVersionsArchived(org.ofbiz.core.entity.GenericValue projectGV)
           
 java.util.Collection getVersionsReleased(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
           
 java.util.Collection getVersionsReleasedDesc(org.ofbiz.core.entity.GenericValue project, boolean includeArchived)
           
 java.util.Collection getVersionsUnarchived(org.ofbiz.core.entity.GenericValue projectGV)
           
 java.util.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(java.util.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(java.util.Collection versions, boolean release)
           
 

Method Detail

createVersion

public Version createVersion(java.lang.String name,
                             java.util.Date releaseDate,
                             java.lang.String description,
                             org.ofbiz.core.entity.GenericValue project,
                             java.lang.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(java.lang.String actionType,
                          Version version,
                          java.lang.String affectsAction,
                          java.lang.Long affectsSwapVersionId,
                          java.lang.String fixAction,
                          java.lang.Long fixSwapVersionId)
                   throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

editVersionDetails

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

releaseVersions

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

moveIssuesToNewVersion

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

archiveVersions

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

archiveVersion

public void archiveVersion(Version version,
                           boolean archive)

getVersionsUnarchived

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

getVersionsArchived

public java.util.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,
                                   java.util.Date duedate)
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

isVersionOverDue

public boolean isVersionOverDue(Version version)

getVersions

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

getVersions

public java.util.Collection getVersions(java.util.List ids)

getVersion

public Version getVersion(java.lang.Long id)

getVersion

public Version getVersion(java.lang.Long projectId,
                          java.lang.String versionName)

getVersion

public Version getVersion(org.ofbiz.core.entity.GenericValue project,
                          java.lang.String name)
                   throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getVersionsUnreleased

public java.util.Collection getVersionsUnreleased(org.ofbiz.core.entity.GenericValue project,
                                                  boolean includeArchived)
                                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getVersionsReleased

public java.util.Collection getVersionsReleased(org.ofbiz.core.entity.GenericValue project,
                                                boolean includeArchived)
                                         throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getVersionsReleasedDesc

public java.util.Collection getVersionsReleasedDesc(org.ofbiz.core.entity.GenericValue project,
                                                    boolean includeArchived)
                                             throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getOtherVersions

public java.util.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 java.util.Collection getAllAffectedIssues(java.util.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 java.util.Collection getFixIssues(Version version)
                                  throws org.ofbiz.core.entity.GenericEntityException
Return Fix Issues

Throws:
org.ofbiz.core.entity.GenericEntityException

getAffectsIssues

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


Copyright © 2002-2005 Atlassian. All Rights Reserved.