public class

IssueCreationHelperBeanImpl

extends Object
implements IssueCreationHelperBean
java.lang.Object
   ↳ com.atlassian.jira.web.action.issue.IssueCreationHelperBeanImpl

Summary

Public Constructors
IssueCreationHelperBeanImpl(FieldManager fieldManager, FieldScreenRendererFactory fieldScreenRendererFactory, CreateIssueLicenseCheck licenseCheck, JiraAuthenticationContext authenticationContext)
Public Methods
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(Issue issueObject)
List<String> getProvidedFieldNames(ApplicationUser remoteUser, 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)
void validateIssueType(Issue issue, OperationContext operationContext, Map actionParams, 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 validateLicense(ApplicationUser remoteUser, ErrorCollection errors, I18nHelper i18n)
void validateProject(Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)
void validateSummary(Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)
Protected Methods
void validateCreateIssueFields(JiraServiceContext jiraServiceContext, Collection<String> providedFields, Issue issueObject, FieldScreenRenderer fieldScreenRenderer, OperationContext operationContext, Map<StringString[]> actionParams, boolean applyDefaults, boolean skipScreenCheck, I18nHelper i18n)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.action.issue.IssueCreationHelperBean

Public Constructors

public IssueCreationHelperBeanImpl (FieldManager fieldManager, FieldScreenRendererFactory fieldScreenRendererFactory, CreateIssueLicenseCheck licenseCheck, JiraAuthenticationContext authenticationContext)

Public Methods

public FieldScreenRenderer createFieldScreenRenderer (ApplicationUser remoteUser, Issue issueObject)

Create a field screen renderer

Parameters
issueObject - with issue type and project

public FieldScreenRenderer createFieldScreenRenderer (Issue issueObject)

public Field getField (String id)

public 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

Parameters
user the user in play
issueObject the as yet saved issue object encompassing project and issue type
Returns
  • the list of fields that will be shown on the create issue screen

public List<String> getProvidedFieldNames (Issue issueObject)

public List<String> getProvidedFieldNames (ApplicationUser remoteUser, Issue issueObject)

public void updateIssueFromFieldValuesHolder (FieldScreenRenderer fieldScreenRenderer, MutableIssue issueObject, Map fieldValuesHolder)

public void validateCreateIssueFields (JiraServiceContext jiraServiceContext, Collection<String> providedFields, Issue issueObject, FieldScreenRenderer fieldScreenRenderer, OperationContext operationContext, IssueInputParameters issueInputParameters, I18nHelper i18n)

public void validateIssueType (Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)

public 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.

public void validateLicense (ApplicationUser remoteUser, ErrorCollection errors, I18nHelper i18n)

public void validateProject (Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)

public void validateSummary (Issue issue, OperationContext operationContext, Map actionParams, ErrorCollection errors, I18nHelper i18n)

Protected Methods

protected void validateCreateIssueFields (JiraServiceContext jiraServiceContext, Collection<String> providedFields, Issue issueObject, FieldScreenRenderer fieldScreenRenderer, OperationContext operationContext, Map<StringString[]> actionParams, boolean applyDefaults, boolean skipScreenCheck, I18nHelper i18n)