public class DocumentMessage extends Object implements Message
Modifier and Type | Class and Description |
---|---|
static class |
DocumentMessage.Builder |
Modifier and Type | Field and Description |
---|---|
protected Blob |
blob |
protected BlobInfo |
blobInfo |
protected String |
name |
protected String |
parentPath |
protected Map<String,Serializable> |
properties |
protected String |
type |
Modifier | Constructor and Description |
---|---|
|
DocumentMessage() |
protected |
DocumentMessage(DocumentMessage.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static DocumentMessage.Builder |
builder(String type,
String parentPath,
String name)
Helper to build a document message.
|
static DocumentMessage |
copy(DocumentMessage node,
String newName) |
Blob |
getBlob() |
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
protected String parentPath
protected Map<String,Serializable> properties
public DocumentMessage()
protected DocumentMessage(DocumentMessage.Builder builder)
public String getParentPath()
public Map<String,Serializable> getProperties()
public 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 static DocumentMessage copy(DocumentMessage node, String newName)
public 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 © 2018 Nuxeo. All rights reserved.