java.lang.Object | |
↳ | com.atlassian.confluence.content.service.DefaultPageService |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a page locator that can locate a page based on an id.
| |||||||||||
Creates a page locator that can locate a page based on a space key and title.
| |||||||||||
Retrieve a command for creating a new page for the specified user.
| |||||||||||
This is not a public API method! Creating a page from an existing page has different authorisation and validation logic from creating a brand new page. | |||||||||||
Retrieve a command to remove an existing page
| |||||||||||
Retrieve a command to perform a simple move operation.
| |||||||||||
Retrieve a command that performs a move operation of a page to a top level of a target space.
| |||||||||||
Retrieve a command to revert a page
| |||||||||||
Retrieve a command to clear any existing positions for children of the located Page.
| |||||||||||
Retrieve a command to set the order of all children for a supplied parent Page locator.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.content.service.PageService
|
Creates a page locator that can locate a page based on an id.
Creates a page locator that can locate a page based on a space key and title.
Retrieve a command for creating a new page for the specified user.
provider | an object that will provide the page to be created. |
---|---|
permissionProvider | provide the permissions to be applied to the created page. |
user | the user creating this page |
notifySelf | a flag indicating whether the user wants to be notified about this page creation. |
This is not a public API method! Creating a page from an existing page has different authorisation and validation logic
from creating a brand new page. This method allows creation of a command that implements that difference in logic. Apart from that
the command created here will have the same logic as that created by newCreatePageCommand(PageProvider, ContentPermissionProvider, User, boolean)
.
This logic in this command originates from CopyPageAction which differs from that of CreatePageAction.
I hope that when we get a chance to analyse why CopyPageAction has different permission and validation logic we will eventually remove this method.
provider | an object that will provide the page to be created. |
---|---|
permissionProvider | provide the permissions to be applied to the created page. |
user | the user creating this page |
notifySelf | a flag indicating whether the user wants to be notified about this page creation. |
Retrieve a command to remove an existing page
Retrieve a command to perform a simple move operation.
position | the point describing where the source should be moved to in relation to the target, see
MovePageCommand
|
---|
Retrieve a command that performs a move operation of a page to a top level of a target space.
Retrieve a command to revert a page
Retrieve a command to clear any existing positions for children of the located Page.
Retrieve a command to set the order of all children for a supplied parent Page locator.
parentPageLocator | locator for the parent Page object |
---|---|
childPageIds | a list of child page ids |