Class TenantBaseData

  • All Implemented Interfaces:
    Serializable

    public final class TenantBaseData
    extends Object
    implements Serializable
    Lightweight description of a single tenant affected by a TenantChangeEvent. Carries only the identity (id, uuid) and the name, so listeners can identify and filter the tenant without loading the entity.

    The type is Serializable so it may cross the master ⇄ frontend RPC boundary.

    Since:
    8.5.0
    Author:
    Norman Lorenz
    See Also:
    Serialized Form
    • Constructor Detail

      • TenantBaseData

        public TenantBaseData​(@NonNull
                              @NonNull Long id,
                              @NonNull
                              @NonNull UUID uuid,
                              @NonNull
                              @NonNull String name)
        Creates a new TenantBaseData instance.
        Parameters:
        id - The unique ID of the tenant.
        uuid - The unique UUID of the tenant.
        name - The name of the tenant.
        Since:
        8.5.6
    • Method Detail

      • getId

        @NonNull
        public @NonNull Long getId()
        The unique ID of the tenant.
      • getUuid

        @NonNull
        public @NonNull UUID getUuid()
        The unique UUID of the tenant.
        Since:
        8.5.6
      • getName

        @NonNull
        public @NonNull String getName()
        The name of the tenant.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object