julee.domain.models.document.document¶
Document domain models for the Capture, Extract, Assemble, Publish workflow.
This module contains the core document domain objects that represent documents and their metadata in the CEAP workflow system.
All domain models use Pydantic BaseModel for validation, serialization, and type safety, following the patterns established in the sample project.
Classes¶
Complete document entity including content and metadata. |
|
Status of a document through the Capture, Extract, Assemble, Publish |
Functions¶
|
Decorator to delegate IO methods to the content stream property. |
Module Contents¶
- class julee.domain.models.document.document.Document(/, **data)[source]¶
Bases:
pydantic.BaseModelComplete document entity including content and metadata.
This is the primary domain model that represents a complete document in the CEAP workflow system. Content is provided as a ContentStream for efficient handling of both small and large documents.
The content stream is excluded from JSON serialization - use separate content endpoints for streaming binary data over HTTP.
- validate_content_fields(info)[source]¶
Ensure document has either content or content_string, not both.
- content: julee.domain.models.custom_fields.content_stream.ContentStream | None = None[source]¶
- status: DocumentStatus[source]¶