com.atlassian.confluence.user.actions
Class AbstractUserProfileAction

java.lang.Object
  extended bycom.opensymphony.xwork.ActionSupport
      extended bycom.atlassian.confluence.core.ConfluenceActionSupport
          extended bycom.atlassian.confluence.user.actions.AbstractUserProfileAction
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, Serializable, Spaced, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware
Direct Known Subclasses:
ChangeMyPasswordAction, EditEmailPreferencesAction, EditMyPreferencesAction, EditMyProfileAction, EditMyProfilePictureAction, EditNotificationsAction, HandleProfileAttachmentsAction, RemoveProfileAttachmentAction, ViewMyDraftsAction, ViewMyLabelsAction, ViewUserProfileAction

public abstract class AbstractUserProfileAction
extends ConfluenceActionSupport
implements Spaced

See Also:
Serialized Form

Field Summary
protected  AttachmentManager attachmentManager
           
protected  String dashboardLabels
           
protected  String email
           
protected  String fullName
           
static String HOMEPAGE_DASHBOARD
           
static String HOMEPAGE_PROFILE
           
static String HOMEPAGE_SITEHOME
           
protected  List installedLocalePairs
           
protected  String mimeType
           
protected  NotificationManager notificationManager
           
protected  boolean notifyByEmail
           
protected  boolean notifyForMyOwnActions
           
protected  String personalInformation
           
protected  PersonalInformation personalInformationEntity
           
protected  PersonalInformationManager personalInformationManager
           
protected  String preferredUserLocale
           
protected  String siteHomePage
           
protected  SpaceManager spaceManager
           
protected  boolean useWysiwygEditor
           
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, 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
 
Constructor Summary
AbstractUserProfileAction()
           
 
Method Summary
 String doDefault()
          Default webwork action execution method.
 List getAttachments()
           
 String getDashboardLabels()
           
 String getEmail()
           
 String getFullName()
           
protected  String getGlobalHomepageSetting()
           
 List getInstalledLocalePairs()
           
 String getMimeType()
           
 List getMimeTypes()
           
 String getMimeTypeUserFriendly()
           
 String getPersonalInformation()
           
 PersonalInformation getPersonalInformationEntity()
           
protected  String getPersonalSpaceKey(User user)
           
 String getPreferredUserLocale()
           
 String getSiteHomePage()
           
 String getSiteHomePageName()
           
 Space getSpace()
           
 User getUser()
           
 String getUserLocaleName()
           
 String getUsername()
           
protected  UserPreferences getUserPreferences()
           
 ProfilePictureInfo getUserProfilePicture()
           
 String getUserTimeZone()
           
 boolean isNotifyByEmail()
           
 boolean isNotifyForMyOwnActions()
           
 boolean isPermitted()
           
 boolean isShowingAttachments()
           
 boolean isUseWysiwygEditor()
           
 boolean isViewingMyProfile()
           
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void setDashboardLabels(String labels)
           
 void setEmail(String email)
           
 void setFullName(String fullName)
           
 void setMimeType(String mimeType)
           
 void setNotificationManager(NotificationManager notificationManager)
           
 void setNotifyByEmail(boolean notifyByEmail)
           
 void setNotifyForMyOwnActions(boolean notifyForMyOwnActions)
           
 void setPersonalInformation(String personalInformation)
           
 void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
           
 void setPreferredUserLocale(String locale)
           
 void setSiteHomePage(String siteHomePage)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setUserTimeZone(String timeZoneID)
           
 void setUseWysiwygEditor(boolean useWysiwygEditor)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addPermissionTypeTo, addToHistory, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEditorLanguage, getEventManager, 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, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, 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
 

Field Detail

HOMEPAGE_DASHBOARD

public static final String HOMEPAGE_DASHBOARD
See Also:
Constant Field Values

HOMEPAGE_SITEHOME

public static final String HOMEPAGE_SITEHOME
See Also:
Constant Field Values

HOMEPAGE_PROFILE

public static final String HOMEPAGE_PROFILE
See Also:
Constant Field Values

notificationManager

protected NotificationManager notificationManager

fullName

protected String fullName

email

protected String email

notifyByEmail

protected boolean notifyByEmail

notifyForMyOwnActions

protected boolean notifyForMyOwnActions

personalInformationManager

protected PersonalInformationManager personalInformationManager

spaceManager

protected SpaceManager spaceManager

useWysiwygEditor

protected boolean useWysiwygEditor

mimeType

protected String mimeType

personalInformationEntity

protected PersonalInformation personalInformationEntity

personalInformation

protected String personalInformation

siteHomePage

protected String siteHomePage

dashboardLabels

protected String dashboardLabels

attachmentManager

protected AttachmentManager attachmentManager

preferredUserLocale

protected String preferredUserLocale

installedLocalePairs

protected List installedLocalePairs
Constructor Detail

AbstractUserProfileAction

public AbstractUserProfileAction()
Method Detail

getUser

public User getUser()

getFullName

public String getFullName()

setFullName

public void setFullName(String fullName)

isNotifyForMyOwnActions

public boolean isNotifyForMyOwnActions()

setNotifyForMyOwnActions

public void setNotifyForMyOwnActions(boolean notifyForMyOwnActions)

setNotifyByEmail

public void setNotifyByEmail(boolean notifyByEmail)

isNotifyByEmail

public boolean isNotifyByEmail()

getUserPreferences

protected UserPreferences getUserPreferences()

getMimeType

public String getMimeType()

getMimeTypeUserFriendly

public String getMimeTypeUserFriendly()

setMimeType

public void setMimeType(String mimeType)

getMimeTypes

public List getMimeTypes()

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

getPersonalInformationEntity

public PersonalInformation getPersonalInformationEntity()

getPersonalInformation

public String getPersonalInformation()

setPersonalInformation

public void setPersonalInformation(String personalInformation)

getSiteHomePageName

public String getSiteHomePageName()

getSiteHomePage

public String getSiteHomePage()

setSiteHomePage

public void setSiteHomePage(String siteHomePage)

getUsername

public String getUsername()

isViewingMyProfile

public boolean isViewingMyProfile()

getUserProfilePicture

public ProfilePictureInfo getUserProfilePicture()

getAttachments

public List getAttachments()

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)

isShowingAttachments

public boolean isShowingAttachments()

doDefault

public String doDefault()
                 throws Exception
Description copied from class: ConfluenceActionSupport
Default webwork action execution method.

Overrides:
doDefault in class ConfluenceActionSupport
Returns:
the action result
Throws:
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(String labels)

getDashboardLabels

public String getDashboardLabels()

getUserLocaleName

public String getUserLocaleName()

getInstalledLocalePairs

public List getInstalledLocalePairs()

getSpace

public Space getSpace()
Specified by:
getSpace in interface Spaced

getPersonalSpaceKey

protected String getPersonalSpaceKey(User user)

setPreferredUserLocale

public void setPreferredUserLocale(String locale)

getPreferredUserLocale

public String getPreferredUserLocale()

getGlobalHomepageSetting

protected String getGlobalHomepageSetting()

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

getUserTimeZone

public String getUserTimeZone()

setUserTimeZone

public void setUserTimeZone(String timeZoneID)


Confluence is developed by Atlassian.