public class SnapshotableAdapter extends Object implements Snapshot, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CHILDREN_PROP |
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 |
|---|---|
Snapshot |
createSnapshot(VersioningOption option) |
List<DocumentModel> |
getChildren() |
List<Snapshot> |
getChildrenSnapshots() |
DocumentModel |
getDocument() |
List<Snapshot> |
getFlatTree() |
DocumentRef |
getRef() |
DocumentModel |
restore(String versionLabel) |
String |
toString() |
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()
public Snapshot createSnapshot(VersioningOption option) throws ClientException
createSnapshot in interface SnapshotableClientExceptionpublic List<DocumentModel> getChildren() throws ClientException
getChildren in interface SnapshotClientExceptionpublic List<Snapshot> getChildrenSnapshots() throws ClientException
getChildrenSnapshots in interface SnapshotClientExceptionpublic List<Snapshot> getFlatTree() throws ClientException
getFlatTree in interface SnapshotClientExceptionpublic DocumentModel restore(String versionLabel) throws ClientException
restore in interface SnapshotClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.