Interface AddAdjustmentModalFormAction<A extends AddAdjustmentModalFormAction<A>>
- All Superinterfaces:
Action<A>,Comparable<A>,ConditionalAction<A>,Copyable<A>,FormAction<A>,ModalFormAction<A>,Serializable
- All Known Implementing Classes:
DefaultAddAdjustmentModalFormAction
public interface AddAdjustmentModalFormAction<A extends AddAdjustmentModalFormAction<A>>
extends ModalFormAction<A>
Extension of
ModalFormAction that is used to apply an offer to the entity.- Author:
- Julia Lopez-Pozas (juliap)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys -
Method Summary
Modifier and TypeMethodDescriptiondefault AaddAddAdjustmentEndpoint(Endpoint<?> endpoint) Adds theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for the component.default AConfigures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for the component.default AaddAdjustmentScope(String scope) Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint with the given scope.default AaddAdjustmentUrl(String url) Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint with the given url.default AaddAdjustmentUrl(String url, String scope) Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint with the given url and scope.Finds theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for this component.default Endpoint<?>Retrieves theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for this component.default AredirectLink(Link link) Defines a redirect to occur following a successful application of the offer.default AredirectLinkById(String componentId) Defines a redirect to occur following a successful application of the offer.default AredirectLinkByPath(String path) Defines a redirect to occur following a successful application of the offer.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Action
addComponent, addComponents, addEndpoint, addEndpoint, apply, attribute, clearEndpoints, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAttribute, getAttribute, getAttributes, getComponent, getComponent, getComponents, getComponentsList, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOperationType, getOrder, getPlacement, getScope, getType, hasAttribute, hasComponent, hasEndpoint, id, label, label, operationType, order, placement, removeAttribute, removeComponent, removeEndpoint, scope, self, setAttributes, setComponents, setEndpoints, setId, setLabel, setOperationType, setOrder, setPlacement, setScope, setType, typeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ConditionalAction
conditional, conditionalMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
addExternal, addExternal, addField, addField, addField, addFormComponents, addGroup, addGroup, external, field, findExternal, findField, findGroup, getExternal, getField, getGroup, group, removeExternal, removeField, removeGroupMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ModalFormAction
modalSize, submitLabel, submitLabel
-
Method Details
-
addAddAdjustmentEndpoint
Adds theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for the component.- Parameters:
endpoint- the endpoint- Returns:
- this
-
addAdjustmentEndpoint
Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for the component.- Parameters:
fn- the function to configure the endpoint- Returns:
- this
-
addAdjustmentUrl
Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint with the given url.- Parameters:
url- the url- Returns:
- this
-
addAdjustmentScope
Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint with the given scope.- Parameters:
scope- the scope- Returns:
- this
-
addAdjustmentUrl
Configures theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint with the given url and scope.- Parameters:
url- the urlscope- the scope- Returns:
- this
-
getAddAdjustmentEndpoint
Retrieves theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for this component.- Returns:
- the endpoint if it exists
- See Also:
-
findAddAdjustmentEndpoint
Finds theAddAdjustmentModalFormAction.EndpointTypes.ADD_ADJUSTMENTendpoint for this component.- Returns:
- an optional with the endpoint, or empty
-
redirectLink
Defines a redirect to occur following a successful application of the offer.- Parameters:
link- the link to redirect to- Returns:
- this
-
redirectLinkByPath
Defines a redirect to occur following a successful application of the offer.- Parameters:
path- the path to redirect to- Returns:
- this
-
redirectLinkById
Defines a redirect to occur following a successful application of the offer.- Parameters:
componentId- the id of the component to redirect to- Returns:
- this
-