SpaceTransferred

Represents a domain event indicating that an aggregate has been transferred to a different namespace/space.

This interface is typically implemented by domain events that signal a change in the aggregate's namespace, such as moving data between different environments, data partitions, or organizational boundaries within a multi-tenant system. The transfer allows for granular data isolation and organization beyond tenant and owner boundaries.

Namespace transfers are useful for:

  • Environment migration (e.g., moving from "staging" to "production")

  • Data archival and retrieval (e.g., moving old data to "archive" space)

  • Organizational restructuring (e.g., moving between department spaces)

  • Multi-tenant data isolation (e.g., separating data by workspace or project)

Since

1.0.0

See also

SpaceIdCapable

for the interface that defines space identification

for ownership transfer events

Properties

Link copied to clipboard
abstract val toSpaceId: SpaceId

The target space identifier after the transfer.