public class DefaultPageUpdateService extends Object implements PageUpdateService
Constructor and Description |
---|
DefaultPageUpdateService(PageManagerInternal pageManager,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate) |
Modifier and Type | Method and 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.
|
public DefaultPageUpdateService(PageManagerInternal pageManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
public PreparedAbstractPage prepare(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext)
PageUpdateService
prepare
in interface PageUpdateService
id
- of the page or draftmodification
- modifications to be executedsaveContext
- saving context or null
PreparedAbstractPage
public void update(PreparedAbstractPage preparedAbstractPage)
PageUpdateService
update
in interface PageUpdateService
preparedAbstractPage
- statement, returned by PageUpdateService.prepare(long, Modification, SaveContext)
Copyright © 2003–2021 Atlassian. All rights reserved.