Interface GenerateTemplateAction<A extends GenerateTemplateAction<A>>
- All Superinterfaces:
Action<A>,Comparable<A>,Copyable<A>,FormAction<A>,ModalFormAction<A>,Serializable
- All Known Implementing Classes:
DefaultGenerateTemplateAction
public interface GenerateTemplateAction<A extends GenerateTemplateAction<A>>
extends ModalFormAction<A>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic enumstatic final classstatic enumNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys -
Method Summary
Modifier and TypeMethodDescriptiondefault AaddGenerationTypeSelect(SelectField<?> select) default AaddPreferAddTemplateByReferenceSelect(SelectField<?> select) default AaddTemplateGroupLookup(LookupField<?> templateGroup) Adds theGenerateTemplateAction.FieldNames.TEMPLATE_GROUPfield.default AaddTemplateLookup(LookupField<?> template) Adds theGenerateTemplateAction.FieldNames.TEMPLATEfield.default Optional<PageableEndpoint<?>>default AgenerationEndpoint(PageableEndpoint<?> endpoint) Configure the generation endpoint for the lookup.default AConfigure the generation endpoint for the lookup.default AgenerationScope(String scope) ConfiguresgenerationEndpoint(UnaryOperator)scope.default Adefault AgenerationUrl(String url) ConfiguresgenerationEndpoint(UnaryOperator)url.default AgenerationUrl(String url, String scope) ConfiguresgenerationEndpoint(UnaryOperator)url with scopedefault PageableEndpoint<?>default Adefault AsandboxDiscriminated(Boolean sandboxDiscriminated) default AProvides theGenerateTemplateAction.FieldNames.TEMPLATE_GROUPLookupFieldwithin this action's form for configuration.default AtemplateGroupTemplateKey(String templateGroupTemplateKey) default AtemplateLookup(UnaryOperator<LookupField<?>> fn) Provides theGenerateTemplateAction.FieldNames.TEMPLATELookupFieldwithin this action's form for configuration.default AtemplateToItemMapping(Mapping<?>... mappings) default AtemplateToItemMappings(List<Mapping<?>> mappings) 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.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
submitLabel, submitLabel
-
Method Details
-
templateGroupTemplateKey
-
templateToItemMappings
-
templateToItemMapping
-
addTemplateLookup
Adds theGenerateTemplateAction.FieldNames.TEMPLATEfield.- Parameters:
template- the field- Returns:
- the action
-
templateLookup
Provides theGenerateTemplateAction.FieldNames.TEMPLATELookupFieldwithin this action's form for configuration. If no such field exists, one will be created.- Parameters:
fn- a function that configures the lookup field- Returns:
- the action
-
addTemplateGroupLookup
Adds theGenerateTemplateAction.FieldNames.TEMPLATE_GROUPfield.- Parameters:
templateGroup- the field- Returns:
- the action
-
templateGroupLookup
Provides theGenerateTemplateAction.FieldNames.TEMPLATE_GROUPLookupFieldwithin this action's form for configuration. If no such field exists, one will be created.- Parameters:
fn- a function that configures the lookup field- Returns:
- the action
-
addPreferAddTemplateByReferenceSelect
-
preferAddTemplateByReferenceSelect
-
addGenerationTypeSelect
-
generationTypeSelect
-
sandboxDiscriminated
-
generationEndpoint
Configure the generation endpoint for the lookup. This endpoint tells the lookup where it can go to retrieve the options the user chooses from. This endpoint is aPageableEndpointand supports different paging strategies.- Parameters:
endpoint- the endpoint- Returns:
- this
-
generationEndpoint
Configure the generation endpoint for the lookup. This endpoint tells the lookup where it can go to retrieve the options the user chooses from. This endpoint is aPageableEndpointand supports different paging strategies.- Parameters:
fn- function to configure the endpoint- Returns:
- this
-
generationUrl
ConfiguresgenerationEndpoint(UnaryOperator)url.- Returns:
- this
-
generationScope
ConfiguresgenerationEndpoint(UnaryOperator)scope.- Returns:
- this
-
generationUrl
ConfiguresgenerationEndpoint(UnaryOperator)url with scope- Returns:
- this
-
getGenerationEndpoint
- Returns:
- the generation endpoint
-
findGenerationEndpoint
- Returns:
- an optional with generation endpoint, or empty
-