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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentMessage.BuilderHelper to build a document message.static DocumentMessagecopy(DocumentMessage node, String newName) getBlob()getId()A message identifier.getName()getType()Type of the documentvoidtoString()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:MessageA 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:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-