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

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.web.action.JiraWebActionSupport
              extended bycom.atlassian.jira.web.action.ProjectActionSupport
                  extended bycom.atlassian.jira.web.action.IssueActionSupport
                      extended bycom.atlassian.jira.web.action.issue.AbstractIssueSelectAction
                          extended bycom.atlassian.jira.web.action.issue.CreateIssue
All Implemented Interfaces:
webwork.action.Action, Assignable, webwork.action.CommandDriven, ErrorCollection, I18nHelper, webwork.action.IllegalArgumentAware, OperationContext, Serializable
Direct Known Subclasses:
CreateIssueDetails, CreateSubTaskIssue

public class CreateIssue
extends AbstractIssueSelectAction
implements Assignable, OperationContext

See Also:
Serialized Form

Nested Class Summary
 class CreateIssue.ButtonHolder
          struct for holding name:value string pairs.
 
Field Summary
protected  Map customFieldValuesHolder
           
protected  IssueCreationHelperBean issueCreationHelperBean
           
protected  MutableIssue issueObject
           
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
CreateIssue(IssueCreationHelperBean issueCreationHelperBean)
           
 
Method Summary
 String doDefault()
           
protected  String doExecute()
           
protected  void doValidation()
           
 Collection getAllowedProjects()
           
 String getAssignee()
          Deprecated.  
 org.ofbiz.core.entity.GenericValue getAssignIn()
           
 List getButtons()
          Returns a list of CreateIssue.ButtonHolders for submit buttons required in addition to the standard 'submit' button.
 List getCustomFields(Issue issue)
           
 Map getCustomFieldValuesHolder()
           
protected  FieldScreenRenderer getFieldScreenRenderer()
           
 List getFieldScreenRenderTabs()
           
 Collection getIgnoreFieldIds()
           
 MutableIssue getIssueObject()
          Returns the current Issue.
 IssueOperation getIssueOperation()
           
 String getIssuetype()
           
 org.ofbiz.core.entity.GenericValue getIssueTypeGV()
           
 Long getPid()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 int getSelectedTab()
           
 String getSubmitButtonName()
          Form submit button's i18n'ed name.
 Collection getTabsWithErrors()
           
 boolean isAbleToCreateIssueInSelectedProject()
           
 boolean isHasProjectPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project)
          This is a special case where the has permissions should be informed that a new Issue is being created.
protected  void populateFieldHolderWithDefaults(Issue issue, Collection excludedFieldIds)
           
protected  void recordHistoryIssueType()
           
 void setAssignee(String assignee)
          Deprecated.  
protected  void setHistoryIssuetype()
           
 void setIssuetype(String issueType)
           
 void setPid(Long pid)
           
protected  void validateIssueType()
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssueObjectNoSecurityCheck, getIssuePath, getKey, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, getViewIssueKey, getViewUrl, isEditable, isEditable, isIssueExists, isWorkflowAllowsEdit, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getCalendarTranslationFilenameForLanguage, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSavedFilters, getSelectedProject, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, isHasCalendarTranslationForLanguage, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

customFieldValuesHolder

protected Map customFieldValuesHolder

issueObject

protected MutableIssue issueObject

issueCreationHelperBean

protected final IssueCreationHelperBean issueCreationHelperBean
Constructor Detail

CreateIssue

public CreateIssue(IssueCreationHelperBean issueCreationHelperBean)
Method Detail

doDefault

public String doDefault()
                 throws Exception
Throws:
Exception

setHistoryIssuetype

protected void setHistoryIssuetype()

doValidation

protected void doValidation()

validateIssueType

protected void validateIssueType()

doExecute

protected String doExecute()
                    throws Exception
Throws:
Exception

getIssueObject

public MutableIssue getIssueObject()
Description copied from class: AbstractIssueSelectAction
Returns the current Issue.

Overrides:
getIssueObject in class AbstractIssueSelectAction
See Also:
AbstractIssueSelectAction.getIssue()

recordHistoryIssueType

protected void recordHistoryIssueType()

getAllowedProjects

public Collection getAllowedProjects()

isAbleToCreateIssueInSelectedProject

public boolean isAbleToCreateIssueInSelectedProject()

getPid

public Long getPid()

setPid

public void setPid(Long pid)

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Overrides:
getProject in class AbstractIssueSelectAction

getIssuetype

public String getIssuetype()

setIssuetype

public void setIssuetype(String issueType)

getIssueTypeGV

public org.ofbiz.core.entity.GenericValue getIssueTypeGV()

getAssignee

public String getAssignee()
Deprecated.  

This is just a 'niceness' method so that the default assignee selected on the next page, if assignees are allowed, is the project lead.

Specified by:
getAssignee in interface Assignable

setAssignee

public void setAssignee(String assignee)
Deprecated.  

Specified by:
setAssignee in interface Assignable

getFieldScreenRenderTabs

public List getFieldScreenRenderTabs()

getFieldScreenRenderer

protected FieldScreenRenderer getFieldScreenRenderer()

getAssignIn

public org.ofbiz.core.entity.GenericValue getAssignIn()
                                               throws Exception
Specified by:
getAssignIn in interface Assignable
Throws:
Exception

populateFieldHolderWithDefaults

protected void populateFieldHolderWithDefaults(Issue issue,
                                               Collection excludedFieldIds)

getCustomFields

public List getCustomFields(Issue issue)

getCustomFieldValuesHolder

public Map getCustomFieldValuesHolder()
Specified by:
getCustomFieldValuesHolder in interface OperationContext

getIssueOperation

public IssueOperation getIssueOperation()
Specified by:
getIssueOperation in interface OperationContext

getButtons

public List getButtons()
                throws WorkflowException
Returns a list of CreateIssue.ButtonHolders for submit buttons required in addition to the standard 'submit' button.

Throws:
WorkflowException

isHasProjectPermission

public boolean isHasProjectPermission(int permissionsId,
                                      org.ofbiz.core.entity.GenericValue project)
This is a special case where the has permissions should be informed that a new Issue is being created.

Overrides:
isHasProjectPermission in class JiraWebActionSupport

getTabsWithErrors

public Collection getTabsWithErrors()

getSelectedTab

public int getSelectedTab()

getIgnoreFieldIds

public Collection getIgnoreFieldIds()

getSubmitButtonName

public String getSubmitButtonName()
Form submit button's i18n'ed name. Usually 'Create', but possibly overridden in workflow.



Copyright © 2002-2006 Atlassian. All Rights Reserved.