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
- All Implemented Interfaces:
- Resource, Adaptable
- Direct Known Subclasses:
- AbstractSiteDocumentObject, DocumentRoot, GadgetDocument, JSONDocument
public class DocumentObject
- extends DefaultObject
- Author:
- Bogdan Stefanescu
Methods 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DocumentObject
public DocumentObject()
getAdapter
public <A> A getAdapter(java.lang.Class<A> adapter)
- Description copied from interface:
Adaptable
- Returns an object which is an instance of the given class
associated with this object. Returns
null
if
no such object can be found.
- Specified by:
getAdapter
in interface Adaptable
- Overrides:
getAdapter
in class AbstractResource<ResourceTypeImpl>
- Parameters:
adapter
- the adapter class to look up
- Returns:
- a object castable to the given class,
or
null
if this object does not
have an adapter for the given class
initialize
public void initialize(java.lang.Object... args)
doGet
public java.lang.Object doGet()
getDelete
public javax.ws.rs.core.Response getDelete()
search
public java.lang.Object 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
public java.lang.Object doHead()
traverse
public Resource traverse(java.lang.String path)
newDocument
public DocumentObject newDocument(java.lang.String path)
newDocument
public DocumentObject newDocument(DocumentRef ref)
newDocument
public DocumentObject newDocument(DocumentModel doc)
getCoreSession
public CoreSession getCoreSession()
getDocument
public DocumentModel getDocument()
getTitle
public java.lang.String getTitle()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.