com.atlassian.confluence.user.actions
Class RemoveProfileAttachmentAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.user.actions.AbstractUserProfileAction
              extended by com.atlassian.confluence.user.actions.RemoveProfileAttachmentAction
All Implemented Interfaces:
Spaced, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable

public class RemoveProfileAttachmentAction
extends AbstractUserProfileAction

See Also:
Serialized Form

Field Summary
protected  ContentEntityManager contentEntityManager
           
 
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, localeManager, 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
RemoveProfileAttachmentAction()
           
 
Method Summary
 String execute()
           
 Attachment getAttachment()
           
 ContentEntityManager getContentEntityManager()
           
 String getFileName()
           
protected  PersonalInformation getPersonalInformationEntityForProfileId()
          Retrieves the PersonalInformation object for the profile ID that was passed in as a parameter

Returns null when the profile ID (ID of the ContentEntityObject) is not valid, or the object returned is not a PersonalInformation object

 long getProfileId()
           
 int getVersion()
           
 boolean isPermitted()
           
 void setContentEntityManager(ContentEntityManager contentEntityManager)
           
 void setFileName(String fileName)
           
 void setProfileId(long profileId)
           
 void setVersion(int version)
           
 
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, getUsername, 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, 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
 

Field Detail

contentEntityManager

protected ContentEntityManager contentEntityManager
Constructor Detail

RemoveProfileAttachmentAction

public RemoveProfileAttachmentAction()
Method Detail

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
Exception

getAttachment

public Attachment getAttachment()

getPersonalInformationEntityForProfileId

protected PersonalInformation getPersonalInformationEntityForProfileId()
Retrieves the PersonalInformation object for the profile ID that was passed in as a parameter

Returns null when the profile ID (ID of the ContentEntityObject) is not valid, or the object returned is not a PersonalInformation object

Returns:
PersonalInformation object corresponding to the profileId

getContentEntityManager

public ContentEntityManager getContentEntityManager()

setContentEntityManager

public void setContentEntityManager(ContentEntityManager contentEntityManager)

getProfileId

public long getProfileId()

setProfileId

public void setProfileId(long profileId)

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class AbstractUserProfileAction


Confluence is developed by Atlassian.