org.nuxeo.ecm.core.rest
Class FileService
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
org.nuxeo.ecm.core.rest.FileService
- All Implemented Interfaces:
- AdapterResource, Resource, Adaptable
public class FileService
- extends DefaultAdapter
File Service - manages attachments to a document.
Accepts the following methods:
- GET - get the attached file
- POST - create an attachment
- Author:
- Bogdan Stefanescu
Method Summary |
javax.ws.rs.core.Response |
doDelete()
|
javax.ws.rs.core.Response |
doGet()
|
javax.ws.rs.core.Response |
doPost()
|
javax.ws.rs.core.Response |
remove()
|
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, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
FileService
public FileService()
doGet
public javax.ws.rs.core.Response doGet()
doPost
public javax.ws.rs.core.Response doPost()
remove
public javax.ws.rs.core.Response remove()
doDelete
public javax.ws.rs.core.Response doDelete()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.