Interface PageUpdateService
-
- All Known Implementing Classes:
DefaultPageUpdateService
@ExperimentalApi public interface PageUpdateService
- Since:
- 7.3.3
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
prepare
PreparedAbstractPage prepare(long id, Modification<AbstractPage> modification, @Nullable SaveContext saveContext) throws ServiceException
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.- Parameters:
id
- of the page or draftmodification
- modifications to be executedsaveContext
- saving context ornull
- Returns:
PreparedAbstractPage
- Throws:
ServiceException
- in case of an error
-
update
void update(PreparedAbstractPage preparedAbstractPage) throws ServiceException
Perform update of page or blogpost.- Parameters:
preparedAbstractPage
- statement, returned byprepare(long, Modification, SaveContext)
- Throws:
ServiceException
- in case of an error
-
-