public final class ContributionStatus
A record of a recent contribution made by a user to a specific piece of content. A contribution can be either a
change to a never published draft ('draft'), an unpublished change on a page's draft ('unpublished') or a page
which does not contain any unpublished changes by the user ('current').
public ContributionStatus(Long contentId,
public long getContentId()
Id of the content or draft, if unpublished.
public long getLatestVersionId()
The latest published version of the content. If this is null, it means the content has never
public long getRelationId()
The collaborator relation on the draft for the content. A non-null value here indicates the presence
of contributions to the content by the current user. Null means that user hasn't made any contributions.
DRAFT_STATUS: Indicates a draft which has never been published before, i.e. latestVersionId will be null,
and contentStatus will be 'DRAFT'.
UNPUBLISHED_CHANGES: A published version of the page exists. The current user has started making additional
changes to the draft of the page, but has not published their changes. For this to be true the contentStatus
should be 'DRAFT' since the current user has contributed to the shared draft, latestVersionId must be non-null
because it needs to point to the published page version, and relationid is non-null to indicate that a
contribution is present on the draft content.
CURRENT: The content has been published before and there are no unpublished contributions by the user on the
draft, i.e. the latest version of content has a contentStatus of 'CURRENT'.