Class MovePageCommandHelper
- java.lang.Object
-
- com.atlassian.confluence.content.service.page.MovePageCommandHelper
-
public class MovePageCommandHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MovePageCommandHelper.MovePageMode
-
Constructor Summary
Constructors Constructor Description MovePageCommandHelper(PageManager pageManager)
Deprecated.since 8.1MovePageCommandHelper(PageManager pageManager, PermissionManager permissionManager, LongRunningTaskManagerInternal longRunningTaskManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
childPageTitleAlreadyExists(Page sourcePage, Space targetSpace)
List<String>
listOfPageTitlesAlreadyExist(Page sourcePage, Space targetSpace)
Deprecated.since 6.9.MovePageCommand
newMovePageCommand(PageLocator sourcePageLocator, PageLocator targetPageLocator, String position, MovePageCommandHelper.MovePageMode movePageMode)
Determine whether to return the correctMovePageCommand
implementation depending on the mode suppliedMovePageCommand
newMovePageCommand(PageLocator sourcePageLocator, SpaceLocator targetSpaceLocator, MovePageCommandHelper.MovePageMode movePageMode)
Determine whether to return the correctMovePageCommand
implementation depending on the mode supplied
-
-
-
Constructor Detail
-
MovePageCommandHelper
@Deprecated public MovePageCommandHelper(PageManager pageManager)
Deprecated.since 8.1
-
MovePageCommandHelper
public MovePageCommandHelper(PageManager pageManager, PermissionManager permissionManager, LongRunningTaskManagerInternal longRunningTaskManager)
- Since:
- 7.13.13
-
-
Method Detail
-
childPageTitleAlreadyExists
public boolean childPageTitleAlreadyExists(Page sourcePage, Space targetSpace)
-
listOfPageTitlesAlreadyExist
@Deprecated public List<String> listOfPageTitlesAlreadyExist(Page sourcePage, Space targetSpace)
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
-
-