com.atlassian.confluence.content.service
Class DefaultPageService

java.lang.Object
  extended by com.atlassian.confluence.content.service.DefaultPageService
All Implemented Interfaces:
PageService

public class DefaultPageService
extends java.lang.Object
implements PageService


Constructor Summary
DefaultPageService(PageManager pageManager, PermissionManager permissionManager)
           
 
Method Summary
 PageLocator getIdPageLocator(long pageId)
          Creates a page locator that can locate a page based on an id.
 MovePageCommand newMovePageCommand(PageLocator sourcePageLocator, PageLocator targetPageLocator, java.lang.String point)
          Retrieve a command to perform a simple move operation.
 MovePageCommand newMovePageCommand(PageLocator sourcePageLocator, SpaceLocator targetSpaceLocator)
          Retrieve a command that performs a move operation of a page to a top level of a target space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageService

public DefaultPageService(PageManager pageManager,
                          PermissionManager permissionManager)
Method Detail

newMovePageCommand

public MovePageCommand newMovePageCommand(PageLocator sourcePageLocator,
                                          PageLocator targetPageLocator,
                                          java.lang.String point)
Description copied from interface: PageService
Retrieve a command to perform a simple move operation.

Specified by:
newMovePageCommand in interface PageService
point - the point describing where the source should be moved to in relation to the target, see MovePageCommand
Returns:
an appropriate command instance

newMovePageCommand

public MovePageCommand newMovePageCommand(PageLocator sourcePageLocator,
                                          SpaceLocator targetSpaceLocator)
Description copied from interface: PageService
Retrieve a command that performs a move operation of a page to a top level of a target space.

Specified by:
newMovePageCommand in interface PageService
Returns:
an appropriate command instance

getIdPageLocator

public PageLocator getIdPageLocator(long pageId)
Description copied from interface: PageService
Creates a page locator that can locate a page based on an id.

Specified by:
getIdPageLocator in interface PageService
Returns:


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.