com.atlassian.jira.web.action.issue
Class IssueCreationHelperBeanImpl

java.lang.Object
  extended by com.atlassian.jira.web.action.issue.IssueCreationHelperBeanImpl
All Implemented Interfaces:
IssueCreationHelperBean

public class IssueCreationHelperBeanImpl
extends java.lang.Object
implements IssueCreationHelperBean


Constructor Summary
IssueCreationHelperBeanImpl(UserUtil userUtil, FieldManager fieldManager, FieldScreenRendererFactory fieldScreenRendererFactory, JiraLicenseService jiraLicenseService)
           
 
Method Summary
 FieldScreenRenderer createFieldScreenRenderer(com.opensymphony.user.User remoteUser, Issue issueObject)
          Create a field screen renderer
 Field getField(java.lang.String id)
           
 java.util.List<java.lang.String> getProvidedFieldNames(com.opensymphony.user.User remoteUser, Issue issueObject)
           
 void updateIssueFromFieldValuesHolder(FieldScreenRenderer fieldScreenRenderer, com.opensymphony.user.User remoteUser, MutableIssue issueObject, java.util.Map fieldValuesHolder)
           
 void validateCreateIssueFields(JiraServiceContext jiraServiceContext, java.util.Collection<java.lang.String> providedFields, Issue issueObject, FieldScreenRenderer fieldScreenRenderer, OperationContext operationContext, java.util.Map<java.lang.String,java.lang.String[]> actionParams, I18nHelper i18n)
           
 void validateIssueType(Issue issue, OperationContext operationContext, java.util.Map actionParams, ErrorCollection errors, I18nHelper i18n)
           
 void validateLicense(ErrorCollection errors, I18nHelper i18n)
           
 void validateProject(Issue issue, OperationContext operationContext, java.util.Map actionParams, ErrorCollection errors, I18nHelper i18n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueCreationHelperBeanImpl

public IssueCreationHelperBeanImpl(UserUtil userUtil,
                                   FieldManager fieldManager,
                                   FieldScreenRendererFactory fieldScreenRendererFactory,
                                   JiraLicenseService jiraLicenseService)
Method Detail

validateCreateIssueFields

public void validateCreateIssueFields(JiraServiceContext jiraServiceContext,
                                      java.util.Collection<java.lang.String> providedFields,
                                      Issue issueObject,
                                      FieldScreenRenderer fieldScreenRenderer,
                                      OperationContext operationContext,
                                      java.util.Map<java.lang.String,java.lang.String[]> actionParams,
                                      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.opensymphony.user.User remoteUser,
                                             MutableIssue issueObject,
                                             java.util.Map fieldValuesHolder)
Specified by:
updateIssueFromFieldValuesHolder in interface IssueCreationHelperBean

createFieldScreenRenderer

public FieldScreenRenderer createFieldScreenRenderer(com.opensymphony.user.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 java.util.List<java.lang.String> getProvidedFieldNames(com.opensymphony.user.User remoteUser,
                                                              Issue issueObject)
Specified by:
getProvidedFieldNames in interface IssueCreationHelperBean

validateProject

public void validateProject(Issue issue,
                            OperationContext operationContext,
                            java.util.Map actionParams,
                            ErrorCollection errors,
                            I18nHelper i18n)
Specified by:
validateProject in interface IssueCreationHelperBean

validateIssueType

public void validateIssueType(Issue issue,
                              OperationContext operationContext,
                              java.util.Map actionParams,
                              ErrorCollection errors,
                              I18nHelper i18n)
Specified by:
validateIssueType in interface IssueCreationHelperBean

getField

public Field getField(java.lang.String id)


Copyright © 2002-2010 Atlassian. All Rights Reserved.