Class MovePageCommandHelper
java.lang.Object
com.atlassian.confluence.content.service.page.MovePageCommandHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMovePageCommandHelper
(PageManager pageManager) Deprecated.since 8.1MovePageCommandHelper
(PageManager pageManager, PermissionManager permissionManager, LongRunningTaskManagerInternal longRunningTaskManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
childPageTitleAlreadyExists
(Page sourcePage, Space targetSpace) listOfPageTitlesAlreadyExist
(Page sourcePage, Space targetSpace) Deprecated.since 6.9.newMovePageCommand
(PageLocator sourcePageLocator, PageLocator targetPageLocator, String position, MovePageCommandHelper.MovePageMode movePageMode) Determine whether to return the correctMovePageCommand
implementation depending on the mode suppliednewMovePageCommand
(PageLocator sourcePageLocator, SpaceLocator targetSpaceLocator, MovePageCommandHelper.MovePageMode movePageMode) Determine whether to return the correctMovePageCommand
implementation depending on the mode supplied
-
Constructor Details
-
MovePageCommandHelper
Deprecated.since 8.1 -
MovePageCommandHelper
public MovePageCommandHelper(PageManager pageManager, PermissionManager permissionManager, LongRunningTaskManagerInternal longRunningTaskManager) - Since:
- 7.13.13
-
-
Method Details
-
childPageTitleAlreadyExists
-
listOfPageTitlesAlreadyExist
Deprecated.since 6.9. See MovePageAbstractCommand.listOfPermittedPageTitlesAlreadyExist listOfPermittedPageTitlesAlreadyExist does not take into account permissions When we move a page with restricted children, we should not check the existence of those children in the destination space because we will not move restricted pages there -
newMovePageCommand
public MovePageCommand newMovePageCommand(PageLocator sourcePageLocator, PageLocator targetPageLocator, String position, MovePageCommandHelper.MovePageMode movePageMode) Determine whether to return the correctMovePageCommand
implementation depending on the mode supplied- Parameters:
sourcePageLocator
- the source page locatortargetPageLocator
- the target page locatorposition
- the new positionmovePageMode
- theMovePageCommandHelper.MovePageMode
instance- Returns:
- a
MovePageCommand
implementation - Since:
- 7.13.13
-
newMovePageCommand
public MovePageCommand newMovePageCommand(PageLocator sourcePageLocator, SpaceLocator targetSpaceLocator, MovePageCommandHelper.MovePageMode movePageMode) Determine whether to return the correctMovePageCommand
implementation depending on the mode supplied- Parameters:
sourcePageLocator
- the source page locatortargetSpaceLocator
- the target space locatormovePageMode
- theMovePageCommandHelper.MovePageMode
instance- Returns:
- a
MovePageCommand
implementation - Since:
- 7.13.13
-