public class SnapshotableAdapter extends Object implements Snapshot, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CHILDREN_PROP |
protected DocumentModel |
doc |
static String |
NAME_PROP |
static String |
SCHEMA |
ABOUT_TO_CREATE_LEAF_VERSION_EVENT, ROOT_DOCUMENT_PROPERTY| Constructor and Description |
|---|
SnapshotableAdapter(DocumentModel doc) |
| Modifier and Type | Method and Description |
|---|---|
protected DocumentRef |
createLeafVersion(DocumentModel targetDoc,
VersioningOption option) |
protected DocumentModel |
createLeafVersionAndFetch(VersioningOption option) |
Snapshot |
createSnapshot(VersioningOption option) |
protected void |
dump(int level,
StringBuffer sb) |
protected void |
fillFlatTree(List<Snapshot> list) |
protected DocumentModel |
getCheckoutDocument(DocumentModel target) |
List<DocumentModel> |
getChildren() |
protected List<DocumentModel> |
getChildren(DocumentModel target) |
List<Snapshot> |
getChildrenSnapshots() |
DocumentModel |
getDocument() |
List<Snapshot> |
getFlatTree() |
DocumentRef |
getRef() |
protected DocumentModel |
getVersionForLabel(DocumentModel target,
String versionLabel) |
protected DocumentModel |
restore(DocumentModel leafVersion,
DocumentModel target,
boolean first,
DocumentModelList olddocs) |
DocumentModel |
restore(String versionLabel) |
String |
toString() |
protected DocumentModel doc
public static final String SCHEMA
public static final String CHILDREN_PROP
public static final String NAME_PROP
public SnapshotableAdapter(DocumentModel doc)
public DocumentModel getDocument()
getDocument in interface Snapshotpublic DocumentRef getRef()
protected DocumentRef createLeafVersion(DocumentModel targetDoc, VersioningOption option) throws ClientException
ClientExceptionprotected DocumentModel createLeafVersionAndFetch(VersioningOption option) throws ClientException
ClientExceptionpublic Snapshot createSnapshot(VersioningOption option) throws ClientException
createSnapshot in interface SnapshotableClientExceptionprotected List<DocumentModel> getChildren(DocumentModel target) throws ClientException
ClientExceptionpublic List<DocumentModel> getChildren() throws ClientException
getChildren in interface SnapshotClientExceptionpublic List<Snapshot> getChildrenSnapshots() throws ClientException
getChildrenSnapshots in interface SnapshotClientExceptionprotected void fillFlatTree(List<Snapshot> list) throws ClientException
ClientExceptionpublic List<Snapshot> getFlatTree() throws ClientException
getFlatTree in interface SnapshotClientExceptionprotected void dump(int level,
StringBuffer sb)
protected DocumentModel getVersionForLabel(DocumentModel target, String versionLabel) throws ClientException
ClientExceptionprotected DocumentModel getCheckoutDocument(DocumentModel target) throws ClientException
ClientExceptionprotected DocumentModel restore(DocumentModel leafVersion, DocumentModel target, boolean first, DocumentModelList olddocs) throws ClientException
ClientExceptionpublic DocumentModel restore(String versionLabel) throws ClientException
restore in interface SnapshotClientExceptionCopyright © 2020 Nuxeo SA. All rights reserved.