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 Snapshot
public DocumentRef getRef()
public Snapshot createSnapshot(VersioningOption option) throws ClientException
createSnapshot
in interface Snapshotable
ClientException
public List<DocumentModel> getChildren() throws ClientException
getChildren
in interface Snapshot
ClientException
public List<Snapshot> getChildrenSnapshots() throws ClientException
getChildrenSnapshots
in interface Snapshot
ClientException
public List<Snapshot> getFlatTree() throws ClientException
getFlatTree
in interface Snapshot
ClientException
public DocumentModel restore(String versionLabel) throws ClientException
restore
in interface Snapshot
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.