public class DocumentMessage extends Object implements Message
Modifier and Type | Class and Description |
---|---|
static class |
DocumentMessage.Builder |
Modifier and Type | Method and Description |
---|---|
static DocumentMessage.Builder |
builder(String type,
String parentPath,
String name)
Helper to build a document message.
|
Blob |
getBlob() |
BlobManager.BlobInfo |
getBlobInfo() |
String |
getId()
A message identifier.
|
String |
getName() |
String |
getParentPath() |
Map<String,Serializable> |
getProperties() |
String |
getType()
Type of the document
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forceBatch, poisonPill
public String getParentPath()
public Map<String,Serializable> getProperties()
public BlobManager.BlobInfo getBlobInfo()
public static DocumentMessage.Builder builder(String type, String parentPath, String name)
type
- the type of documentparentPath
- the container path where the document should be createdname
- the name of the documentpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2017 Nuxeo. All rights reserved.