Class DefaultPageUpdateService
java.lang.Object
com.atlassian.confluence.content.service.experimental.DefaultPageUpdateService
- All Implemented Interfaces:
PageUpdateService
- Since:
- 7.3.3
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPageUpdateService(PageManagerInternal pageManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, ContentReconciliationManager contentReconciliationManager) -
Method Summary
Modifier and TypeMethodDescriptionprepare(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext) Prepare content (page or blogpost) for update.voidupdate(PreparedAbstractPage preparedAbstractPage) Perform update of page or blogpost.
-
Constructor Details
-
DefaultPageUpdateService
public DefaultPageUpdateService(PageManagerInternal pageManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, ContentReconciliationManager contentReconciliationManager)
-
-
Method Details
-
prepare
public PreparedAbstractPage prepare(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext) Description copied from interface:PageUpdateServicePrepare 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:
preparein interfacePageUpdateService- Parameters:
id- of the page or draftmodification- modifications to be executedsaveContext- saving context ornull- Returns:
PreparedAbstractPage
-
update
Description copied from interface:PageUpdateServicePerform update of page or blogpost.- Specified by:
updatein interfacePageUpdateService- Parameters:
preparedAbstractPage- statement, returned byPageUpdateService.prepare(long, Modification, SaveContext)
-