public class

VersionHelperBean

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.util.VersionHelperBean

Summary

Constants
String NEW_VERSION_RREFIX
Fields
public static final Long RELEASED_VERSION_ID
public static final Long UNKNOWN_VERSION_ID
public static final Long UNRELEASED_VERSION_ID
Public Constructors
VersionHelperBean(VersionManager versionManager)
VersionHelperBean(VersionManager versionManager, PermissionManager permissionManager)
Public Methods
List<Version> createNewVersions(Long projectId, Set<String> versionsToAdd)
Helper to create new versions when project admins add new versions via a create or edit operation!
void validateVersionForProject(Collection versionIds, Project project, ErrorCollection errorCollection, I18nHelper i18n, String fieldId)
boolean validateVersionIds(Collection versionIds, ErrorCollection errorCollection, I18nHelper i18n, String fieldId)
void validateVersionsToCreate(ApplicationUser user, I18nHelper i18n, Project project, String fieldId, Set<String> newVersionNames, ErrorCollection errorCollection)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String NEW_VERSION_RREFIX

Constant Value: "nv_"

Fields

public static final Long RELEASED_VERSION_ID

public static final Long UNKNOWN_VERSION_ID

public static final Long UNRELEASED_VERSION_ID

Public Constructors

public VersionHelperBean (VersionManager versionManager)

public VersionHelperBean (VersionManager versionManager, PermissionManager permissionManager)

Public Methods

public List<Version> createNewVersions (Long projectId, Set<String> versionsToAdd)

Helper to create new versions when project admins add new versions via a create or edit operation!

public void validateVersionForProject (Collection versionIds, Project project, ErrorCollection errorCollection, I18nHelper i18n, String fieldId)

public boolean validateVersionIds (Collection versionIds, ErrorCollection errorCollection, I18nHelper i18n, String fieldId)

public void validateVersionsToCreate (ApplicationUser user, I18nHelper i18n, Project project, String fieldId, Set<String> newVersionNames, ErrorCollection errorCollection)