|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.automation.core.util.DocumentHelper
public class DocumentHelper
Constructor Summary | |
---|---|
DocumentHelper()
|
Method Summary | |
---|---|
static void |
addBlob(Property p,
Blob blob)
Given a document property, updates its value with the given blob. |
static java.util.HashMap<java.lang.String,java.io.Serializable> |
createBlobHolderMap(Blob blob)
|
static void |
removeProperty(DocumentModel doc,
java.lang.String xpath)
Removes a property from a document given the xpath. |
static DocumentModel |
saveDocument(CoreSession session,
DocumentModel doc)
Saves the document and clear context data to avoid incrementing version in next operations if not needed. |
static void |
setProperties(CoreSession session,
DocumentModel doc,
java.util.Map<java.lang.String,java.lang.String> values)
Sets the properties given as a map of xpath:value to the given document. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentHelper()
Method Detail |
---|
public static DocumentModel saveDocument(CoreSession session, DocumentModel doc) throws ClientException
ClientException
public static void removeProperty(DocumentModel doc, java.lang.String xpath) throws ClientException
ClientException
public static void addBlob(Property p, Blob blob) throws PropertyException
PropertyException
public static java.util.HashMap<java.lang.String,java.io.Serializable> createBlobHolderMap(Blob blob)
public static void setProperties(CoreSession session, DocumentModel doc, java.util.Map<java.lang.String,java.lang.String> values) throws java.lang.Exception
java.lang.Exception
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |