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 class
Version.Expansions
static class
Version.VersionBuilder
CreatesVersion
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Version.VersionBuilder
builder()
Returns aVersion.VersionBuilder
instance that can be used to create a newVersion
object.static Version.VersionBuilder
builder(Version version)
static Reference<Version>
buildReference(int number)
static Reference<Version>
buildReference(Reference<Content> contentRef, int number)
Deprecated.since 5.6 usebuildReference(int)
boolean
equals(Object o)
Person
getBy()
Reference<Content>
getContentRef()
String
getMessage()
int
getNumber()
String
getSyncRev()
syncRev is the revision id provided by Synchrony.static int
getVersionNumber(Reference<Version> versionRef)
org.joda.time.DateTime
getWhen()
int
hashCode()
boolean
isHidden()
boolean
isMinorEdit()
Version.VersionBuilder
nextBuilder()
Creates a version builder with the version number set as the next version after this versionNavigation.Builder
resolveNavigation(NavigationService navigationService)
String
toString()
-
-
-
Method Detail
-
builder
public static Version.VersionBuilder builder()
Returns aVersion.VersionBuilder
instance that can be used to create a newVersion
object.
-
builder
public static Version.VersionBuilder builder(Version version)
-
resolveNavigation
public Navigation.Builder resolveNavigation(NavigationService navigationService)
- Specified by:
resolveNavigation
in 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
-
-