com.atlassian.jira.web.action.issue
Class IssueCreationHelperBeanImpl
java.lang.Object
com.atlassian.jira.web.action.issue.IssueCreationHelperBeanImpl
- All Implemented Interfaces:
- IssueCreationHelperBean
public class IssueCreationHelperBeanImpl
- extends Object
- implements IssueCreationHelperBean
Method Summary |
FieldScreenRenderer |
createFieldScreenRenderer(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issueObject)
Create a field screen renderer |
Field |
getField(String id)
|
List<OrderableField> |
getFieldsForCreate(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issueObject)
|
void |
updateIssueFromFieldValuesHolder(FieldScreenRenderer fieldScreenRenderer,
com.atlassian.crowd.embedded.api.User remoteUser,
MutableIssue issueObject,
Map fieldValuesHolder)
|
void |
validateCreateIssueFields(JiraServiceContext jiraServiceContext,
Collection<String> providedFields,
Issue issueObject,
FieldScreenRenderer fieldScreenRenderer,
OperationContext operationContext,
Map<String,String[]> actionParams,
boolean applyDefaults,
I18nHelper i18n)
|
void |
validateIssueType(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
|
void |
validateLicense(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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssueCreationHelperBeanImpl
public IssueCreationHelperBeanImpl(UserUtil userUtil,
FieldManager fieldManager,
FieldScreenRendererFactory fieldScreenRendererFactory,
JiraLicenseService jiraLicenseService,
JiraContactHelper jiraContactHelper)
validateCreateIssueFields
public void validateCreateIssueFields(JiraServiceContext jiraServiceContext,
Collection<String> providedFields,
Issue issueObject,
FieldScreenRenderer fieldScreenRenderer,
OperationContext operationContext,
Map<String,String[]> actionParams,
boolean applyDefaults,
I18nHelper i18n)
- Specified by:
validateCreateIssueFields
in interface IssueCreationHelperBean
validateLicense
public void validateLicense(ErrorCollection errors,
I18nHelper i18n)
- Specified by:
validateLicense
in interface IssueCreationHelperBean
updateIssueFromFieldValuesHolder
public void updateIssueFromFieldValuesHolder(FieldScreenRenderer fieldScreenRenderer,
com.atlassian.crowd.embedded.api.User remoteUser,
MutableIssue issueObject,
Map fieldValuesHolder)
- Specified by:
updateIssueFromFieldValuesHolder
in interface IssueCreationHelperBean
createFieldScreenRenderer
public FieldScreenRenderer createFieldScreenRenderer(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issueObject)
- Create a field screen renderer
- Specified by:
createFieldScreenRenderer
in interface IssueCreationHelperBean
- Parameters:
remoteUser
- issueObject
- - with issue type and project
getProvidedFieldNames
public List<String> getProvidedFieldNames(com.atlassian.crowd.embedded.api.User remoteUser,
Issue issueObject)
- Specified by:
getProvidedFieldNames
in interface IssueCreationHelperBean
getFieldsForCreate
public List<OrderableField> getFieldsForCreate(com.atlassian.crowd.embedded.api.User user,
Issue issueObject)
- Description copied from interface:
IssueCreationHelperBean
- Gets the fields that will be shown in the create issue screen for that issues project and issue type
- Specified by:
getFieldsForCreate
in interface IssueCreationHelperBean
- Parameters:
user
- the user in playissueObject
- 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
validateProject
public void validateProject(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
- Specified by:
validateProject
in interface IssueCreationHelperBean
validateIssueType
public void validateIssueType(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
- Specified by:
validateIssueType
in interface IssueCreationHelperBean
validateSummary
public void validateSummary(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
- Specified by:
validateSummary
in interface IssueCreationHelperBean
getField
public Field getField(String id)
Copyright © 2002-2013 Atlassian. All Rights Reserved.