com.atlassian.jira.web.action.issue
Class CreateIssue
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
com.atlassian.jira.web.action.issue.CreateIssue
- All Implemented Interfaces:
- webwork.action.Action, Assignable, webwork.action.CommandDriven, CustomFieldValuesAware, ErrorCollection, I18nHelper, webwork.action.IllegalArgumentAware, java.io.Serializable
- Direct Known Subclasses:
- CreateIssueDetails, CreateSubTaskIssue
- public class CreateIssue
- extends AbstractIssueSelectAction
- implements Assignable, CustomFieldValuesAware
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction |
getDefaultSecurityLevel, getId, getIssue, getIssuePath, getKey, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, getViewIssueKey, getViewUrl, isEditable, isEditable, isIssueExists, 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, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addErrorCollection, getAssignableUsers, getAssignableUsers, getCachedGroups, getColumnViewHtml, getComponentManager, getConstantsManager, getCustomFieldHtml, getCustomFieldXML, getDefaultAssignee, getDefaultResourceBundle, getField, getLocale, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getText, getText, getText, getText, getText, getUserFullName, getUserPreferences, getVersionManager, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee, processDefaultAssignee, setReturnUrl |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getUnescapedText, getWatcherManager, hasAnyErrors, isIndexing |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, 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 webwork.action.CommandDriven |
setCommand |
pid
java.lang.Long pid
issuetype
java.lang.String issuetype
priority
java.lang.String priority
security
java.lang.Long security
reporter
protected java.lang.String reporter
customFieldValuesHolder
protected java.util.Map customFieldValuesHolder
CreateIssue
public CreateIssue()
doDefault
public java.lang.String doDefault()
throws java.lang.Exception
- Throws:
java.lang.Exception
setHistoryIssuetype
protected void setHistoryIssuetype()
doValidation
protected void doValidation()
validateProject
protected void validateProject()
throws java.lang.Exception
- Throws:
java.lang.Exception
validateIssueType
protected void validateIssueType()
doExecute
protected java.lang.String doExecute()
throws java.lang.Exception
- Throws:
java.lang.Exception
recordHistoryIssueType
protected void recordHistoryIssueType()
getIssueTypes
protected java.util.Collection getIssueTypes()
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 org.ofbiz.core.entity.GenericValue getProject()
throws org.ofbiz.core.entity.GenericEntityException
- Overrides:
getProject
in class AbstractIssueSelectAction
- Throws:
org.ofbiz.core.entity.GenericEntityException
getIssuetype
public java.lang.String getIssuetype()
setIssuetype
public void setIssuetype(java.lang.String issueType)
getIssueTypeGV
public org.ofbiz.core.entity.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
getSecurity
public java.lang.Long getSecurity()
setSecurity
public void setSecurity(java.lang.Long security)
isSubTask
public boolean isSubTask()
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 org.ofbiz.core.entity.GenericValue getAssignIn()
throws java.lang.Exception
- Specified by:
getAssignIn
in interface Assignable
- Throws:
java.lang.Exception
getIssueTypeDescription
public java.lang.String getIssueTypeDescription()
isAttachable
public boolean isAttachable()
throws java.lang.Exception
- Determine whether the current user can attach files to this issue
- Throws:
java.lang.Exception
getReporter
public java.lang.String getReporter()
setReporter
public void setReporter(java.lang.String reporter)
getCustomFields
public java.util.List getCustomFields()
throws org.ofbiz.core.entity.GenericEntityException
- Throws:
org.ofbiz.core.entity.GenericEntityException
getCustomFieldCreateHtml
public java.lang.String getCustomFieldCreateHtml(FieldLayoutItem fieldLayoutItem)
getCustomFieldValuesHolder
public java.util.Map getCustomFieldValuesHolder()
- Specified by:
getCustomFieldValuesHolder
in interface CustomFieldValuesAware
getButtons
public java.util.List getButtons()
throws WorkflowException
- Returns a list of
CreateIssue.ButtonHolder
s 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
getProjectIssueType
public ProjectIssueType getProjectIssueType()
Copyright © 2002-2005 Atlassian. All Rights Reserved.