Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.operations
Class FetchContextDocument

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.operations.FetchContextDocument

public class FetchContextDocument
extends Object

Generic fetch document operation that can be used on any context that has a document as the input. This operation is taking the context input and it is returning it as a document If the input is not a document an exception is thrown

Author:
Bogdan Stefanescu

Field Summary
static String ID
           
 
Constructor Summary
FetchContextDocument()
           
 
Method Summary
 DocumentModel run(DocumentModel doc)
           
 DocumentModelList run(DocumentModelList docs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

FetchContextDocument

public FetchContextDocument()
Method Detail

run

public DocumentModel run(DocumentModel doc)
                  throws Exception
Throws:
Exception

run

public DocumentModelList run(DocumentModelList docs)
                      throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.