| Modifier and Type | Method and Description |
|---|---|
protected Populator<AuditPayload,ItemModel> |
DefaultCMSVersionToItemModelRollbackConverter.getCmsVersionToItemModelPopulator() |
protected Populator<AuditPayload,ItemModel> |
DefaultCMSVersionToItemModelPreviewConverter.getCmsVersionToItemModelPopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected ItemModel |
DefaultCMSVersionToItemModelRollbackConverter.rollbackItemModel(CMSVersionModel version,
AuditPayload auditPayload,
java.util.Map<java.lang.String,java.lang.Object> mappedAttributes)
This method rollbacks an
ItemModel based on the given information. |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultCMSVersionToItemModelRollbackConverter.setCmsVersionToItemModelPopulator(Populator<AuditPayload,ItemModel> cmsVersionToItemModelPopulator) |
void |
DefaultCMSVersionToItemModelPreviewConverter.setCmsVersionToItemModelPopulator(Populator<AuditPayload,ItemModel> cmsVersionToItemModelPopulator) |
| Modifier and Type | Method and Description |
|---|---|
ItemModel |
ItemRollbackConverter.rollbackItem(ItemModel itemModel,
CMSVersionModel versionModel,
AuditPayload auditPayload)
Rollbacks the itemModel to a desired version based on the information specified in the audit payload.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<java.lang.String> |
ComponentRollbackConverter.getVersionedSlotsUids(AuditPayload componentPayload)
This method retrieves the uid of the versioned slots stored in the provided payload.
|
protected java.util.List<java.lang.String> |
ComponentRollbackConverter.readSlotsFromComponentPayload(AuditPayload componentPayload)
This method returns a list containing the pk of each of the slots found in the given component payload.
|
protected void |
ComponentRollbackConverter.removeSlotsOutsidePageFromPayload(java.util.Set<ContentSlotModel> slotsInPage,
AuditPayload componentPayload)
This method removes from the payload any slot outside the current page.
|
protected AbstractCMSComponentModel |
ComponentRollbackConverter.replaceComponentWithCloneInPage(AbstractCMSComponentModel originalComponent,
AbstractPageModel page,
AuditPayload componentPayload)
This method creates a clone of the given component and uses it to replace all the references of the original component in
the version of the page provided, as indicated by the payload.
|
protected void |
ComponentRollbackConverter.rollbackComponentOnlyInPage(AbstractCMSComponentModel component,
AbstractPageModel page,
AuditPayload componentPayload)
This method rollbacks the component only in slots of the version of the page provided, as indicated by the payload.
|
AbstractCMSComponentModel |
ComponentRollbackConverter.rollbackItem(ItemModel itemModel,
CMSVersionModel version,
AuditPayload auditPayload) |
protected void |
ComponentRollbackConverter.updatePayloadForClonedComponent(AbstractCMSComponentModel clonedComponent,
AuditPayload componentPayload)
This method updates the component payload to match the cloned component information.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
CMSVersionToItemModelPopulator.getEmptyCollectionValuesPerQualifier(ItemModel itemModel,
AuditPayload auditPayload)
Returns the
Map that contains default (empty) collection values for every collection attribute that is
null. |
protected java.util.function.Predicate<AttributeDescriptorModel> |
CMSVersionToItemModelPopulator.isInAuditPayload(AuditPayload payload)
Verifies that the value of an attribute is in
AuditPayload. |
void |
CMSVersionToItemModelPopulator.populate(AuditPayload auditPayload,
ItemModel itemModel) |
| Modifier and Type | Method and Description |
|---|---|
AuditPayload |
JsonAuditRecord.getAuditPayload() |
AuditPayload |
JsonAuditRecord.getAuditPayloadAfterOperation() |
AuditPayload |
PayloadContent.getPayloadAfter() |
AuditPayload |
PayloadContent.getPayloadBefore() |
| Constructor and Description |
|---|
PayloadContent(AuditPayload payloadBefore,
AuditPayload payloadAfter,
java.util.Map<java.lang.String,java.lang.Object> context) |
| Modifier and Type | Method and Description |
|---|---|
protected AuditPayload |
AbstractReadAuditGateway.deserialize(java.lang.String payload) |
| Modifier and Type | Method and Description |
|---|---|
AuditPayload |
PayloadDeserializer.deserialize(java.lang.String payload) |
| Modifier and Type | Method and Description |
|---|---|
AuditPayload |
AuditPayload.Builder.build() |
Copyright © 2018 SAP SE. All Rights Reserved.