Interface LookupColumn<C extends LookupColumn<C>>
- All Superinterfaces:
Column<C>,Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Serializable
- All Known Implementing Classes:
DefaultLookupColumn
Represents the metadata for a
ColumnTypes.LOOKUP.- Author:
- Susana Cruz (susanaccruz)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault Endpoint<?>default ChydrateEndpoint(Endpoint<?> endpoint) Configures the hydration endpoint for the lookup.default ChydrateEndpoint(UnaryOperator<Endpoint<?>> fn) Configures the hydration endpoint for the lookup.default ChydrateScope(String scope) ConfigureshydrateEndpoint(UnaryOperator)url.default ChydrateUrl(String url) ConfigureshydrateEndpoint(UnaryOperator)url.default ChydrateUrl(String url, String scope) ConfigureshydrateEndpoint(UnaryOperator)url and scope.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, widthMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, addSimpleComponent, apply, attribute, augmentable, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentableFlag, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentable, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
-
Method Details
-
hydrateEndpoint
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
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
ConfigureshydrateEndpoint(UnaryOperator)url.- Returns:
- this
-
hydrateScope
ConfigureshydrateEndpoint(UnaryOperator)url.- Returns:
- this
-
hydrateUrl
ConfigureshydrateEndpoint(UnaryOperator)url and scope.- Returns:
- this
-
getHydrateEndpoint
- Returns:
- the hydrate endpoint
-
findHydrateEndpoint
- Returns:
- an optional with hydrate endpoint, or empty
-