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:
- OperationContext, ErrorCollection, I18nHelper, Assignable, IssueSummaryAware, HttpServletVariables, AuthorizationSupport, 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
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 |
addErrorMessage, assertIssueIsValid, cameFromIssue, cameFromParent, getId, getIssue, getIssueObjectWithoutDatabaseRead, getIssuePath, getKey, getLayoutBean, getParentIssueObject, getSecurityLevel, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, refreshIssueObject, setId, setIssueObject, setKey, setViewIssueKey |
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport |
addIssueToHistory, 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, isTimeTrackingEnabled, setSearchRequest, setSelectedIssueId, updateSearchRequest |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, getCommandName, 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 webwork.action.CommandDriven |
getCommandName, setCommand |
issueCreationHelperBean
protected final IssueCreationHelperBean issueCreationHelperBean
fieldValuesHolder
protected Map<String,Object> fieldValuesHolder
CreateIssue
public CreateIssue(IssueFactory issueFactory,
IssueCreationHelperBean issueCreationHelperBean)
doDefault
public String doDefault()
throws Exception
- Overrides:
doDefault
in class webwork.action.ActionSupport
- Throws:
Exception
getRedirectForCreateBypass
protected String getRedirectForCreateBypass()
setHistoryIssuetype
protected void setHistoryIssuetype()
doValidation
protected void doValidation()
- Overrides:
doValidation
in class webwork.action.ActionSupport
validateIssueType
protected void validateIssueType()
doExecute
protected String doExecute()
throws Exception
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Throws:
Exception
getIssueObject
public MutableIssue getIssueObject()
- Description copied from class:
AbstractIssueSelectAction
- Returns the current
Issue
. This method performs the same security checks as AbstractIssueSelectAction.getIssue()
.
- Overrides:
getIssueObject
in class AbstractIssueSelectAction
- Returns:
- The current issue.
- 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<CustomField> getCustomFields(Issue issue)
getFieldValuesHolder
public Map<String,Object> getFieldValuesHolder()
- Specified by:
getFieldValuesHolder
in interface OperationContext
getIssueOperation
public IssueOperation getIssueOperation()
- Specified by:
getIssueOperation
in interface OperationContext
getButtons
public 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.
- Specified by:
isHasProjectPermission
in interface AuthorizationSupport
- Overrides:
isHasProjectPermission
in class JiraWebActionSupport
- Parameters:
permissionsId
- the permission typeproject
- the Project
- Returns:
- true if the logged in user has the given permission type on the given Project.
hasProjectPermission
public boolean hasProjectPermission(int permissionsId,
Project project)
- This is a special case where the has permissions should be informed that a new Issue is being created.
- Specified by:
hasProjectPermission
in interface AuthorizationSupport
- Overrides:
hasProjectPermission
in class JiraWebActionSupport
- Parameters:
permissionsId
- the permission typeproject
- the Project
- Returns:
- true if the logged in user has the given permission type on the given Project.
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.
getIssueTypesForProject
protected 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 Map<String,Object> getDisplayParams()
Copyright © 2002-2014 Atlassian. All Rights Reserved.