Class Version
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.Version
-
- All Implemented Interfaces:
NavigationAware
@ExperimentalApi 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()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
public org.joda.time.DateTime getWhen()
-
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
-
-