public class Logout extends JiraWebActionSupport
JiraWebActionSupport.MessageTypeErrorCollection.ReasonI18nHelper.BeanFactoryISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilterslog| Constructor and Description |
|---|
Logout(LoginManager loginManager,
XsrfInvocationChecker xsrfInvocationChecker,
com.atlassian.seraph.service.rememberme.RememberMeService rememberMeService,
JiraAuthenticationContext authenticationContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
doDefault()
Checks the JIRA application properties to see whether log-out confirmation is enabled, logs the user out if
necessary, and renders the view accordingly.
|
protected String |
doExecute()
Logs the user out of JIRA and shows the log-out page.
|
addError, 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, getRequestSourceType, 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, addErrorMessage, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessagespublic Logout(LoginManager loginManager, XsrfInvocationChecker xsrfInvocationChecker, com.atlassian.seraph.service.rememberme.RememberMeService rememberMeService, JiraAuthenticationContext authenticationContext)
protected String doExecute()
JiraLogoutServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)doExecute in class webwork.action.ActionSupportLOGOUT if the user presents a valid xsrf token (his / her session hasn't expired).
If the XSRF token is not valid, we return CONFIRM when there is an authenticated user; Otherwise,
ALREADY_LOGGED_OUT is returned.
public String doDefault()
Checks the JIRA application properties to see whether log-out confirmation is enabled, logs the user out if necessary, and renders the view accordingly.
If the log-out confirmation property is enabled, it will take the user to a log-out confirmation page.
Otherwise, it will log the user out and show the log-out page.
The log-out confirmation page executes the doExecute() command.
For details of the logic behind the XSRF check see, JiraLogoutServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
doDefault in class webwork.action.ActionSupportCONFIRM if the application properties indicate that log-out s
hould be confirmed for all users, if the user has remember turned on and the application property is set to "cookie" we return also return
CONFIRM; Otherwise, LOGOUT is returned.
If the XSRF token is not valid, we return CONFIRM when there is an authenticated user; Otherwise,
ALREADY_LOGGED_OUT is returned.
Copyright © 2002-2016 Atlassian. All Rights Reserved.