Interface IHasTenant

    • Method Detail

      • hasTenant

        default boolean hasTenant()
        Returns:
        The tenant or null.
        Since:
        6.1.1
      • hasTenantID

        default boolean hasTenantID()
        Specified by:
        hasTenantID in interface IHasTenantID
        Returns:
        true if a tenant ID is present, false if not.
      • hasSameTenantID

        default boolean hasSameTenantID​(@Nullable
                                        ITenantObject aObj)
        Check if the passed object has the same tenant ID as this object
        Parameters:
        aObj - The object to check. May be null.
        Returns:
        true if this object and the passed object (if not null) have the same tenant ID
      • hasSameTenant

        default boolean hasSameTenant​(@Nullable
                                      ITenant aTenant)
        Check if the passed tenant has the same ID as this object
        Parameters:
        aTenant - The tenant to check. May be null.
        Returns:
        true if this object and the passed object have the same tenant.