Class Version
- java.lang.Object
 - 
- com.atlassian.confluence.api.model.content.Version
 
 
- 
- All Implemented Interfaces:
 NavigationAware
public class Version extends Object implements NavigationAware
Represents the version of a piece ofContent. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersion.Expansionsstatic classVersion.VersionBuilderCreatesVersioninstances. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Version.VersionBuilderbuilder()Returns aVersion.VersionBuilderinstance that can be used to create a newVersionobject.static Version.VersionBuilderbuilder(Version version)static Reference<Version>buildReference(int number)static Reference<Version>buildReference(Reference<Content> contentRef, int number)Deprecated.since 5.6 usebuildReference(int)booleanequals(Object o)PersongetBy()Reference<Content>getContentRef()StringgetMessage()intgetNumber()StringgetSyncRev()syncRev is the revision id provided by Synchrony.static intgetVersionNumber(Reference<Version> versionRef)org.joda.time.DateTimegetWhen()Deprecated.since 8.6 usegetWhenAt()OffsetDateTimegetWhenAt()inthashCode()booleanisHidden()booleanisMinorEdit()Version.VersionBuildernextBuilder()Creates a version builder with the version number set as the next version after this versionNavigation.BuilderresolveNavigation(NavigationService navigationService)StringtoString() 
 - 
 
- 
- 
Method Detail
- 
builder
public static Version.VersionBuilder builder()
Returns aVersion.VersionBuilderinstance that can be used to create a newVersionobject. 
- 
builder
public static Version.VersionBuilder builder(Version version)
 
- 
resolveNavigation
public Navigation.Builder resolveNavigation(NavigationService navigationService)
- Specified by:
 resolveNavigationin interfaceNavigationAware
 
- 
buildReference
@Deprecated public static Reference<Version> buildReference(Reference<Content> contentRef, int number)
Deprecated.since 5.6 usebuildReference(int) 
- 
getBy
public Person getBy()
 
- 
getWhen
@Deprecated public org.joda.time.DateTime getWhen()
Deprecated.since 8.6 usegetWhenAt() 
- 
getWhenAt
public OffsetDateTime getWhenAt()
- Since:
 - 8.6
 
 
- 
getMessage
public String getMessage()
 
- 
getNumber
public int getNumber()
 
- 
isMinorEdit
public boolean isMinorEdit()
 
- 
isHidden
public boolean isHidden()
 
- 
getSyncRev
public String getSyncRev()
syncRev is the revision id provided by Synchrony.- See Also:
 ContentEntityObject.SYNC_REV,com.atlassian.confluence.core.SaveContext#getSyncRev()
 
- 
nextBuilder
public Version.VersionBuilder 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
 
 
 - 
 
 -