public interface ContentReconciliationManager
| Modifier and Type | Method and Description |
|---|---|
void |
handleContentUpdateAfterSave(@NonNull ContentEntityObject content,
@Nullable SaveContext saveContext,
@NonNull Optional<Date> lastUpdateDate)
This part of the content update must run after the content has an ID.
|
void |
handleContentUpdateBeforeSave(@NonNull ContentEntityObject content,
@Nullable SaveContext saveContext)
Prepares Synchrony flags for reconciliationIfNeeded.
|
void |
handleEditorOnlyContentUpdateAfterSave(@NonNull ContentEntityObject content,
@Nullable SaveContext saveContext,
@NonNull Optional<Date> lastUpdateDate)
Used for Editor only changes where-in storage doesn't change.
|
void |
handleEditorOnlyContentUpdateBeforeSave(@NonNull ContentEntityObject content,
@Nullable SaveContext saveContext)
Used for Editor only changes where-in storage doesn't change.
|
boolean |
isReconciled(@NonNull ContentEntityObject content) |
void |
markDraftSynchronised(@NonNull SpaceContentEntityObject draftEntity)
Marks Synchrony Revision Source to synchrony.
|
void |
reconcileDraft(@NonNull SpaceContentEntityObject pageEntity,
@NonNull SpaceContentEntityObject draftEntity)
This method triggers
SynchronyRecoveryEvent if collab editing is turned on and data recovery is needed
for a draft. |
void |
reconcileIfNeeded(@NonNull ContentEntityObject content,
@Nullable SaveContext saveContext)
This method triggers
SynchronyRecoveryEvent if collab editing is turned on and data recovery is needed. |
void handleContentUpdateBeforeSave(@NonNull ContentEntityObject content, @Nullable SaveContext saveContext)
content - the content needs to be updatedsaveContext - the current save contextvoid handleEditorOnlyContentUpdateBeforeSave(@NonNull ContentEntityObject content, @Nullable SaveContext saveContext)
content - the content needs to be updatedsaveContext - the current save contextvoid handleContentUpdateAfterSave(@NonNull ContentEntityObject content, @Nullable SaveContext saveContext, @NonNull Optional<Date> lastUpdateDate)
content - the content has just been updatedsaveContext - the current save contextlastUpdateDate - the last updated date of updated content before content being updatedvoid handleEditorOnlyContentUpdateAfterSave(@NonNull ContentEntityObject content, @Nullable SaveContext saveContext, @NonNull Optional<Date> lastUpdateDate)
content - the content has just been updatedsaveContext - the current save contextlastUpdateDate - the last updated date of updated content before content being updatedvoid reconcileIfNeeded(@NonNull ContentEntityObject content, @Nullable SaveContext saveContext)
SynchronyRecoveryEvent if collab editing is turned on and data recovery is needed.
Recovery is needed when:
content is the latest version of the page or blog post AND'sync-rev-source' content property is not empty and not equals to neither 'synchrony' or 'synchrony-ack') ANDsaveContext is not equal to PageUpdateTrigger.LINK_REFACTORINGcontent - content to be recoveredsaveContext - context of operationboolean isReconciled(@NonNull ContentEntityObject content)
content - content to be checked for reconciliationvoid reconcileDraft(@NonNull SpaceContentEntityObject pageEntity, @NonNull SpaceContentEntityObject draftEntity)
SynchronyRecoveryEvent if collab editing is turned on and data recovery is needed
for a draft.pageEntity - Page whose draft reconciliation is neededdraftEntity - Draft to be reconciledvoid markDraftSynchronised(@NonNull SpaceContentEntityObject draftEntity)
draftEntity - Draft to be reconciledCopyright © 2003–2022 Atlassian. All rights reserved.