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_LEVEL
and settingspaceKey
to 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_APPEND
and settingtargetId
or bothspaceKey
andtargetTitle
to 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_ABOVE
orMovePageCommand.POSITION_BELOW
and settingtargetId
or bothspaceKey
andtargetTitle
to 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 ServiceCommand
createCommand()
String
execute()
void
setMode(String mode)
void
setMovePageCommandHelper(MovePageCommandHelper movePageCommandHelper)
void
setPageId(long pageId)
void
setPageService(PageService pageService)
void
setPosition(String position)
void
setSpaceKey(String spaceKey)
void
setSpaceService(SpaceService spaceService)
void
setTargetId(long targetId)
void
setTargetTitle(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:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classAbstractCommandAction
-
createCommand
protected ServiceCommand createCommand()
- Specified by:
createCommand
in 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)
-
-