Package org.nuxeo.ecm.core.rest
Class DocumentObject
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.ecm.core.rest.DocumentObject
- Direct Known Subclasses:
DocumentRoot,JSONDocumentObject
- Author:
- Bogdan Stefanescu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsedoDelete()doGet()doHead()javax.ws.rs.core.ResponsedoPost()javax.ws.rs.core.ResponsedoPut()<A> AgetAdapter(Class<A> adapter) Returns an object which is an instance of the given class associated with this object.javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetPut()getTitle()voidinitialize(Object... args) newDocument(String path) newDocument(DocumentModel doc) newDocument(DocumentRef ref) search()Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapterMethods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
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, toString
-
Field Details
-
doc
-
-
Constructor Details
-
DocumentObject
public DocumentObject()
-
-
Method Details
-
getAdapter
Description copied from interface:AdaptableReturns an object which is an instance of the given class associated with this object. Returnsnullif no such object can be found.- Specified by:
getAdapterin interfaceAdaptable- Overrides:
getAdapterin classAbstractResource<ResourceTypeImpl>- Parameters:
adapter- the adapter class to look up- Returns:
- a object castable to the given class, or
nullif this object does not have an adapter for the given class
-
initialize
- Overrides:
initializein classAbstractResource<ResourceTypeImpl>
-
doGet
-
getDelete
public javax.ws.rs.core.Response getDelete() -
search
-
doDelete
public javax.ws.rs.core.Response doDelete() -
doPost
public javax.ws.rs.core.Response doPost() -
doPut
public javax.ws.rs.core.Response doPut() -
getPut
public javax.ws.rs.core.Response getPut() -
doHead
-
traverse
-
newDocument
-
newDocument
-
newDocument
-
getCoreSession
-
getDocument
-
getTitle
-