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 Classes Modifier and Type Interface Description static classGenerateTemplateAction.Attributesstatic classGenerateTemplateAction.EndpointTypesstatic classGenerateTemplateAction.FieldDefaultsstatic classGenerateTemplateAction.FieldLabelsstatic classGenerateTemplateAction.FieldNamesstatic classGenerateTemplateAction.GenerationTypestatic classGenerateTemplateAction.KeyDefaults-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys
-
-
Method Summary
-
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.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
submitLabel, submitLabel
-
-
-
-
Method Detail
-
addTemplateLookup
default A addTemplateLookup(LookupField<?> template)
Adds theGenerateTemplateAction.FieldNames.TEMPLATEfield.- Parameters:
template- the field- Returns:
- the action
-
templateLookup
default A templateLookup(UnaryOperator<LookupField<?>> fn)
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
default A addTemplateGroupLookup(LookupField<?> templateGroup)
Adds theGenerateTemplateAction.FieldNames.TEMPLATE_GROUPfield.- Parameters:
templateGroup- the field- Returns:
- the action
-
templateGroupLookup
default A templateGroupLookup(UnaryOperator<LookupField<?>> fn)
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
-
addGenerationTypeSelect
default A addGenerationTypeSelect(SelectField<?> select)
-
generationTypeSelect
default A generationTypeSelect(UnaryOperator<SelectField<?>> fn)
-
generationEndpoint
default A generationEndpoint(PageableEndpoint<?> endpoint)
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
default A generationEndpoint(UnaryOperator<PageableEndpoint<?>> fn)
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
default A generationUrl(String url)
ConfiguresgenerationEndpoint(UnaryOperator)url.- Returns:
- this
-
generationScope
default A generationScope(String scope)
ConfiguresgenerationEndpoint(UnaryOperator)scope.- Returns:
- this
-
generationUrl
default A generationUrl(String url, String scope)
ConfiguresgenerationEndpoint(UnaryOperator)url with scope- Returns:
- this
-
getGenerationEndpoint
default PageableEndpoint<?> getGenerationEndpoint()
- Returns:
- the generation endpoint
-
findGenerationEndpoint
default Optional<PageableEndpoint<?>> findGenerationEndpoint()
- Returns:
- an optional with generation endpoint, or empty
-
-