Class AjaxIssueAction
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.components.issueeditor.action.BaseEditAction
com.atlassian.jira.components.issueviewer.action.AjaxIssueAction
- All Implemented Interfaces:
OperationContext,ErrorCollection,I18nHelper,HttpServletVariables,AuthorizationSupport,Serializable,webwork.action.Action,webwork.action.CommandDriven,webwork.action.IllegalArgumentAware
A webwork action to produce JSON with field edit html. This is an action and not a REST resource mainly because our
fields API is still so heavily tied to webwork. All methods on this action should return JSON content.
Note that validation failure logic has been overridden to ensure an action view is not returned as the response is rendered directly.
- Since:
- 5.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageTypeNested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.ReasonNested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory -
Field Summary
Fields inherited from class com.atlassian.jira.components.issueeditor.action.BaseEditAction
issueFieldProvider, issueId, issueKey, issueService, lastReadTimeFields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULTFields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessagesFields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionAjaxIssueAction(com.atlassian.event.api.EventPublisher eventPublisher, IssueFinderV2 issueFinder, IssueMetadataHelper issueMetadataHelper, IssueService issueService, SessionSearchService sessionSearchService, UserIssueHistoryManager userIssueHistoryManager, WebPanelMapperUtil webPanelMapperUtil, ActionUtilsService actionUtilsService, IssueFieldProvider issueFieldProvider, IssueOperationLinksProvider issueOperationLinksProvider, IssueSummaryProvider issueSummaryProvider, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.plugins.rest.api.json.JaxbJsonMarshaller marshaller) -
Method Summary
Modifier and TypeMethodDescriptionNOTE:protected Stringprotected voidgetJson()booleanbooleanvoidsetLoadFields(boolean loadFields) voidsetPrefetch(boolean prefetch) voidsetShouldUpdateCurrentProject(boolean shouldUpdateCurrentProject) voidsetSingleFieldEdit(boolean singleFieldEdit) voidsetSkipScreenCheck(boolean skipScreenCheck) booleanprotected voidvalidate()Nasty hack to prevent webwork from returning HTML.Methods inherited from class com.atlassian.jira.components.issueeditor.action.BaseEditAction
createContentIdCollector, getFieldValuesHolder, getIssueId, getIssueKey, getIssueOperation, setFieldValuesHolder, setIssueId, setIssueKey, setLastReadTimeMethods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getActionNameJspa, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutboundWhitelistProvider, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeMethods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface webwork.action.CommandDriven
getCommandName, setCommandMethods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, setErrorMessages
-
Constructor Details
-
AjaxIssueAction
public AjaxIssueAction(com.atlassian.event.api.EventPublisher eventPublisher, IssueFinderV2 issueFinder, IssueMetadataHelper issueMetadataHelper, IssueService issueService, SessionSearchService sessionSearchService, UserIssueHistoryManager userIssueHistoryManager, WebPanelMapperUtil webPanelMapperUtil, ActionUtilsService actionUtilsService, IssueFieldProvider issueFieldProvider, IssueOperationLinksProvider issueOperationLinksProvider, IssueSummaryProvider issueSummaryProvider, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.plugins.rest.api.json.JaxbJsonMarshaller marshaller)
-
-
Method Details
-
doDefault
NOTE:- Overrides:
doDefaultin classwebwork.action.ActionSupport- Throws:
Exception
-
doValidation
protected void doValidation()- Overrides:
doValidationin classwebwork.action.ActionSupport
-
validate
protected void validate() throws webwork.action.ResultExceptionNasty hack to prevent webwork from returning HTML.- Overrides:
validatein classwebwork.action.ActionSupport- Throws:
webwork.action.ResultException- if validation failed, howeverAction.NONEvalidation result is used so no HTML is returned
-
doExecute
- Overrides:
doExecutein classwebwork.action.ActionSupport- Throws:
Exception
-
getJson
-
isSingleFieldEdit
public boolean isSingleFieldEdit() -
setSingleFieldEdit
public void setSingleFieldEdit(boolean singleFieldEdit) -
isPrefetch
public boolean isPrefetch() -
setPrefetch
public void setPrefetch(boolean prefetch) -
setLoadFields
public void setLoadFields(boolean loadFields) -
setSkipScreenCheck
public void setSkipScreenCheck(boolean skipScreenCheck) -
setShouldUpdateCurrentProject
public void setShouldUpdateCurrentProject(boolean shouldUpdateCurrentProject) -
shouldUpdateCurrentProject
public boolean shouldUpdateCurrentProject()
-