public class IssueCreationHelperBeanImpl extends Object implements IssueCreationHelperBean
Constructor and Description |
---|
IssueCreationHelperBeanImpl(FieldManager fieldManager,
FieldScreenRendererFactory fieldScreenRendererFactory,
CreateIssueLicenseCheck licenseCheck,
JiraAuthenticationContext authenticationContext) |
Modifier and Type | Method and Description |
---|---|
FieldScreenRenderer |
createFieldScreenRenderer(ApplicationUser remoteUser,
Issue issueObject)
Create a field screen renderer
|
FieldScreenRenderer |
createFieldScreenRenderer(Issue issueObject) |
Field |
getField(String id) |
List<OrderableField> |
getFieldsForCreate(ApplicationUser user,
Issue issueObject)
Gets the fields that will be shown in the create issue screen for that issues project and issue type
|
List<String> |
getProvidedFieldNames(ApplicationUser remoteUser,
Issue issueObject) |
List<String> |
getProvidedFieldNames(Issue issueObject) |
void |
updateIssueFromFieldValuesHolder(FieldScreenRenderer fieldScreenRenderer,
MutableIssue issueObject,
Map fieldValuesHolder) |
void |
validateCreateIssueFields(JiraServiceContext jiraServiceContext,
Collection<String> providedFields,
Issue issueObject,
FieldScreenRenderer fieldScreenRenderer,
OperationContext operationContext,
IssueInputParameters issueInputParameters,
I18nHelper i18n) |
protected void |
validateCreateIssueFields(JiraServiceContext jiraServiceContext,
Collection<String> providedFields,
Issue issueObject,
FieldScreenRenderer fieldScreenRenderer,
OperationContext operationContext,
Map<String,String[]> actionParams,
boolean applyDefaults,
boolean skipScreenCheck,
I18nHelper i18n) |
void |
validateIssueType(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n) |
void |
validateLicense(ApplicationUser remoteUser,
ErrorCollection errors,
I18nHelper i18n) |
void |
validateLicense(ErrorCollection errors,
I18nHelper i18n)
Checks that the currently installed license has not expired and all relevant license limitations with
respect to user or role counts have not been exceeded.
|
void |
validateProject(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n) |
void |
validateSummary(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n) |
public IssueCreationHelperBeanImpl(@Nonnull FieldManager fieldManager, @Nonnull FieldScreenRendererFactory fieldScreenRendererFactory, @Nonnull CreateIssueLicenseCheck licenseCheck, JiraAuthenticationContext authenticationContext)
public void validateCreateIssueFields(JiraServiceContext jiraServiceContext, Collection<String> providedFields, Issue issueObject, FieldScreenRenderer fieldScreenRenderer, OperationContext operationContext, IssueInputParameters issueInputParameters, I18nHelper i18n)
validateCreateIssueFields
in interface IssueCreationHelperBean
protected void validateCreateIssueFields(JiraServiceContext jiraServiceContext, Collection<String> providedFields, Issue issueObject, FieldScreenRenderer fieldScreenRenderer, OperationContext operationContext, Map<String,String[]> actionParams, boolean applyDefaults, boolean skipScreenCheck, I18nHelper i18n)
public void validateLicense(ErrorCollection errors, I18nHelper i18n)
IssueCreationHelperBean
validateLicense
in interface IssueCreationHelperBean
LicenseDetails.isExpired()
public void validateLicense(ApplicationUser remoteUser, ErrorCollection errors, I18nHelper i18n)
validateLicense
in interface IssueCreationHelperBean
public void updateIssueFromFieldValuesHolder(FieldScreenRenderer fieldScreenRenderer, MutableIssue issueObject, Map fieldValuesHolder)
updateIssueFromFieldValuesHolder
in interface IssueCreationHelperBean
public FieldScreenRenderer createFieldScreenRenderer(ApplicationUser remoteUser, Issue issueObject)
createFieldScreenRenderer
in interface IssueCreationHelperBean
remoteUser
- issueObject
- - with issue type and projectpublic FieldScreenRenderer createFieldScreenRenderer(Issue issueObject)
createFieldScreenRenderer
in interface IssueCreationHelperBean
public List<String> getProvidedFieldNames(ApplicationUser remoteUser, Issue issueObject)
getProvidedFieldNames
in interface IssueCreationHelperBean
public List<String> getProvidedFieldNames(Issue issueObject)
getProvidedFieldNames
in interface IssueCreationHelperBean
public List<OrderableField> getFieldsForCreate(ApplicationUser user, Issue issueObject)
IssueCreationHelperBean
getFieldsForCreate
in interface IssueCreationHelperBean
user
- the user in playissueObject
- the as yet saved issue object encompassing project and issue typepublic void validateProject(Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)
validateProject
in interface IssueCreationHelperBean
public void validateIssueType(Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)
validateIssueType
in interface IssueCreationHelperBean
public void validateSummary(Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)
validateSummary
in interface IssueCreationHelperBean
Copyright © 2002-2015 Atlassian. All Rights Reserved.