Class MoveAttachmentAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAwareAction
com.atlassian.confluence.pages.actions.MoveAttachmentAction
- All Implemented Interfaces:
BootstrapAware,PageAware,WebInterface,BreadcrumbAware,ContentDetailAction,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
public class MoveAttachmentAction
extends AbstractPageAwareAction
implements BootstrapAware, ContentDetailAction, BreadcrumbAware
- See Also:
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
contentPermissionManager, spaceManagerFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Overwrites the superclass function in order to list all spaces including the current.Returns the breadcrumb to be shown when the action is accessed.booleanReturns a context which can be passed to web items when rendering them.booleanConsulted byPermissionCheckInterceptor.voidsetAttachmentManager(AttachmentManager attachmentManager) voidsetBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator) voidsetFileName(String fileName) voidsetIsFromPageView(boolean isFromPageView) voidsetLinkManager(LinkManager linkManager) voidsetNewComment(String newComment) voidsetNewContentType(String contentType) voidsetNewFileName(String fileName) voidsetNewPageTitle(String newPageTitle) voidsetNewParentPage(String newParentPage) voidsetPageManager(PageManager pageManager) voidsetVersion(int version) voidvalidate()Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getPage, getPageId, getPageUrl, getSpace, getSpaceKey, getTitle, isCollaborativeContent, isLatestVersionRequired, isPageRequired, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManagerMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocaleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.pages.actions.PageAware
isEditPermissionRequired
-
Field Details
-
suggestedContentToBeRefactored
-
-
Constructor Details
-
MoveAttachmentAction
public MoveAttachmentAction()
-
-
Method Details
-
setAttachmentManager
-
setPageManager
-
setLinkManager
-
setNewPageTitle
-
setNewComment
-
setNewContentType
-
setNewParentPage
-
setNewFileName
-
bootstrap
public void bootstrap()- Specified by:
bootstrapin interfaceBootstrapAware
-
validate
public void validate()- Specified by:
validatein interfaceMessageHolderAware- Specified by:
validatein interfaceorg.apache.struts2.Validateable- Overrides:
validatein classorg.apache.struts2.ActionSupport
-
isPermitted
public boolean isPermitted()Description copied from class:ConfluenceActionSupportConsulted byPermissionCheckInterceptor.- Overrides:
isPermittedin classAbstractPageAwareAction
-
execute
- Specified by:
executein interfaceorg.apache.struts2.action.Action- Overrides:
executein classorg.apache.struts2.ActionSupport- Throws:
Exception
-
getAvailableSpaces
Overwrites the superclass function in order to list all spaces including the current.- Returns:
- List of available spaces
-
setIsFromPageView
public void setIsFromPageView(boolean isFromPageView) -
getIsFromPageView
public boolean getIsFromPageView() -
getRedirectPage
-
getNewFileName
-
getNewParentPage
-
getNewComment
-
getSuggestedContentToBeRefactored
-
getAttachment
-
getNewContentType
-
getAttachmentBean
-
getNewAttachmentBean
-
setFileName
-
setVersion
public void setVersion(int version) -
getWebInterfaceContext
Description copied from interface:WebInterfaceReturns a context which can be passed to web items when rendering them.Typically, Struts actions will implement this to provide extra details in the context such as content objects, and so on.
- Specified by:
getWebInterfaceContextin interfaceWebInterface- Overrides:
getWebInterfaceContextin classConfluenceActionSupport
-
setBreadcrumbGenerator
-
getBreadcrumb
Description copied from interface:BreadcrumbAwareReturns the breadcrumb to be shown when the action is accessed.- Specified by:
getBreadcrumbin interfaceBreadcrumbAware- Returns:
- Breadcrumb
-