com.atlassian.confluence.user.actions
Class AbstractUserProfileAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.user.actions.AbstractUserProfileAction
- All Implemented Interfaces:
- WebInterface, Spaced, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable
- Direct Known Subclasses:
- ChangeMyPasswordAction, EditEmailPreferencesAction, EditMyPreferencesAction, EditMyProfileAction, EditMyProfilePictureAction, EditNotificationsAction, ViewMyDraftsAction, ViewMyLabelsAction, ViewUserProfileAction
public abstract class AbstractUserProfileAction
- extends ConfluenceActionSupport
- implements Spaced
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, permissionManager, permitted, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalHelper, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOMEPAGE_DASHBOARD
public static final java.lang.String HOMEPAGE_DASHBOARD
- See Also:
- Constant Field Values
HOMEPAGE_SITEHOME
public static final java.lang.String HOMEPAGE_SITEHOME
- See Also:
- Constant Field Values
HOMEPAGE_PROFILE
public static final java.lang.String HOMEPAGE_PROFILE
- See Also:
- Constant Field Values
notificationManager
protected NotificationManager notificationManager
fullName
protected java.lang.String fullName
email
protected java.lang.String email
notifyByEmail
protected boolean notifyByEmail
notifyForMyOwnActions
protected boolean notifyForMyOwnActions
personalInformationManager
protected PersonalInformationManager personalInformationManager
spaceManager
protected SpaceManager spaceManager
useWysiwygEditor
protected boolean useWysiwygEditor
mimeType
protected java.lang.String mimeType
personalInformationEntity
protected PersonalInformation personalInformationEntity
personalInformation
protected java.lang.String personalInformation
siteHomePage
protected java.lang.String siteHomePage
dashboardLabels
protected java.lang.String dashboardLabels
attachmentManager
protected AttachmentManager attachmentManager
preferredUserLocale
protected java.lang.String preferredUserLocale
installedLocalePairs
protected java.util.List installedLocalePairs
AbstractUserProfileAction
public AbstractUserProfileAction()
getUser
public com.atlassian.user.User getUser()
getFullName
public java.lang.String getFullName()
setFullName
public void setFullName(java.lang.String fullName)
isNotifyForMyOwnActions
public boolean isNotifyForMyOwnActions()
setNotifyForMyOwnActions
public void setNotifyForMyOwnActions(boolean notifyForMyOwnActions)
setNotifyByEmail
public void setNotifyByEmail(boolean notifyByEmail)
isNotifyByEmail
public boolean isNotifyByEmail()
getUserPreferences
protected com.atlassian.core.user.preferences.UserPreferences getUserPreferences()
getMimeType
public java.lang.String getMimeType()
getMimeTypeUserFriendly
public java.lang.String getMimeTypeUserFriendly()
setMimeType
public void setMimeType(java.lang.String mimeType)
getMimeTypes
public java.util.List getMimeTypes()
getEmail
public java.lang.String getEmail()
setEmail
public void setEmail(java.lang.String email)
getPersonalInformationEntity
public PersonalInformation getPersonalInformationEntity()
getPersonalInformation
public java.lang.String getPersonalInformation()
setPersonalInformation
public void setPersonalInformation(java.lang.String personalInformation)
getSiteHomePageName
public java.lang.String getSiteHomePageName()
getSiteHomePage
public java.lang.String getSiteHomePage()
setSiteHomePage
public void setSiteHomePage(java.lang.String siteHomePage)
getUsername
public java.lang.String getUsername()
isViewingMyProfile
public boolean isViewingMyProfile()
- Deprecated. for public use since 2.8 use
PersonalInformation.belongsTo(User)
(or isMyProfile()
in subclasses).
isMyProfile
protected boolean isMyProfile()
getUserProfilePicture
public ProfilePictureInfo getUserProfilePicture()
getAttachments
public java.util.List getAttachments()
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)
isShowingAttachments
public boolean isShowingAttachments()
- Deprecated. since 2.8 because the attachments tab no longer exists
doDefault
public java.lang.String doDefault()
throws java.lang.Exception
- Description copied from class:
ConfluenceActionSupport
- Default webwork action execution method.
- Overrides:
doDefault
in class ConfluenceActionSupport
- Returns:
- the action result
- Throws:
java.lang.Exception
- if something goes wrong
isUseWysiwygEditor
public boolean isUseWysiwygEditor()
setUseWysiwygEditor
public void setUseWysiwygEditor(boolean useWysiwygEditor)
setNotificationManager
public void setNotificationManager(NotificationManager notificationManager)
setPersonalInformationManager
public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
setDashboardLabels
public void setDashboardLabels(java.lang.String labels)
getDashboardLabels
public java.lang.String getDashboardLabels()
getUserLocaleName
public java.lang.String getUserLocaleName()
getInstalledLocalePairs
public java.util.List getInstalledLocalePairs()
getSpace
public Space getSpace()
- Specified by:
getSpace
in interface Spaced
getPersonalSpaceKey
protected java.lang.String getPersonalSpaceKey(com.atlassian.user.User user)
setPreferredUserLocale
public void setPreferredUserLocale(java.lang.String locale)
getPreferredUserLocale
public java.lang.String getPreferredUserLocale()
getGlobalHomepageSetting
protected java.lang.String getGlobalHomepageSetting()
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in class ConfluenceActionSupport
getUserTimeZone
public java.lang.String getUserTimeZone()
setUserTimeZone
public void setUserTimeZone(java.lang.String timeZoneID)
getWebInterfaceContext
public WebInterfaceContext getWebInterfaceContext()
- Description copied from interface:
WebInterface
- Returns a context which can be passed to web items when rendering them.
Typically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
- Specified by:
getWebInterfaceContext
in interface WebInterface
- Overrides:
getWebInterfaceContext
in class ConfluenceActionSupport
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.