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

java.lang.Object
  extended byActionSupport
      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:
Assignable, CustomFieldValuesAware
Direct Known Subclasses:
CreateIssueDetails

public class CreateIssue
extends AbstractIssueSelectAction
implements CustomFieldValuesAware, Assignable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
CreateIssue()
           
 
Method Summary
 java.lang.String doDefault()
           
protected  java.lang.String doExecute()
           
protected  void doValidation()
           
 java.util.Collection getAllowedProjects()
           
 java.lang.String getAssignee()
          This is just a 'niceness' method so that the default assignee selected on the next page, if assignees are allowed, is the project lead.
 GenericValue getAssignIn()
           
 java.util.List getCustomFieldOptions(GenericValue customField)
           
 CustomFieldValuesHolder getCustomFieldValuesHolder()
           
 java.lang.String getIssuetype()
           
 java.lang.String getIssueTypeDescription()
           
 GenericValue getIssueTypeGV()
           
 java.lang.Long getPid()
           
 java.lang.String getPriority()
           
 GenericValue getProject()
           
 java.util.List getRequiredLayoutItems()
          Should check the project and issue type selected and only retrieve the correct fields
 java.lang.Long getSecurity()
           
 java.util.List getVisibleFieldLayoutItems()
           
 void setAssignee(java.lang.String assignee)
           
 void setIssuetype(java.lang.String issueType)
           
 void setPid(java.lang.Long pid)
           
 void setPriority(java.lang.String priority)
           
 void setSecurity(java.lang.Long security)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssuePath, getKey, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, isIssueExists, resetIssue, setId, setIssue, setKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getSelectedProject, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDefaultAssignee, getField, getLocale, getOutlookDate, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getText, getText, getText, getText, getUserFullName, getUserPreferences, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, isIndexing
 
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.issue.customfields.CustomFieldValuesAware
addError, addErrorMessage
 

Constructor Detail

CreateIssue

public CreateIssue()
Method Detail

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Throws:
java.lang.Exception

doValidation

protected void doValidation()

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getAllowedProjects

public java.util.Collection getAllowedProjects()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getPid

public java.lang.Long getPid()

setPid

public void setPid(java.lang.Long pid)

getProject

public GenericValue getProject()
                        throws GenericEntityException
Overrides:
getProject in class AbstractIssueSelectAction
Throws:
GenericEntityException

getIssuetype

public java.lang.String getIssuetype()

setIssuetype

public void setIssuetype(java.lang.String issueType)

getIssueTypeGV

public GenericValue getIssueTypeGV()

getPriority

public java.lang.String getPriority()

setPriority

public void setPriority(java.lang.String priority)

getAssignee

public java.lang.String getAssignee()
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(java.lang.String assignee)
Specified by:
setAssignee in interface Assignable

getCustomFieldValuesHolder

public CustomFieldValuesHolder getCustomFieldValuesHolder()
                                                   throws GenericEntityException
Specified by:
getCustomFieldValuesHolder in interface CustomFieldValuesAware
Throws:
GenericEntityException

getCustomFieldOptions

public java.util.List getCustomFieldOptions(GenericValue customField)
                                     throws GenericEntityException
Throws:
GenericEntityException

getSecurity

public java.lang.Long getSecurity()

setSecurity

public void setSecurity(java.lang.Long security)

getRequiredLayoutItems

public java.util.List getRequiredLayoutItems()
Should check the project and issue type selected and only retrieve the correct fields

Returns:

getVisibleFieldLayoutItems

public java.util.List getVisibleFieldLayoutItems()

getAssignIn

public GenericValue getAssignIn()
                         throws java.lang.Exception
Specified by:
getAssignIn in interface Assignable
Throws:
java.lang.Exception

getIssueTypeDescription

public java.lang.String getIssueTypeDescription()