public class DocumentObject extends DefaultObject
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
Constructor and Description |
---|
DocumentObject() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
doDelete() |
Object |
doGet() |
Object |
doHead() |
javax.ws.rs.core.Response |
doPost() |
javax.ws.rs.core.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() |
javax.ws.rs.core.Response |
getDelete() |
DocumentModel |
getDocument() |
javax.ws.rs.core.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) |
disptachAdapter, isAdapter
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
protected DocumentModel doc
public DocumentObject()
public <A> A getAdapter(Class<A> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class AbstractResource<ResourceTypeImpl>
adapter
- the adapter class to look upnull
if this object does not have an adapter for
the given classpublic void initialize(Object... args)
initialize
in class AbstractResource<ResourceTypeImpl>
public javax.ws.rs.core.Response getDelete()
public javax.ws.rs.core.Response doDelete()
public javax.ws.rs.core.Response doPost()
public javax.ws.rs.core.Response doPut()
public javax.ws.rs.core.Response getPut()
public DocumentObject newDocument(String path)
public DocumentObject newDocument(DocumentRef ref)
public DocumentObject newDocument(DocumentModel doc)
public CoreSession getCoreSession()
public DocumentModel getDocument()
Copyright © 2017 Nuxeo. All rights reserved.