Class MovePageAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.pages.actions.AbstractCommandAction
-
- com.atlassian.confluence.pages.actions.MovePageAction
-
- All Implemented Interfaces:
Beanable,WebInterface,MessageHolderAware,com.opensymphony.xwork2.Action,com.opensymphony.xwork2.interceptor.ValidationAware,com.opensymphony.xwork2.LocaleProvider,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable
public class MovePageAction extends AbstractCommandAction
Move a page and its children to a new location in the system. There are three ways to specify the new location:- moving to the top level of a space is accomplished by setting a position of
MovePageCommand.POSITION_TOP_LEVELand settingspaceKeyto the key of the destination space - moving to the default location under a new parent page is accomplished by setting a position of
MovePageCommand.POSITION_APPENDand settingtargetIdor bothspaceKeyandtargetTitleto specify the new parent page - moving to a specific position under a new parent page is accomplished by setting a position of
either
MovePageCommand.POSITION_ABOVEorMovePageCommand.POSITION_BELOWand settingtargetIdor bothspaceKeyandtargetTitleto specify the relevant sibling.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description MovePageAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServiceCommandcreateCommand()Stringexecute()voidsetMode(String mode)voidsetMovePageCommandHelper(MovePageCommandHelper movePageCommandHelper)voidsetPageId(long pageId)voidsetPageService(PageService pageService)voidsetPosition(String position)voidsetSpaceKey(String spaceKey)voidsetSpaceService(SpaceService spaceService)voidsetTargetId(long targetId)voidsetTargetTitle(String targetTitle)-
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractCommandAction
getBean, isPermitted, validate
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
-
-
-
-
Method Detail
-
execute
public String execute()
- Specified by:
executein interfacecom.opensymphony.xwork2.Action- Overrides:
executein classAbstractCommandAction
-
createCommand
protected ServiceCommand createCommand()
- Specified by:
createCommandin classAbstractCommandAction
-
setTargetId
public void setTargetId(long targetId)
-
setTargetTitle
public void setTargetTitle(String targetTitle)
-
setPosition
public void setPosition(String position)
-
setPageService
public void setPageService(PageService pageService)
-
setSpaceKey
public void setSpaceKey(String spaceKey)
-
setSpaceService
public void setSpaceService(SpaceService spaceService)
-
setPageId
public void setPageId(long pageId)
-
setMovePageCommandHelper
public void setMovePageCommandHelper(MovePageCommandHelper movePageCommandHelper)
-
setMode
public void setMode(String mode)
-
-