Package com.xpn.xwiki.doc.rcs
Class XWikiRCSNodeInfo
- java.lang.Object
-
- com.xpn.xwiki.util.AbstractSimpleClass
-
- com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo
-
- All Implemented Interfaces:
Comparable<XWikiRCSNodeInfo>
public class XWikiRCSNodeInfo extends AbstractSimpleClass implements Comparable<XWikiRCSNodeInfo>
Contains information about document version. Mutable.- Since:
- 1.2M1
- Version:
- $Id: 82b6c2d0f639d438f7271610d0a0617dfaff4f63 $
-
-
Constructor Summary
Constructors Constructor Description XWikiRCSNodeInfo()
default constructor used in Hibernate to load this class.XWikiRCSNodeInfo(XWikiRCSNodeId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(XWikiRCSNodeInfo o)
String
getAuthor()
String
getComment()
XWikiRCSNodeContent
getContent(XWikiContext context)
Date
getDate()
XWikiRCSNodeId
getId()
org.suigeneris.jrcs.rcs.Version
getVersion()
boolean
isDiff()
boolean
isMinorEdit()
void
setAuthor(String updateAuthor)
void
setComment(String comment)
void
setContent(XWikiRCSNodeContent content)
void
setDate(Date updateDate)
void
setDiff(boolean diff)
void
setId(XWikiRCSNodeId id)
-
Methods inherited from class com.xpn.xwiki.util.AbstractSimpleClass
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
XWikiRCSNodeInfo
public XWikiRCSNodeInfo()
default constructor used in Hibernate to load this class.
-
XWikiRCSNodeInfo
public XWikiRCSNodeInfo(XWikiRCSNodeId id)
- Parameters:
id
- - primary key.
-
-
Method Detail
-
getId
public XWikiRCSNodeId getId()
- Returns:
- primary key.
-
setId
public void setId(XWikiRCSNodeId id)
- Parameters:
id
- - primary key.
-
getDate
public Date getDate()
- Returns:
- date of this modification.
-
setDate
public void setDate(Date updateDate)
- Parameters:
updateDate
- - date of this modification.
-
getAuthor
public String getAuthor()
- Returns:
- get author of modification.
-
setAuthor
public void setAuthor(String updateAuthor)
- Parameters:
updateAuthor
- - author of modification.
-
getComment
public String getComment()
- Returns:
- modification's comment.
-
setComment
public void setComment(String comment)
- Parameters:
comment
- - modification's comment.
-
isMinorEdit
public boolean isMinorEdit()
- Returns:
- is modification minor.
-
isDiff
public boolean isDiff()
- Returns:
- is patch or full version.
-
setDiff
public void setDiff(boolean diff)
- Parameters:
diff
- - is patch (true) or full version (false). Should not be used directly.- See Also:
XWikiPatch.setDiff(boolean)
-
getContent
public XWikiRCSNodeContent getContent(XWikiContext context) throws XWikiException
- Parameters:
context
- - load with this context. If null then do not load.- Returns:
XWikiRCSNodeContent
for this node.- Throws:
XWikiException
- if can't load
-
setContent
public void setContent(XWikiRCSNodeContent content)
- Parameters:
content
- -XWikiRCSNodeContent
for this node.
-
getVersion
public org.suigeneris.jrcs.rcs.Version getVersion()
- Returns:
- version of this revision.
-
compareTo
public int compareTo(XWikiRCSNodeInfo o)
- Specified by:
compareTo
in interfaceComparable<XWikiRCSNodeInfo>
-
-