com.atlassian.confluence.user.actions
Class HandleProfileAttachmentsAction

java.lang.Object
  extended bycom.opensymphony.xwork.ActionSupport
      extended bycom.atlassian.confluence.core.ConfluenceActionSupport
          extended bycom.atlassian.confluence.user.actions.AbstractUserProfileAction
              extended bycom.atlassian.confluence.user.actions.HandleProfileAttachmentsAction
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

public class HandleProfileAttachmentsAction
extends AbstractUserProfileAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.user.actions.AbstractUserProfileAction
attachmentManager, dashboardLabels, email, fullName, HOMEPAGE_DASHBOARD, HOMEPAGE_PROFILE, HOMEPAGE_SITEHOME, installedLocalePairs, mimeType, notificationManager, notifyByEmail, notifyForMyOwnActions, personalInformation, personalInformationEntity, personalInformationManager, preferredUserLocale, siteHomePage, spaceManager, 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
HandleProfileAttachmentsAction()
           
 
Method Summary
 String execute()
           
 String[] getAttachmentDetails(Attachment attachment)
          Used for writing the "do you want to remove?" message.
 List getHighlight()
           
 List getLatestVersionsOfAttachments()
           
 int getMaxAttachments()
           
 String getSortBy()
           
 List getSuccessfulUploads()
           
 long getUploadLimit()
           
 String getUsername()
           
 boolean hasAttachFilePermissions()
           
 boolean isPermitted()
           
 void setFileUploadManager(FileUploadManager fileUploadManager)
           
 void setHighlight(List highlight)
           
 void setSortBy(String sortBy)
           
 void setUsername(String username)
           
 
Methods inherited from class com.atlassian.confluence.user.actions.AbstractUserProfileAction
doDefault, getAttachments, getDashboardLabels, getEmail, getFullName, getGlobalHomepageSetting, getInstalledLocalePairs, getMimeType, getMimeTypes, getMimeTypeUserFriendly, getPersonalInformation, getPersonalInformationEntity, getPersonalSpaceKey, getPreferredUserLocale, getSiteHomePage, getSiteHomePageName, getSpace, getUser, getUserLocaleName, getUserPreferences, getUserProfilePicture, getUserTimeZone, isNotifyByEmail, isNotifyForMyOwnActions, isShowingAttachments, isUseWysiwygEditor, isViewingMyProfile, setAttachmentManager, setDashboardLabels, setEmail, setFullName, setMimeType, setNotificationManager, setNotifyByEmail, setNotifyForMyOwnActions, setPersonalInformation, setPersonalInformationManager, setPreferredUserLocale, setSiteHomePage, setSpaceManager, setUserTimeZone, setUseWysiwygEditor
 
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, 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
 

Constructor Detail

HandleProfileAttachmentsAction

public HandleProfileAttachmentsAction()
Method Detail

execute

public String execute()
               throws Exception
Throws:
Exception

getUsername

public String getUsername()
Overrides:
getUsername in class AbstractUserProfileAction

setUsername

public void setUsername(String username)

getLatestVersionsOfAttachments

public List getLatestVersionsOfAttachments()

getHighlight

public List getHighlight()

setHighlight

public void setHighlight(List highlight)

getAttachmentDetails

public String[] getAttachmentDetails(Attachment attachment)
Used for writing the "do you want to remove?" message.

Parameters:
attachment - the attachment to get the details of
Returns:
an array of the attachment's name (XML-escaped) and its version number

hasAttachFilePermissions

public boolean hasAttachFilePermissions()

getMaxAttachments

public int getMaxAttachments()

getUploadLimit

public long getUploadLimit()

setFileUploadManager

public void setFileUploadManager(FileUploadManager fileUploadManager)

getSuccessfulUploads

public List getSuccessfulUploads()

getSortBy

public String getSortBy()

setSortBy

public void setSortBy(String sortBy)

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class AbstractUserProfileAction


Confluence is developed by Atlassian.