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 classstatic final classstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys -
Method Summary
Modifier and TypeMethodDescriptiondefault AaddFileTypeField(SelectField<?> field) Adds the field to select the file type that the export should ultimately produce for download by the user.default AaddNameField(Field<?> field) Adds the field for the export name into a modal dialog form.default AaddReadExportEndpoint(Endpoint<?> endpoint) Adds the endpoint to read the export by id.default AaddStartExportEndpoint(Endpoint<?> endpoint) Adds the endpoint to start the export.default AaddTimeZoneField(SelectField<?> field) Adds the select field to select the time-zone.default AdownloadExportUri(String uri) Adds the uri to download the export file by export id.default AfileTypeField(UnaryOperator<SelectField<?>> fn) Adds the field to select the file type that the export should ultimately produce for download by the user.default AfileTypeField(List<SelectOption> optionsToAdd) Adds the field to select the file type that the export should ultimately produce for download by the user.default AAdds the field for the export name into a modal dialog form.default AnameField(UnaryOperator<Field<?>> fn) Adds the field for the export name into a modal dialog form.default ApassFilterStringAsParam(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 AreadExportEndpoint(UnaryOperator<Endpoint<?>> fn) Adds the endpoint to read the export by id.default ARemoves the field for the file type.default ARemoves the field for the export name.default ARemoves the endpoint to read the export by id.default ARemoves the endpoint to start the export.default ARemoves the select time-zone field.default AstartExportEndpoint(UnaryOperator<Endpoint<?>> fn) Adds the endpoint to start the export.default AAdds the select field to select the time-zone.default AtimeZoneField(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, 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, 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 ofSelectOptionwith 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
-