Package org.nuxeo.ecm.core.rest
Class VersionService
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
-
- org.nuxeo.ecm.core.rest.VersionService
-
- All Implemented Interfaces:
AdapterResource
,Resource
,Adaptable
public class VersionService extends DefaultAdapter
Version Service - manage document versions TODO not yet implementedAccepts the following methods:
- GET - get the last document version
- DELETE - delete a version
- POST - create a new version
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description VersionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
doGet()
Object
doPost()
DocumentObject
getLastVersion()
DocumentObject
getVersion(String label)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
-
Methods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
-
-
-
-
Method Detail
-
doGet
public Object doGet()
-
getLastVersion
public DocumentObject getLastVersion()
-
getVersion
public DocumentObject getVersion(String label)
-
doPost
public Object doPost()
-
-