Interface ExportGridAction<A extends ExportGridAction<A>>
-
- All Superinterfaces:
Action<A>
,Comparable<A>
,Copyable<A>
,FormAction<A>
,Serializable
- All Known Implementing Classes:
DefaultExportGridAction
public interface ExportGridAction<A extends ExportGridAction<A>> extends FormAction<A>
This action is used to open the modal dialog with additional configuration to export the entities from the grid.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ExportGridAction.ActionTypes
static class
ExportGridAction.Attributes
static class
ExportGridAction.EndpointTypes
static class
ExportGridAction.FieldNames
-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default A
addFileTypeField(SelectField<?> field)
Adds the field to select the file type that the export should ultimately produce for download by the user.default A
addNameField(Field<?> field)
Adds the field for the export name into a modal dialog form.default A
addReadExportEndpoint(Endpoint<?> endpoint)
Adds the endpoint to read the export by id.default A
addStartExportEndpoint(Endpoint<?> endpoint)
Adds the endpoint to start the export.default A
addTimeZoneField(SelectField<?> field)
Adds the select field to select the time-zone.default A
downloadExportUri(String uri)
Adds the uri to download the export file by export id.default A
fileTypeField(UnaryOperator<SelectField<?>> fn)
Adds the field to select the file type that the export should ultimately produce for download by the user.default A
fileTypeField(List<SelectOption> optionsToAdd)
Adds the field to select the file type that the export should ultimately produce for download by the user.default A
nameField(String exportType)
Adds the field for the export name into a modal dialog form.default A
nameField(UnaryOperator<Field<?>> fn)
Adds the field for the export name into a modal dialog form.default A
readExportEndpoint(UnaryOperator<Endpoint<?>> fn)
Adds the endpoint to read the export by id.default A
removeFileTypeField()
Removes the field for the file type.default A
removeNameField()
Removes the field for the export name.default A
removeReadExportEndpoint()
Removes the endpoint to read the export by id.default A
removeStartExportEndpoint()
Removes the endpoint to start the export.default A
removeTimeZoneField()
Removes the select time-zone field.default A
startExportEndpoint(UnaryOperator<Endpoint<?>> fn)
Adds the endpoint to start the export.default A
timeZoneField()
Adds the select field to select the time-zone.default A
timeZoneField(UnaryOperator<SelectField<?>> fn)
Adds the select field to select the time-zone.-
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
-
-
-
-
Method Detail
-
startExportEndpoint
default A startExportEndpoint(UnaryOperator<Endpoint<?>> fn)
Adds the endpoint to start the export.- Parameters:
fn
- the added endpoint for further customization- Returns:
- this action for further customization
-
addStartExportEndpoint
default A addStartExportEndpoint(Endpoint<?> endpoint)
Adds the endpoint to start the export.- Parameters:
endpoint
- the endpoint to start the export- Returns:
- this action for further customization
-
removeStartExportEndpoint
default A removeStartExportEndpoint()
Removes the endpoint to start the export.- Returns:
- this action for further customization
-
readExportEndpoint
default A readExportEndpoint(UnaryOperator<Endpoint<?>> fn)
Adds the endpoint to read the export by id. To specify the export id in the uri use "${exportId}" e.g. "/export/${exportId}".- Parameters:
fn
- the added endpoint for further customization- Returns:
- this action for further customization
-
addReadExportEndpoint
default A addReadExportEndpoint(Endpoint<?> endpoint)
Adds the endpoint to read the export by id.- Parameters:
endpoint
- the endpoint to read the export by id- Returns:
- this action for further customization
-
removeReadExportEndpoint
default A removeReadExportEndpoint()
Removes the endpoint to read the export by id.- Returns:
- this action for further customization
-
nameField
default A nameField(String exportType)
Adds the field for the export name into a modal dialog form.- Parameters:
exportType
- the export type. This is used to create the default name like: "exportType + " - $TIMESTAMP""- Returns:
- this action for further customization
-
nameField
default A nameField(UnaryOperator<Field<?>> fn)
Adds the field for the export name into a modal dialog form.- Parameters:
fn
- the added field for further customization- Returns:
- this action for further customization
-
addNameField
default A addNameField(Field<?> field)
Adds the field for the export name into a modal dialog form.- Parameters:
field
- the added field for further customization- Returns:
- this action for further customization
-
removeNameField
default A removeNameField()
Removes the field for the export name.- Returns:
- this action for further customization
-
fileTypeField
default A fileTypeField(List<SelectOption> optionsToAdd)
Adds the field to select the file type that the export should ultimately produce for download by the user.- Parameters:
optionsToAdd
- the list ofSelectOption
with the file types- Returns:
- this action for further customization
-
fileTypeField
default A fileTypeField(UnaryOperator<SelectField<?>> fn)
Adds the field to select the file type that the export should ultimately produce for download by the user.- Parameters:
fn
- the added field for further customization- Returns:
- this action for further customization
-
addFileTypeField
default A addFileTypeField(SelectField<?> field)
Adds the field to select the file type that the export should ultimately produce for download by the user.- Parameters:
field
- the added field for further customization- Returns:
- this action for further customization
-
removeFileTypeField
default A removeFileTypeField()
Removes the field for the file type.- Returns:
- this action for further customization
-
timeZoneField
default A timeZoneField()
Adds the select field to select the time-zone. This time zone is used to convert the dates.- Returns:
- this action for further customization
-
timeZoneField
default A timeZoneField(UnaryOperator<SelectField<?>> fn)
Adds the select field to select the time-zone. This time zone is used to convert the dates.- Parameters:
fn
- the added field for further customization- Returns:
- this action for further customization
-
addTimeZoneField
default A addTimeZoneField(SelectField<?> field)
Adds the select field to select the time-zone. This time zone is used to convert the dates.- Parameters:
field
- the added field for further customization- Returns:
- this action for further customization
-
removeTimeZoneField
default A removeTimeZoneField()
Removes the select time-zone field.- Returns:
- this action for further customization
-
-