Interface GenerateTemplateAction<A extends GenerateTemplateAction<A>>
- All Superinterfaces:
Action<A>
,Comparable<A>
,ConditionalAction<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 class
static final class
static final class
static final class
static final class
static enum
static final class
static enum
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys
-
Method Summary
Modifier and TypeMethodDescriptiondefault A
addGenerationTypeSelect
(SelectField<?> select) default A
addPreferAddTemplateByReferenceSelect
(SelectField<?> select) default A
addTemplateGroupLookup
(LookupField<?> templateGroup) Adds theGenerateTemplateAction.FieldNames.TEMPLATE_GROUP
field.default A
addTemplateLookup
(LookupField<?> template) Adds theGenerateTemplateAction.FieldNames.TEMPLATE
field.default Optional<PageableEndpoint<?>>
default A
generationEndpoint
(PageableEndpoint<?> endpoint) Configure the generation endpoint for the lookup.default A
Configure the generation endpoint for the lookup.default A
generationScope
(String scope) ConfiguresgenerationEndpoint(UnaryOperator)
scope.default A
default A
generationUrl
(String url) ConfiguresgenerationEndpoint(UnaryOperator)
url.default A
generationUrl
(String url, String scope) ConfiguresgenerationEndpoint(UnaryOperator)
url with scopedefault PageableEndpoint<?>
default A
default A
sandboxDiscriminated
(Boolean sandboxDiscriminated) default A
Provides theGenerateTemplateAction.FieldNames.TEMPLATE_GROUP
LookupField
within this action's form for configuration.default A
templateGroupTemplateKey
(String templateGroupTemplateKey) default A
templateLookup
(UnaryOperator<LookupField<?>> fn) Provides theGenerateTemplateAction.FieldNames.TEMPLATE
LookupField
within this action's form for configuration.default A
templateToItemMapping
(Mapping<?>... mappings) default A
templateToItemMappings
(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, type
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ConditionalAction
conditional, conditional
Methods 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, removeGroup
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.ModalFormAction
modalSize, submitLabel, submitLabel
-
Method Details
-
templateGroupTemplateKey
-
templateToItemMappings
-
templateToItemMapping
-
addTemplateLookup
Adds theGenerateTemplateAction.FieldNames.TEMPLATE
field.- Parameters:
template
- the field- Returns:
- the action
-
templateLookup
Provides theGenerateTemplateAction.FieldNames.TEMPLATE
LookupField
within 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_GROUP
field.- Parameters:
templateGroup
- the field- Returns:
- the action
-
templateGroupLookup
Provides theGenerateTemplateAction.FieldNames.TEMPLATE_GROUP
LookupField
within 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 aPageableEndpoint
and 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 aPageableEndpoint
and 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
-