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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Version.VersionBuilderbuilder()Returns aVersion.VersionBuilderinstance that can be used to create a newVersionobject.static Version.VersionBuilderbuildReference(int number) buildReference(Reference<Content> contentRef, int number) Deprecated.booleangetBy()intsyncRev is the revision id provided by Synchrony.static intgetVersionNumber(Reference<Version> versionRef) inthashCode()booleanisHidden()booleanCreates a version builder with the version number set as the next version after this versionresolveNavigation(NavigationService navigationService) toString()
-
Method Details
-
builder
Returns aVersion.VersionBuilderinstance that can be used to create a newVersionobject. -
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_REVcom.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)