Interface FetchEntity<C extends FetchEntity<C>>
- All Superinterfaces:
Comparable<C>,Component<C>,Copyable<C>,Serializable
- All Known Subinterfaces:
UpdateEntityView<V>
- All Known Implementing Classes:
DefaultUpdateEntityLongFormView,DefaultUpdateEntityView
Represents the metadata for a component that supports fetching a single entity.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault CaddReadEndpoint(Endpoint<?> endpoint) Adds theFetchEntity.EndpointTypes.READendpoint for the component.Finds theFetchEntity.EndpointTypes.READendpoint for this component.default Endpoint<?>Retrieves theFetchEntity.EndpointTypes.READendpoint for this component.default CreadEndpoint(UnaryOperator<Endpoint<?>> fn) Configures theFetchEntity.EndpointTypes.READendpoint for the component.default CConfigures theFetchEntity.EndpointTypes.READendpoint with the given scope.default CConfigures theFetchEntity.EndpointTypes.READendpoint with the given url.default CConfigures theFetchEntity.EndpointTypes.READendpoint with the given url and scope.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, 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, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
-
Method Details
-
addReadEndpoint
Adds theFetchEntity.EndpointTypes.READendpoint for the component.- Parameters:
endpoint- the endpoint- Returns:
- this
-
readEndpoint
Configures theFetchEntity.EndpointTypes.READendpoint for the component.- Parameters:
fn- the function to configure the endpoint- Returns:
- this
-
readUrl
Configures theFetchEntity.EndpointTypes.READendpoint with the given url.- Parameters:
url- the url- Returns:
- this
-
readScope
Configures theFetchEntity.EndpointTypes.READendpoint with the given scope.- Parameters:
scope- the scope- Returns:
- this
-
readUrl
Configures theFetchEntity.EndpointTypes.READendpoint with the given url and scope.- Parameters:
url- the urlscope- the scope- Returns:
- this
-
getReadEndpoint
Retrieves theFetchEntity.EndpointTypes.READendpoint for this component.- Returns:
- the endpoint if it exists
- See Also:
-
findReadEndpoint
Finds theFetchEntity.EndpointTypes.READendpoint for this component.- Returns:
- an optional with the endpoint, or empty
-