Interface ExportGridAction<A extends ExportGridAction<A>>
- All Superinterfaces:
Action<A>
,Comparable<A>
,Copyable<A>
,FormAction<A>
,Serializable
- All Known Implementing Classes:
DefaultExportGridAction
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 ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
static final class
static final class
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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
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
passFilterStringAsParam
(boolean passFilterStringAsParam) Whether the filter string to be used in the export grid action will be passed as a parameter or as part of the request body.default A
readExportEndpoint
(UnaryOperator<Endpoint<?>> fn) Adds the endpoint to read the export by id.default A
Removes the field for the file type.default A
Removes the field for the export name.default A
Removes the endpoint to read the export by id.default A
Removes the endpoint to start the export.default A
Removes the select time-zone field.default A
startExportEndpoint
(UnaryOperator<Endpoint<?>> fn) Adds the endpoint to start the export.default A
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 Details
-
startExportEndpoint
Adds the endpoint to start the export.- Parameters:
fn
- the added endpoint for further customization- Returns:
- this action for further customization
-
addStartExportEndpoint
Adds the endpoint to start the export.- Parameters:
endpoint
- the endpoint to start the export- Returns:
- this action for further customization
-
removeStartExportEndpoint
Removes the endpoint to start the export.- Returns:
- this action for further customization
-
readExportEndpoint
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
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
Removes the endpoint to read the export by id.- Returns:
- this action for further customization
-
nameField
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
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
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
Removes the field for the export name.- Returns:
- this action for further customization
-
fileTypeField
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
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
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
Removes the field for the file type.- Returns:
- this action for further customization
-
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
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
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
Removes the select time-zone field.- Returns:
- this action for further customization
-
downloadExportUri
Adds the uri to download the export file by export id. To specify the export id use "${exportId}" e.g. "/export/${exportId}/download"- Parameters:
uri
- the uri to download the export file.- Returns:
- this action for further customization
-
passFilterStringAsParam
Whether the filter string to be used in the export grid action will be passed as a parameter or as part of the request body.- Parameters:
passFilterStringAsParam
- whether to pass the filter as a parameter or in the request body- Returns:
- this action for further customization
-