Interface LookupColumn<C extends LookupColumn<C>>

All Superinterfaces:
Column<C>, Comparable<C>, Component<C>, Copyable<C>, CustomCssComponent<C>, Serializable
All Known Implementing Classes:
DefaultLookupColumn

public interface LookupColumn<C extends LookupColumn<C>> extends Column<C>
Represents the metadata for a ColumnTypes.LOOKUP.
Author:
Susana Cruz (susanaccruz)
  • Method Details

    • hydrateEndpoint

      default C hydrateEndpoint(Endpoint<?> endpoint)
      Configures the hydration endpoint for the lookup. This endpoint tells the lookup where to go to retrieve the hydrated value of the column.

      This is useful when the associated domain only stores an entity ID in the field value, but we wish to display additional entity information in the column.

      Parameters:
      endpoint - the hydrate endpoint
      Returns:
      this
    • hydrateEndpoint

      default C hydrateEndpoint(UnaryOperator<Endpoint<?>> fn)
      Configures the hydration endpoint for the lookup. This endpoint tells the lookup where to go to retrieve the hydrated value of the column.

      This is useful when the associated domain only stores an entity ID in the field value, but we wish to display additional entity information in the column.

      Parameters:
      fn - a function to configure the hydrate endpoint
      Returns:
      this
    • hydrateUrl

      default C hydrateUrl(String url)
      Returns:
      this
    • hydrateScope

      default C hydrateScope(String scope)
      Returns:
      this
    • hydrateUrl

      default C hydrateUrl(String url, String scope)
      Configures hydrateEndpoint(UnaryOperator) url and scope.
      Returns:
      this
    • getHydrateEndpoint

      default Endpoint<?> getHydrateEndpoint()
      Returns:
      the hydrate endpoint
    • findHydrateEndpoint

      default Optional<Endpoint<?>> findHydrateEndpoint()
      Returns:
      an optional with hydrate endpoint, or empty