Package-level declarations
Types
Link copied to clipboard
data class DefaultAggregateId(val namedAggregate: NamedAggregate, val id: String, val tenantId: String = TenantId.DEFAULT_TENANT_ID) : AggregateId
Represents a default implementation of AggregateId, which uniquely identifies an aggregate instance within a bounded context.
Link copied to clipboard
data class MaterializedNamedAggregate(val contextName: String, val aggregateName: String) : NamedAggregate, Materialized
Represents a materialized named aggregate, providing concrete implementations of context and aggregate names.
Properties
Functions
Link copied to clipboard
fun NamedAggregate.aggregateId(id: String = generateId(), tenantId: String = TenantId.DEFAULT_TENANT_ID): DefaultAggregateId
Creates an AggregateId for this NamedAggregate with the specified parameters.
fun AggregateMetadata<*, *>.aggregateId(id: String = generateId(), tenantId: String = staticTenantId ?: TenantId.DEFAULT_TENANT_ID): DefaultAggregateId
Creates an AggregateId for this AggregateMetadata with the specified parameters.
Link copied to clipboard
Gets the context alias prefix for this bounded context.
Link copied to clipboard
Materializes this NamedAggregate into a MaterializedNamedAggregate.
Link copied to clipboard
Converts this string into a MaterializedNamedAggregate.
Link copied to clipboard
Converts this NamedAggregate to its string representation.
Link copied to clipboard
Converts this NamedAggregate to a string representation using the context alias.