public class XWikiRCSArchive
extends org.suigeneris.jrcs.rcs.Archive
XWikiDocumentArchive
.branch, comment, desc, EXP_Binary, EXP_KeywordAndValue, EXP_KeywordOnly, EXP_KeywordValueAndLocker, EXP_PreserveOriginal, EXP_ValueOnly, expand, filename, head, locked, nodes, phrases, RCS_NEWLINE, RCS_NEWLINE_CHAR, strictLocking, symbols, users
Constructor and Description |
---|
XWikiRCSArchive(Collection<XWikiRCSNodeInfo> nodeInfos,
XWikiContext context)
Used to serialize
XWikiDocumentArchive . |
XWikiRCSArchive(String archiveText)
Used to deserialize
XWikiDocumentArchive . |
Modifier and Type | Method and Description |
---|---|
Collection |
getNodes(long docId) |
String |
getRevisionAsString(org.suigeneris.jrcs.rcs.Version version) |
addLock, addPhrase, addRevision, addRevision, addRevision, addSymbol, addSymbol, addUser, changeLog, changeLog, changeLog, doKeywords, findNode, getDesc, getExpand, getLog, getLog, getNode, getPhrases, getRevision, getRevision, getRevision, getRevision, getRevision, getRevision, getRevision, getRevision, getRevision, getRevisionPath, getRevisionVersion, getRevisionVersion, getRevisionVersion, getSymbols, isBinary, isValidSymbol, newBranchNode, newNode, newNode, newTrunkNode, quoteString, Remove, Remove, Remove, removeKeywords, save, save, setBranch, setBranch, setComment, setDesc, setExpand, setFileName, setHead, setStrictLocking, toByteArray, toCharArray, toString, toString, toString, toString, unquoteString, unquoteString, version
public XWikiRCSArchive(Collection<XWikiRCSNodeInfo> nodeInfos, XWikiContext context) throws XWikiException
XWikiDocumentArchive
.nodeInfos
- - collection of XWikiRCSNodeInfo
in any ordercontext
- - for loading nodes contentXWikiException
- if can't load nodes contentpublic XWikiRCSArchive(String archiveText) throws org.suigeneris.jrcs.rcs.parse.ParseException
XWikiDocumentArchive
.archiveText
- - archive text in JRCS formatorg.suigeneris.jrcs.rcs.parse.ParseException
- if syntax errorspublic Collection getNodes(long docId) throws org.suigeneris.jrcs.rcs.impl.NodeNotFoundException, org.suigeneris.jrcs.rcs.InvalidFileFormatException, org.suigeneris.jrcs.diff.PatchFailedException
docId
- - docId which will be wrote in XWikiRCSNodeId.setDocId(long)
XWikiRCSNodeInfo
, XWikiRCSNodeContent
]org.suigeneris.jrcs.diff.PatchFailedException
org.suigeneris.jrcs.rcs.InvalidFileFormatException
org.suigeneris.jrcs.rcs.impl.NodeNotFoundException
public String getRevisionAsString(org.suigeneris.jrcs.rcs.Version version) throws org.suigeneris.jrcs.rcs.impl.NodeNotFoundException, org.suigeneris.jrcs.rcs.InvalidFileFormatException, org.suigeneris.jrcs.diff.PatchFailedException
version
- - the version number.org.suigeneris.jrcs.rcs.impl.NodeNotFoundException
- if the revision could not be found.org.suigeneris.jrcs.rcs.InvalidFileFormatException
- if any of the deltas cannot be parsed.org.suigeneris.jrcs.diff.PatchFailedException
- if any of the deltas could not be appliedCopyright © 2004–2022 XWiki. All rights reserved.