Interface ImportGridAction<A extends ImportGridAction<A>>
- All Superinterfaces:
Action<A>
,Comparable<A>
,Copyable<A>
,FormAction<A>
,Serializable
- All Known Implementing Classes:
DefaultImportGridAction
This action is used to open the modal dialog with additional configuration to import 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
static 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
addDownloadImportExampleFile
(LinkExternal<?> link) Adds theLinkExternal
to download the import file example into the import info group.default A
addFileInputField
(FileInputField<?> field) Adds the field to select the file to import into a modal dialog form.default A
addImportGridInfoGroup
(Group<?> group) Adds the group for additional information.default A
addNameField
(Field<?> field) Adds the field for the import name into a modal dialog form.default A
addReadImportEndpoint
(Endpoint<?> endpoint) Adds the endpoint to read the import by id.default A
addStartImportEndpoint
(Endpoint<?> endpoint) Adds the endpoint to start the import.default A
default A
downloadImportErrorsScope
(String scope) Adds theImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_SCOPE
attribute.default A
Adds theImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_URI
attribute.default A
downloadImportExampleFile
(String importType) Adds theLinkExternal
to download the import file example into the import info group.default A
downloadImportExampleFile
(String importType, UnaryOperator<LinkExternal<?>> fn) Adds theLinkExternal
to download the import file example into the import info group.default A
Adds the field to select the file to import into a modal dialog form.default A
Adds the field to select the file to import into a modal dialog form.Searches the link to download the import example file.default A
Adds the collapsible group for additional information.default A
importGridInfoGroup
(UnaryOperator<Group<?>> fn) Adds the collapsible group for additional information.default A
importType
(String importType) Adds theImportGridAction.Attributes.IMPORT_TYPE
attribute.default A
Adds the field for the import name into a modal dialog form.default A
nameField
(String importType, UnaryOperator<Field<?>> fn) Adds the field for the import name into a modal dialog form.default A
readImportEndpoint
(String scope) Adds the endpoint to read the import by id.default A
readImportEndpoint
(String scope, UnaryOperator<Endpoint<?>> fn) Adds the endpoint to read the import by id.default A
Removes the link to download the example file from the import info group.default A
Removes the field to select the file to import.default A
Removes the group for additional information.default A
Removes the field for the import name.default A
Removes the endpoint to read the import by id.default A
Removes the endpoint to start the import.default A
Adds the scope to this action.default A
startImportEndpoint
(String scope) Adds the endpoint to start the import.default A
startImportEndpoint
(String scope, UnaryOperator<Endpoint<?>> fn) Adds the endpoint to start the import.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, 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
-
scope
Adds the scope to this action. It also adds theImportGridAction.DefaultScopes.IMPORT
scope to the end separated by whitespace.- Specified by:
scope
in interfaceAction<A extends ImportGridAction<A>>
- Parameters:
scope
- the OAuth2 scope- Returns:
- this action for further customization
-
startImportEndpoint
Adds the endpoint to start the import. By default, this adds theImportGridAction.DefaultURIs.START_IMPORT_URI
uri to this endpoint.- Parameters:
scope
- the OAuth2 scope- Returns:
- this action for further customization
-
startImportEndpoint
Adds the endpoint to start the import. By default, this adds theImportGridAction.DefaultURIs.START_IMPORT_URI
uri to this endpoint.- Parameters:
scope
- the OAuth2 scopefn
- the added endpoint for further customization- Returns:
- this action for further customization
-
addStartImportEndpoint
Adds the endpoint to start the import.- Parameters:
endpoint
- the endpoint to start the import- Returns:
- this action for further customization
-
removeStartImportEndpoint
Removes the endpoint to start the import.- Returns:
- this action for further customization
-
readImportEndpoint
Adds the endpoint to read the import by id. By default, this adds theImportGridAction.DefaultURIs.READ_IMPORT_BY_ID_URI
uri to this endpoint.- Parameters:
scope
- the OAuth2 scope- Returns:
- this action for further customization
-
readImportEndpoint
Adds the endpoint to read the import by id. By default, this adds theImportGridAction.DefaultURIs.READ_IMPORT_BY_ID_URI
uri to this endpoint.- Parameters:
scope
- the OAuth2 scopefn
- the added endpoint for further customization- Returns:
- this action for further customization
-
addReadImportEndpoint
Adds the endpoint to read the import by id.- Parameters:
endpoint
- the endpoint to read the import by id- Returns:
- this action for further customization
-
removeReadImportEndpoint
Removes the endpoint to read the import by id.- Returns:
- this action for further customization
-
nameField
Adds the field for the import name into a modal dialog form.- Parameters:
importType
- the import type. This is used to create the default value like: "importType + " - $TIMESTAMP""- Returns:
- this action for further customization
-
nameField
Adds the field for the import name into a modal dialog form.- Parameters:
importType
- the import type. This is used to create the default value like: "importType + " - $TIMESTAMP"".fn
- the added field for further customization- Returns:
- this action for further customization
-
addNameField
Adds the field for the import 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 import name.- Returns:
- this action for further customization
-
fileInputField
Adds the field to select the file to import into a modal dialog form. By default, it accepts the ".csv" files.- Returns:
- this action for further customization
-
fileInputField
Adds the field to select the file to import into a modal dialog form. By default, it accepts the ".csv" files.- Parameters:
fn
- the added field for further customization- Returns:
- this action for further customization
-
addFileInputField
Adds the field to select the file to import into a modal dialog form.- Parameters:
field
- theFileInputField
to add- Returns:
- this action for further customization
-
removeFileInputField
Removes the field to select the file to import.- Returns:
- this action for further customization
-
downloadImportExampleFile
Adds theLinkExternal
to download the import file example into the import info group. If the group doesn't exists the the will be created.- Parameters:
importType
- the import type- Returns:
- this action for further customization
-
downloadImportExampleFile
Adds theLinkExternal
to download the import file example into the import info group. If the group doesn't exists the the will be created.- Parameters:
importType
- the import typefn
- the added link for further customization- Returns:
- this action for further customization
-
addDownloadImportExampleFile
Adds theLinkExternal
to download the import file example into the import info group. If the group doesn't exists the the will be created.- Parameters:
link
- the link to add- Returns:
- this action for further customization
-
removeDownloadImportExampleFile
Removes the link to download the example file from the import info group.- Returns:
- this action for further customization
-
importGridInfoGroup
Adds the collapsible group for additional information.- Returns:
- this action for further customization
-
importGridInfoGroup
Adds the collapsible group for additional information.- Parameters:
fn
- the added group for further customization- Returns:
- this action for further customization
-
addImportGridInfoGroup
Adds the group for additional information.- Parameters:
group
- the added link for further customization- Returns:
- this action for further customization
-
removeImportGridInfoGroup
Removes the group for additional information.- Returns:
- this action for further customization
-
importType
Adds theImportGridAction.Attributes.IMPORT_TYPE
attribute.- Parameters:
importType
- the import type- Returns:
- this action for further customization
-
downloadImportErrors
Adds theImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_URI
andImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_SCOPE
attributes with theImportGridAction.DefaultURIs.DOWNLOAD_IMPORT_ERRORS
uri andImportGridAction.DefaultScopes.DOWNLOAD_IMPORT_ERRORS
scope. This attributes are used to download the file with the import errors.- Returns:
- this action for further customization
- See Also:
-
downloadImportErrorsUri
Adds theImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_URI
attribute. This uri is used to download the file with the import errors.- Returns:
- this action for further customization
-
downloadImportErrorsScope
Adds theImportGridAction.Attributes.DOWNLOAD_IMPORT_ERRORS_SCOPE
attribute. This scope is used to download the file with the import errors.- Parameters:
scope
- the OAuth2 scope to download the file with the import errors- Returns:
- this action for further customization
-
findDownloadImportFileExampleLink
Searches the link to download the import example file.- Returns:
- the found external link
-