com.atlassian.confluence.core
Class VersionHistorySummary

java.lang.Object
  extended by com.atlassian.confluence.core.VersionHistorySummary

public class VersionHistorySummary
extends Object

That bit of a ContentEntityObject relevant to a version history


Constructor Summary
VersionHistorySummary(ContentEntityObject entity)
           
VersionHistorySummary(long contentId, int version, ConfluenceUser lastModifier, Date lastModifiedDate, String versionComment)
           
VersionHistorySummary(long contentId, int version, String lastModifier, Date lastModifiedDate, String versionComment)
          Deprecated. since 5.2. Use VersionHistorySummary(long, int, com.atlassian.confluence.user.ConfluenceUser, java.util.Date, String)
 
Method Summary
 long getId()
           
 Date getLastModificationDate()
           
 ConfluenceUser getLastModifier()
           
 String getLastModifierName()
          Deprecated. since 5.2. See getLastModifier() instead.
 String getRenderedVersionComment()
           
 int getVersion()
           
 String getVersionComment()
           
 boolean isVersionCommentAvailable()
           
static String renderVersionComment(String versionComment)
          Provide a standard wiki-rendering for version comments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionHistorySummary

@Deprecated
public VersionHistorySummary(long contentId,
                                        int version,
                                        String lastModifier,
                                        Date lastModifiedDate,
                                        String versionComment)
Deprecated. since 5.2. Use VersionHistorySummary(long, int, com.atlassian.confluence.user.ConfluenceUser, java.util.Date, String)


VersionHistorySummary

public VersionHistorySummary(long contentId,
                             int version,
                             ConfluenceUser lastModifier,
                             Date lastModifiedDate,
                             String versionComment)
Since:
5.2

VersionHistorySummary

public VersionHistorySummary(ContentEntityObject entity)
Method Detail

renderVersionComment

public static String renderVersionComment(String versionComment)
Provide a standard wiki-rendering for version comments. By default, version comments are rendered with only simple text markup, and with no paragraphs.

Parameters:
versionComment -
Returns:
the comment, rendered for display.

getId

public long getId()

getVersion

public int getVersion()

getLastModifier

public ConfluenceUser getLastModifier()
Since:
5.2

getLastModifierName

@Deprecated
public String getLastModifierName()
Deprecated. since 5.2. See getLastModifier() instead.

Returns:
the username of the last modifier

getLastModificationDate

public Date getLastModificationDate()

getVersionComment

public String getVersionComment()

getRenderedVersionComment

public String getRenderedVersionComment()

isVersionCommentAvailable

public boolean isVersionCommentAvailable()


Copyright © 2003–2015 Atlassian. All rights reserved.