Package org.nuxeo.snapshot
Class SnapshotableAdapter
java.lang.Object
org.nuxeo.snapshot.SnapshotableAdapter
- All Implemented Interfaces:
Serializable,Snapshot,Snapshotable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected DocumentModelstatic final Stringstatic final StringFields inherited from interface org.nuxeo.snapshot.Snapshotable
ABOUT_TO_CREATE_LEAF_VERSION_EVENT, ROOT_DOCUMENT_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentRefcreateLeafVersion(DocumentModel targetDoc, VersioningOption option) protected DocumentModelcreateSnapshot(VersioningOption option) protected voiddump(int level, StringBuilder sb) protected voidfillFlatTree(List<Snapshot> list) protected DocumentModelgetCheckoutDocument(DocumentModel target) protected List<DocumentModel> getChildren(DocumentModel target) getRef()protected DocumentModelgetVersionForLabel(DocumentModel target, String versionLabel) protected DocumentModelrestore(DocumentModel leafVersion, DocumentModel target, boolean first, DocumentModelList olddocs) toString()
-
Field Details
-
doc
-
SCHEMA
- See Also:
-
CHILDREN_PROP
- See Also:
-
NAME_PROP
- See Also:
-
-
Constructor Details
-
SnapshotableAdapter
-
-
Method Details
-
getDocument
- Specified by:
getDocumentin interfaceSnapshot
-
getRef
-
createLeafVersion
-
createLeafVersionAndFetch
-
createSnapshot
- Specified by:
createSnapshotin interfaceSnapshotable
-
getChildren
-
getChildren
- Specified by:
getChildrenin interfaceSnapshot
-
getChildrenSnapshots
- Specified by:
getChildrenSnapshotsin interfaceSnapshot
-
fillFlatTree
-
getFlatTree
- Specified by:
getFlatTreein interfaceSnapshot
-
dump
-
toString
-
getVersionForLabel
-
getCheckoutDocument
-
restore
protected DocumentModel restore(DocumentModel leafVersion, DocumentModel target, boolean first, DocumentModelList olddocs) -
restore
-