Package org.nuxeo.snapshot
Class SnapshotableAdapter
java.lang.Object
org.nuxeo.snapshot.SnapshotableAdapter
- All Implemented Interfaces:
Serializable
,Snapshot
,Snapshotable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected DocumentModel
static final String
static final String
Fields inherited from interface org.nuxeo.snapshot.Snapshotable
ABOUT_TO_CREATE_LEAF_VERSION_EVENT, ROOT_DOCUMENT_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentRef
createLeafVersion
(DocumentModel targetDoc, VersioningOption option) protected DocumentModel
createSnapshot
(VersioningOption option) protected void
dump
(int level, StringBuilder sb) protected void
fillFlatTree
(List<Snapshot> list) protected DocumentModel
getCheckoutDocument
(DocumentModel target) protected List<DocumentModel>
getChildren
(DocumentModel target) getRef()
protected DocumentModel
getVersionForLabel
(DocumentModel target, String versionLabel) protected DocumentModel
restore
(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:
getDocument
in interfaceSnapshot
-
getRef
-
createLeafVersion
-
createLeafVersionAndFetch
-
createSnapshot
- Specified by:
createSnapshot
in interfaceSnapshotable
-
getChildren
-
getChildren
- Specified by:
getChildren
in interfaceSnapshot
-
getChildrenSnapshots
- Specified by:
getChildrenSnapshots
in interfaceSnapshot
-
fillFlatTree
-
getFlatTree
- Specified by:
getFlatTree
in interfaceSnapshot
-
dump
-
toString
-
getVersionForLabel
-
getCheckoutDocument
-
restore
protected DocumentModel restore(DocumentModel leafVersion, DocumentModel target, boolean first, DocumentModelList olddocs) -
restore
-