Class DefaultPageUpdateService
- java.lang.Object
-
- com.atlassian.confluence.content.service.experimental.DefaultPageUpdateService
-
- All Implemented Interfaces:
PageUpdateService
public class DefaultPageUpdateService extends Object implements PageUpdateService
- Since:
- 7.3.3
-
-
Constructor Summary
Constructors Constructor Description DefaultPageUpdateService(PageManagerInternal pageManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, ContentReconciliationManager contentReconciliationManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedAbstractPage
prepare(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext)
Prepare content (page or blogpost) for update.void
update(PreparedAbstractPage preparedAbstractPage)
Perform update of page or blogpost.
-
-
-
Constructor Detail
-
DefaultPageUpdateService
public DefaultPageUpdateService(PageManagerInternal pageManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, ContentReconciliationManager contentReconciliationManager)
-
-
Method Detail
-
prepare
public PreparedAbstractPage prepare(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext)
Description copied from interface:PageUpdateService
Prepare content (page or blogpost) for update. In some cases it may require synchronisation between page and a draft, so it's recommended to invoke this method before performing any page updates.- Specified by:
prepare
in interfacePageUpdateService
- Parameters:
id
- of the page or draftmodification
- modifications to be executedsaveContext
- saving context ornull
- Returns:
PreparedAbstractPage
-
update
public void update(PreparedAbstractPage preparedAbstractPage)
Description copied from interface:PageUpdateService
Perform update of page or blogpost.- Specified by:
update
in interfacePageUpdateService
- Parameters:
preparedAbstractPage
- statement, returned byPageUpdateService.prepare(long, Modification, SaveContext)
-
-