Class DocumentMessage
java.lang.Object
org.nuxeo.importer.stream.message.DocumentMessage
- All Implemented Interfaces:
Externalizable
,Serializable
,Message
Message that represent an immutable Nuxeo document.
- Since:
- 9.1
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentMessage.Builder
Helper to build a document message.static DocumentMessage
copy
(DocumentMessage node, String newName) getBlob()
getId()
A message identifier.getName()
getType()
Type of the documentvoid
toString()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.lib.stream.pattern.Message
forceBatch, poisonPill
-
Field Details
-
type
-
parentPath
-
name
-
properties
-
blob
-
blobInfo
-
-
Constructor Details
-
DocumentMessage
public DocumentMessage() -
DocumentMessage
-
-
Method Details
-
getName
-
getId
Description copied from interface:Message
A message identifier. -
getType
Type of the document -
getParentPath
-
getProperties
-
getBlob
-
getBlobInfo
-
builder
Helper to build a document message.- Parameters:
type
- the type of documentparentPath
- the container path where the document should be createdname
- the name of the document
-
copy
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
toString
-