Class ViewMySettingsAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.user.actions.AbstractUserProfileAction
-
- com.atlassian.confluence.user.actions.ViewMySettingsAction
-
- All Implemented Interfaces:
FormAware
,WebInterface
,UserAware
,BreadcrumbAware
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
EditMySettingsAction
public class ViewMySettingsAction extends AbstractUserProfileAction implements FormAware
Action to view the logged in user's preferences (homepage, timezone, and language).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_KEY
protected Boolean
highlightOptionPanelEnabled
protected List<com.atlassian.core.util.PairType>
installedLocalePairs
protected Boolean
keyboardShortcutsEnabled
protected String
preferredUserLocale
protected String
siteHomePage
protected TimeZone
userTimeZone
-
Fields inherited from class com.atlassian.confluence.user.actions.AbstractUserProfileAction
attachmentManager, favouriteManager, followManager, HOMEPAGE_DASHBOARD, HOMEPAGE_PROFILE, HOMEPAGE_SITEHOME, HTML_FRIENDLY_NAME, HTML_MIME_TYPE, notificationManager, personalInformationManager, spaceManager, statusTextRenderer, TEXT_FRIENDLY_NAME, TEXT_MIME_TYPE, userDetailsManager, wikiStyleRenderer
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ViewMySettingsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doEdit()
String
doView()
List<HTMLPairType>
getAvailableTimeZones()
protected String
getGlobalHomepageSetting()
List<com.atlassian.core.util.PairType>
getInstalledLocalePairs()
String
getPreferredUserLocale()
String
getSiteHomePage()
List<HTMLPairType>
getSiteHomePages()
String
getUserLocaleName()
String
getUserTimeZone()
boolean
isEditMode()
boolean
isHighlightOptionPanelEnabled()
boolean
isHighlightPluginEnabled()
boolean
isKeyboardShortcutsEnabled()
boolean
isPermitted()
-
Methods inherited from class com.atlassian.confluence.user.actions.AbstractUserProfileAction
currentUserHasLicensedAccess, getAttachments, getBreadcrumb, getContext, getEmail, getFullName, getPageTitle, getPersonalInformation, getPersonalInformationEntity, getPersonalSpaceKey, getRenderedAboutMe, getStatusTextRenderer, getUser, getUsername, getUserPreferences, getUserProfilePicture, getUserProperty, getWebInterfaceContext, hasPersonalSpace, isFavourite, isFollowing, isHasAboutMe, isMyProfile, isUserRequired, isViewPermissionRequired, setAttachmentManager, setFavouriteManager, setFollowManager, setNotificationManager, setPersonalInformation, setPersonalInformationManager, setSpaceManager, setStatusTextRenderer, setUserDetailsManager, setWikiStyleRenderer
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiContentUiSupport, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Field Detail
-
preferredUserLocale
protected String preferredUserLocale
-
userTimeZone
protected TimeZone userTimeZone
-
installedLocalePairs
protected List<com.atlassian.core.util.PairType> installedLocalePairs
-
siteHomePage
protected String siteHomePage
-
DEFAULT_KEY
protected static final String DEFAULT_KEY
- See Also:
- Constant Field Values
-
keyboardShortcutsEnabled
protected Boolean keyboardShortcutsEnabled
-
highlightOptionPanelEnabled
protected Boolean highlightOptionPanelEnabled
-
-
Method Detail
-
doView
public String doView()
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classConfluenceActionSupport
-
getSiteHomePage
public String getSiteHomePage()
-
getSiteHomePages
public List<HTMLPairType> getSiteHomePages()
-
getAvailableTimeZones
public List<HTMLPairType> getAvailableTimeZones()
-
getUserLocaleName
public String getUserLocaleName()
-
getInstalledLocalePairs
public List<com.atlassian.core.util.PairType> getInstalledLocalePairs()
-
getPreferredUserLocale
public String getPreferredUserLocale()
-
isHighlightOptionPanelEnabled
public boolean isHighlightOptionPanelEnabled()
-
isHighlightPluginEnabled
public boolean isHighlightPluginEnabled()
-
isKeyboardShortcutsEnabled
public boolean isKeyboardShortcutsEnabled()
-
getGlobalHomepageSetting
protected String getGlobalHomepageSetting()
-
getUserTimeZone
public String getUserTimeZone()
-
isEditMode
public boolean isEditMode()
- Specified by:
isEditMode
in interfaceFormAware
-
-