public abstract class AbstractIssueLinkAction extends AbstractCommentableIssue implements OperationContext
JiraWebActionSupport.MessageTypeErrorCollection.ReasonI18nHelper.BeanFactory| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.event.api.EventPublisher |
eventPublisher |
protected RemoteIssueLinkService |
remoteIssueLinkService |
protected RemoteIssueLinkService.CreateValidationResult |
validationResult |
userUtilid, ISSUE_PERMISSION_ERROR, PREPOPULATED_ISSUE_OBJECTattachmentManagerprojectManagerISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilterslog| Constructor and Description |
|---|
AbstractIssueLinkAction(SubTaskManager subTaskManager,
FieldScreenRendererFactory fieldScreenRendererFactory,
FieldManager fieldManager,
ProjectRoleManager projectRoleManager,
CommentService commentService,
UserUtil userUtil,
RemoteIssueLinkService remoteIssueLinkService,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
RemoteIssueLinkService.RemoteIssueLinkResult |
createLink()
Creates the link and publishes an event for the creation
|
RemoteIssueLinkService.RemoteIssueLinkResult |
createLink(RemoteIssueLinkService.CreateValidationResult validationResult)
Creates the link and publishes an event for the creation
|
String |
doDefault()
The "default" command.
|
protected void |
doValidation()
Validate that the user has permission to link issues, and that the comment field is valid.
|
String |
getCommentSectionHtml() |
Map<String,Object> |
getDisplayParams() |
static KeyboardShortcutManager.Context |
getKeyboardShortcutContext() |
static String |
getModifierKey() |
protected String |
getRedirectUrl()
Returns the URL to redirect to after successfully creating the issue link.
|
protected void |
handleCredentialsRequired() |
boolean |
isRequiresCredentials() |
boolean |
isValidToView()
Returns true if the contents of the action should be shown, false if otherwise.
|
createComment, doCommentValidation, getComment, getCommentLevel, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getFieldValuesHolder, getGroupLevel, getGroupLevels, getIssueOperation, getOrderableField, getRoleLevels, populateCommentFields, setComment, setCommentLevel, setFieldValuesHolder, setGroupLevelgetAttachments, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirstaddErrorMessage, assertIssueIsValid, cameFromIssue, cameFromParent, getId, getIssue, getIssueObject, getIssueObjectWithoutDatabaseRead, getIssuePath, getKey, getLayoutBean, getMutableIssue, getParentIssueObject, getProject, getProjectObject, getSecurityLevel, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, refreshIssueObject, setId, setIssueObject, setKey, setViewIssueKeyaddIssueToHistory, clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getFormToken, 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, setFormToken, setSearchRequest, setSelectedIssueId, updateSearchRequestgetBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProjectaddError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, 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, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeaddErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddErroraddError, doExecute, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFieldValuesHolder, getIssueOperationgetLoggedInApplicationUseraddError, addErrorMessages, addErrors, hasAnyErrors, setErrorMessagesprotected RemoteIssueLinkService.CreateValidationResult validationResult
protected final RemoteIssueLinkService remoteIssueLinkService
protected final com.atlassian.event.api.EventPublisher eventPublisher
public AbstractIssueLinkAction(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil, RemoteIssueLinkService remoteIssueLinkService, com.atlassian.event.api.EventPublisher eventPublisher)
protected void doValidation()
doValidation in class AbstractCommentableIssuepublic String doDefault() throws Exception
doDefault in class webwork.action.ActionSupportExceptionpublic RemoteIssueLinkService.RemoteIssueLinkResult createLink()
public RemoteIssueLinkService.RemoteIssueLinkResult createLink(RemoteIssueLinkService.CreateValidationResult validationResult)
validationResult - the CreateValidationResult to be used to create the linkpublic boolean isValidToView()
protected String getRedirectUrl()
protected void handleCredentialsRequired()
public boolean isRequiresCredentials()
public Map<String,Object> getDisplayParams()
getDisplayParams in class AbstractCommentableIssuepublic String getCommentSectionHtml()
public static String getModifierKey()
public static KeyboardShortcutManager.Context getKeyboardShortcutContext()
Copyright © 2002-2015 Atlassian. All Rights Reserved.