Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.rest
Class DocumentObject

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultObject
          extended by org.nuxeo.ecm.core.rest.DocumentObject
All Implemented Interfaces:
Resource, Adaptable
Direct Known Subclasses:
AbstractSiteDocumentObject, DocumentRoot

public class DocumentObject
extends DefaultObject

Author:
Bogdan Stefanescu

Constructor Summary
DocumentObject()
           
 
Method Summary
 Response doDelete()
           
 Object doGet()
           
 Object doHead()
           
 Response doPost()
           
 Response doPut()
           
<A> A
getAdapter(Class<A> adapter)
          Returns an object which is an instance of the given class associated with this object.
 CoreSession getCoreSession()
           
 Response getDelete()
           
 DocumentModel getDocument()
           
 Response getPut()
           
 String getTitle()
           
 void initialize(Object... args)
           
 DocumentObject newDocument(DocumentModel doc)
           
 DocumentObject newDocument(DocumentRef ref)
           
 DocumentObject newDocument(String path)
           
 Object search()
           
 Resource traverse(String path)
           
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
 
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
 

Constructor Detail

DocumentObject

public DocumentObject()
Method Detail

getAdapter

public <A> A getAdapter(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(Object... args)

doGet

public Object doGet()

getDelete

public Response getDelete()

search

public Object search()

doDelete

public Response doDelete()

doPost

public Response doPost()

doPut

public Response doPut()

getPut

public Response getPut()

doHead

public Object doHead()

traverse

public Resource traverse(String path)

newDocument

public DocumentObject newDocument(String path)

newDocument

public DocumentObject newDocument(DocumentRef ref)

newDocument

public DocumentObject newDocument(DocumentModel doc)

getCoreSession

public CoreSession getCoreSession()

getDocument

public DocumentModel getDocument()

getTitle

public String getTitle()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.