public interface ItemRollbackConverter
ItemModel.| Modifier and Type | Method and Description |
|---|---|
java.util.function.Predicate<ItemModel> |
getConstrainedBy()
Predicate to verify whether current converter is applicable to provided
ItemModel. |
ItemModel |
rollbackItem(ItemModel itemModel,
CMSVersionModel versionModel,
AuditPayload auditPayload)
Rollbacks the itemModel to a desired version based on the information specified in the audit payload.
|
java.util.function.Predicate<ItemModel> getConstrainedBy()
ItemModel.Predicate.ItemModel rollbackItem(ItemModel itemModel, CMSVersionModel versionModel, AuditPayload auditPayload) throws ItemRollbackException
itemModel - The ItemModel to rollback.versionModel - The CMSVersionModel that identifies the version of the item to rollback to.auditPayload - The serialized payload that specifies the information that the versioned item must contain.ItemModel.ItemRollbackException - if the ItemModel referenced cannot be rolled back.Copyright © 2018 SAP SE. All Rights Reserved.