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

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

public class CreateIssue
extends AbstractIssueSelectAction
implements Assignable, OperationContext

See Also:
Serialized Form

Nested Class Summary
static class CreateIssue.ButtonHolder
          struct for holding name:value string pairs.
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
protected  java.util.Map fieldValuesHolder
           
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, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
CreateIssue(IssueFactory issueFactory, IssueCreationHelperBean issueCreationHelperBean)
           
 
Method Summary
 java.lang.String doDefault()
           
protected  java.lang.String doExecute()
           
protected  void doValidation()
           
 java.util.Collection getAllowedProjects()
           
 java.lang.String getAssignee()
          Deprecated.  
 org.ofbiz.core.entity.GenericValue getAssignIn()
           
 java.util.List getButtons()
          Returns a list of CreateIssue.ButtonHolders for submit buttons required in addition to the standard 'submit' button.
 java.util.List getCustomFields(Issue issue)
           
 java.util.Map<java.lang.String,java.lang.Object> getDisplayParams()
           
protected  FieldScreenRenderer getFieldScreenRenderer()
           
 java.util.List getFieldScreenRenderTabs()
           
 java.util.Map getFieldValuesHolder()
           
 java.util.Collection getIgnoreFieldIds()
           
 MutableIssue getIssueObject()
          Returns the current Issue.
 IssueOperation getIssueOperation()
           
 java.lang.String getIssuetype()
           
 org.ofbiz.core.entity.GenericValue getIssueTypeGV()
           
protected  java.util.Collection getIssueTypesForProject(Project project)
          Returns a collection of non-sub-task issue types for the given project.
 java.lang.Long getPid()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
protected  java.lang.String getRedirectForCreateBypass()
           
 int getSelectedTab()
           
 java.lang.String getSubmitButtonName()
          Form submit button's i18n'ed name.
 java.util.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, java.util.Collection excludedFieldIds)
           
protected  void recordHistoryIssueType()
           
 void setAssignee(java.lang.String assignee)
          Deprecated.  
protected  void setHistoryIssuetype()
           
 void setIssuetype(java.lang.String issueType)
           
 void setPid(java.lang.Long pid)
           
protected  void validateIssueType()
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
cameFromIssue, cameFromParent, getId, getIssue, getIssueObjectNoSecurityCheck, getIssuePath, getKey, getLayoutBean, getParentIssueObject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getCommandName, 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.web.action.issue.IssueSummaryAware
getRemoteUser
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

fieldValuesHolder

protected java.util.Map fieldValuesHolder

issueObject

protected MutableIssue issueObject

issueCreationHelperBean

protected final IssueCreationHelperBean issueCreationHelperBean
Constructor Detail

CreateIssue

public CreateIssue(IssueFactory issueFactory,
                   IssueCreationHelperBean issueCreationHelperBean)
Method Detail

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
java.lang.Exception

getRedirectForCreateBypass

protected java.lang.String getRedirectForCreateBypass()

setHistoryIssuetype

protected void setHistoryIssuetype()

doValidation

protected void doValidation()
Overrides:
doValidation in class webwork.action.ActionSupport

validateIssueType

protected void validateIssueType()

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
java.lang.Exception

getIssueObject

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

Overrides:
getIssueObject in class AbstractIssueSelectAction
Returns:
The current issue.
See Also:
AbstractIssueSelectAction.getIssue()

recordHistoryIssueType

protected void recordHistoryIssueType()

getAllowedProjects

public java.util.Collection getAllowedProjects()

isAbleToCreateIssueInSelectedProject

public boolean isAbleToCreateIssueInSelectedProject()

getPid

public java.lang.Long getPid()

setPid

public void setPid(java.lang.Long pid)

getProject

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

getIssuetype

public java.lang.String getIssuetype()

setIssuetype

public void setIssuetype(java.lang.String issueType)

getIssueTypeGV

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

getAssignee

public java.lang.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(java.lang.String assignee)
Deprecated. 

Specified by:
setAssignee in interface Assignable

getFieldScreenRenderTabs

public java.util.List getFieldScreenRenderTabs()

getFieldScreenRenderer

protected FieldScreenRenderer getFieldScreenRenderer()

getAssignIn

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

populateFieldHolderWithDefaults

protected void populateFieldHolderWithDefaults(Issue issue,
                                               java.util.Collection excludedFieldIds)

getCustomFields

public java.util.List getCustomFields(Issue issue)

getFieldValuesHolder

public java.util.Map getFieldValuesHolder()
Specified by:
getFieldValuesHolder in interface OperationContext

getIssueOperation

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

getButtons

public java.util.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 java.util.Collection getTabsWithErrors()

getSelectedTab

public int getSelectedTab()

getIgnoreFieldIds

public java.util.Collection getIgnoreFieldIds()

getSubmitButtonName

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


getIssueTypesForProject

protected java.util.Collection getIssueTypesForProject(Project project)
Returns a collection of non-sub-task issue types for the given project.

Parameters:
project - project to get the issue types for
Returns:
a collection of non-sub-task issue types for the given project

getDisplayParams

public java.util.Map<java.lang.String,java.lang.Object> getDisplayParams()


Copyright © 2002-2010 Atlassian. All Rights Reserved.