Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.client.jaxrs.adapters
Class DocumentService

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.jaxrs.adapters.DocumentService

public class DocumentService
extends java.lang.Object

Author:
Bogdan Stefanescu

Field Summary
static java.lang.String AttachBlob
           
static java.lang.String CreateDocument
           
static java.lang.String FetchDocument
           
static java.lang.String GetDocumentChildren
           
static java.lang.String GetDocumentParent
           
static java.lang.String Query
           
 
Constructor Summary
DocumentService(Session session)
           
 
Method Summary
 Document createDocument(DocRef parent, java.lang.String type, java.lang.String name)
           
 Document createDocument(DocRef parent, java.lang.String type, java.lang.String name, PropertyMap properties)
           
 Documents getChild(DocRef docRef, java.lang.String path)
           
 Documents getChildren(DocRef docRef)
           
 Document getDocument(DocRef ref)
           
 Document getDocument(java.lang.String ref)
           
 Documents getParent(DocRef docRef)
           
 Documents getParent(DocRef docRef, java.lang.String type)
           
 Session getSession()
           
 Documents query(java.lang.String query)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FetchDocument

public static final java.lang.String FetchDocument
See Also:
Constant Field Values

CreateDocument

public static final java.lang.String CreateDocument
See Also:
Constant Field Values

GetDocumentChildren

public static final java.lang.String GetDocumentChildren
See Also:
Constant Field Values

GetDocumentParent

public static final java.lang.String GetDocumentParent
See Also:
Constant Field Values

AttachBlob

public static final java.lang.String AttachBlob
See Also:
Constant Field Values

Query

public static final java.lang.String Query
See Also:
Constant Field Values
Constructor Detail

DocumentService

public DocumentService(Session session)
Method Detail

getSession

public Session getSession()

getDocument

public Document getDocument(java.lang.String ref)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getDocument

public Document getDocument(DocRef ref)
                     throws java.lang.Exception
Throws:
java.lang.Exception

createDocument

public Document createDocument(DocRef parent,
                               java.lang.String type,
                               java.lang.String name)
                        throws java.lang.Exception
Throws:
java.lang.Exception

createDocument

public Document createDocument(DocRef parent,
                               java.lang.String type,
                               java.lang.String name,
                               PropertyMap properties)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getChildren

public Documents getChildren(DocRef docRef)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getChild

public Documents getChild(DocRef docRef,
                          java.lang.String path)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getParent

public Documents getParent(DocRef docRef)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getParent

public Documents getParent(DocRef docRef,
                           java.lang.String type)
                    throws java.lang.Exception
Throws:
java.lang.Exception

query

public Documents query(java.lang.String query)
                throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.