Package com.xpn.xwiki.doc.rcs
Class XWikiRCSNodeId
- java.lang.Object
-
- com.xpn.xwiki.util.AbstractSimpleClass
-
- com.xpn.xwiki.doc.rcs.XWikiRCSNodeId
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class XWikiRCSNodeId extends AbstractSimpleClass implements Serializable, Cloneable
Composite ID component used inXWikiRCSNodeInfo
andXWikiRCSNodeContent
. Immutable.- Since:
- 1.2M1
- Version:
- $Id: 10c5e7ad57fc8d813304c9be729b5885a6bf9746 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XWikiRCSNodeId()
Default constructor used in Hibernate to load this class.XWikiRCSNodeId(long docId, org.suigeneris.jrcs.rcs.Version version)
Deprecated.since 13.10.7, 14.4.1, 14.5, useXWikiRCSNodeId(WikiReference, long, Version)
insteadXWikiRCSNodeId(WikiReference wikiReference, long docId, org.suigeneris.jrcs.rcs.Version version)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
clone()
long
getDocId()
org.suigeneris.jrcs.rcs.Version
getVersion()
protected int
getVersion1()
protected int
getVersion2()
WikiReference
getWikiReference()
protected void
setDocId(long docId)
Deprecated.since 13.10.7, 14.4.1, 14.5, useXWikiRCSNodeId(WikiReference, long, Version)
insteadprotected void
setVersion(org.suigeneris.jrcs.rcs.Version ver)
protected void
setVersion1(int v1)
protected void
setVersion2(int v2)
void
setWikiReference(WikiReference wikiReference)
-
Methods inherited from class com.xpn.xwiki.util.AbstractSimpleClass
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
XWikiRCSNodeId
public XWikiRCSNodeId()
Default constructor used in Hibernate to load this class.
-
XWikiRCSNodeId
public XWikiRCSNodeId(WikiReference wikiReference, long docId, org.suigeneris.jrcs.rcs.Version version)
- Parameters:
wikiReference
- the wiki of the documentdocId
- the local identifier of the documentversion
- the version of document- Since:
- 13.10.7, 14.4.1, 14.5
-
XWikiRCSNodeId
@Deprecated(since="13.10.7") public XWikiRCSNodeId(long docId, org.suigeneris.jrcs.rcs.Version version)
Deprecated.since 13.10.7, 14.4.1, 14.5, useXWikiRCSNodeId(WikiReference, long, Version)
instead- Parameters:
docId
- the local identifier of the documentversion
- the version of document
-
-
Method Detail
-
getWikiReference
public WikiReference getWikiReference()
- Returns:
- the reference of the wiki where this node is located or null if unknown
- Since:
- 13.10.7, 14.4.1, 14.5
-
setWikiReference
public void setWikiReference(WikiReference wikiReference)
- Parameters:
wikiReference
- the reference of the wiki where this node is located
-
getDocId
public long getDocId()
- Returns:
XWikiDocument.getId()
-
setDocId
@Deprecated(since="13.10.7") protected void setDocId(long docId)
Deprecated.since 13.10.7, 14.4.1, 14.5, useXWikiRCSNodeId(WikiReference, long, Version)
instead- Parameters:
docId
- =XWikiDocument.getId()
-
getVersion
public org.suigeneris.jrcs.rcs.Version getVersion()
- Returns:
- version of document
-
setVersion
protected void setVersion(org.suigeneris.jrcs.rcs.Version ver)
- Parameters:
ver
- - version of document
-
getVersion1
protected int getVersion1()
- Returns:
- 1st number in version used in Hibernate to store this class
-
getVersion2
protected int getVersion2()
- Returns:
- 2nd number in version used in Hibernate to store this class
-
setVersion1
protected void setVersion1(int v1)
- Parameters:
v1
- = 1st number in version used in Hibernate to load this class
-
setVersion2
protected void setVersion2(int v2)
- Parameters:
v2
- = 2nd number in version used in Hibernate to load this class
-
-