Class Version
java.lang.Object
com.atlassian.confluence.api.model.content.Version
- All Implemented Interfaces:
NavigationAware
Represents the version of a piece of
Content
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Version.VersionBuilder
builder()
Returns aVersion.VersionBuilder
instance that can be used to create a newVersion
object.static Version.VersionBuilder
buildReference
(int number) buildReference
(Reference<Content> contentRef, int number) Deprecated.boolean
getBy()
int
syncRev is the revision id provided by Synchrony.static int
getVersionNumber
(Reference<Version> versionRef) int
hashCode()
boolean
isHidden()
boolean
Creates a version builder with the version number set as the next version after this versionresolveNavigation
(NavigationService navigationService) toString()
-
Method Details
-
builder
Returns aVersion.VersionBuilder
instance that can be used to create a newVersion
object. -
builder
-
buildReference
-
buildReference
@Deprecated public static Reference<Version> buildReference(Reference<Content> contentRef, int number) Deprecated.since 5.6 usebuildReference(int)
-
getVersionNumber
-
getBy
-
getWhenAt
- Since:
- 8.6
-
getMessage
-
getNumber
public int getNumber() -
isMinorEdit
public boolean isMinorEdit() -
isHidden
public boolean isHidden() -
getSyncRev
syncRev is the revision id provided by Synchrony.- See Also:
-
ContentEntityObject.SYNC_REV
com.atlassian.confluence.core.SaveContext#getSyncRev()
-
nextBuilder
Creates a version builder with the version number set as the next version after this version- Returns:
- a version builder with the version number initialized
-
getContentRef
-
equals
-
hashCode
public int hashCode() -
toString
-
buildReference(int)