public class VersionHelperBean extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NEW_VERSION_RREFIX
Deprecated.
since 6.3.8. Use
LongIdsValueHolder.NEW_VALUE_PREFIX instead. |
static Long |
RELEASED_VERSION_ID |
static Long |
UNKNOWN_VERSION_ID |
static Long |
UNRELEASED_VERSION_ID |
Constructor and Description |
---|
VersionHelperBean(VersionManager versionManager)
Deprecated.
|
VersionHelperBean(VersionManager versionManager,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final Long UNKNOWN_VERSION_ID
public static final Long UNRELEASED_VERSION_ID
public static final Long RELEASED_VERSION_ID
@Deprecated public static final String NEW_VERSION_RREFIX
LongIdsValueHolder.NEW_VALUE_PREFIX
instead.@Deprecated public VersionHelperBean(VersionManager versionManager)
VersionHelperBean(com.atlassian.jira.project.version.VersionManager,
com.atlassian.jira.security.PermissionManager)
instead.public VersionHelperBean(VersionManager versionManager, PermissionManager permissionManager)
public boolean validateVersionIds(Collection versionIds, ErrorCollection errorCollection, I18nHelper i18n, String fieldId)
public void validateVersionForProject(Collection versionIds, Project project, ErrorCollection errorCollection, I18nHelper i18n, String fieldId)
public void validateVersionsToCreate(ApplicationUser user, I18nHelper i18n, Project project, String fieldId, Set<String> newVersionNames, ErrorCollection errorCollection)
Copyright © 2002-2018 Atlassian. All Rights Reserved.