SpaceIdCapable

interface SpaceIdCapable

Interface for entities that support namespace-based data layering within a tenant context.

The namespace provides an additional level of data isolation and organization beneath the tenantId, enabling hierarchical data partitioning in multi-tenant applications. This allows for more granular control over data separation and organization within a single tenant.

Implementations of this interface should provide a meaningful namespace string that represents a logical grouping or layer of data. Common use cases include:

  • Environment isolation (e.g., "dev", "staging", "prod")

  • Data type partitioning (e.g., "metadata", "analytics", "cache")

  • Business domain separation (e.g., "primary", "archive", "backup")

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val spaceId: SpaceId

The namespace string used for data layering under a tenant. This value should be non-null and represent a valid identifier for the data layer. An empty string indicates the default namespace for the tenant.