Interface ResourceGrid<G extends ResourceGrid<G>>
- All Superinterfaces:
ActionGrid<G>
,Comparable<G>
,Component<G>
,Copyable<G>
,CustomCssComponent<G>
,FetchGrid<G>
,Grid<G>
,Serializable
- All Known Subinterfaces:
ExportHistoryGridExternal<E>
,GridExternal<E>
- All Known Implementing Classes:
DefaultExportHistoryGridExternal
,DefaultGridExternal
Represents the metadata of a
ActionGrid
and FetchGrid
that is used for managing
an external resource. These types of grids support retrieving, creating, updating, and deleting
the data for a collection.- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
ActionGrid.ActionKeys, ActionGrid.ActionPlacements
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
Grid.Attributes, Grid.Keys
-
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE
-
Method Summary
Modifier and TypeMethodDescriptiondefault G
addAssignAction
(CreateModalFormAction<?> createAction) default G
addCreateAction
(CreateModalFormAction<?> createAction) default G
addDeleteAction
(Action<?> deleteAction) default G
addRowFormAction
(String id, RowModalFormAction<?> rowFormAction) Adds aRowModalFormAction
to the grid for submitting a modal form against an ad-hoc submission API.default G
addUpdateAction
(ModalFormAction<?> updateAction) default G
addViewReadOnlyAction
(FormAction<?> viewReadOnlyAction) Adds aActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row in a read-only form.default G
default G
assignEndpoint
(Endpoint<?> endpoint) default G
assignEndpoint
(UnaryOperator<Endpoint<?>> fn) default G
assignLabel
(String labelKey) default G
assignScope
(String scope) default G
default G
default G
default G
createEndpoint
(Endpoint<?> endpoint) default G
createEndpoint
(UnaryOperator<Endpoint<?>> fn) default G
createLabel
(String labelKey) default G
createScope
(String scope) default G
default G
default G
deleteAction
(UnaryOperator<Action<?>> fn) default G
deleteEndpoint
(Endpoint<?> endpoint) default G
deleteEndpoint
(UnaryOperator<Endpoint<?>> fn) default G
deleteLabel
(String labelKey) default G
deleteScope
(String scope) default G
default G
default Optional<CreateModalFormAction<?>>
default Optional<CreateModalFormAction<?>>
default Optional<RowModalFormAction<?>>
default Optional<ModalFormAction<?>>
default Optional<FormAction<?>>
default CreateModalFormAction<?>
default Endpoint<?>
default CreateModalFormAction<?>
default Endpoint<?>
default Action<?>
default Endpoint<?>
default RowModalFormAction<?>
default ModalFormAction<?>
default Endpoint<?>
default Endpoint<?>
default FormAction<?>
default G
rowFormAction
(String id, UnaryOperator<RowModalFormAction<?>> fn) Configures aRowModalFormAction
for the grid for submitting a modal form against an ad-hoc submission API.default G
updateAction
(UnaryOperator<ModalFormAction<?>> fn) default G
updateEndpoint
(Endpoint<?> endpoint) default G
updateEndpoint
(UnaryOperator<Endpoint<?>> fn) default G
updateLabel
(String labelKey) default G
updateScope
(String scope) default G
updateTranslationsEndpoint
(Endpoint<?> endpoint) default G
default G
updateTranslationsScope
(String scope) default G
default G
updateTranslationsUrl
(String url, String scope) default G
default G
default G
Configure theActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row in a read-only form.default G
viewReadOnlyLabel
(String labelKey) Shortcut for setting the label of the read-only action.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
addGridAction, addGridAction, addGridActionGroup, addRowAction, addRowAction, findGridAction, findRowAction, getGridAction, getRowAction, gridAction, removeGridAction, removeRowAction, rowAction
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
displayRefresh, findReadEndpoint, getReadEndpoint, getReadEndpointType, narrowedPaging, narrowedPaging, numberedPaging, numberedPaging, readEndpoint, readEndpoint, readScope, readUrl, readUrl, unpaged
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessage
-
Method Details
-
addAssignAction
-
assignAction
-
assignLabel
-
getAssignAction
-
findAssignAction
-
assignEndpoint
-
assignEndpoint
-
assignUrl
-
assignScope
-
assignUrl
-
getAssignEndpoint
-
findAssignEndpoint
-
addCreateAction
-
createAction
-
createLabel
-
getCreateAction
-
findCreateAction
-
createEndpoint
-
createEndpoint
-
createUrl
-
createScope
-
createUrl
-
getCreateEndpoint
-
findCreateEndpoint
-
addDeleteAction
-
deleteAction
-
deleteLabel
-
getDeleteAction
-
findDeleteAction
-
deleteEndpoint
-
deleteEndpoint
-
deleteUrl
-
deleteScope
-
deleteUrl
-
getDeleteEndpoint
-
findDeleteEndpoint
-
addUpdateAction
-
updateAction
-
updateLabel
-
getUpdateAction
-
findUpdateAction
-
updateEndpoint
-
updateEndpoint
-
updateUrl
-
updateScope
-
updateUrl
-
getUpdateEndpoint
-
findUpdateEndpoint
-
updateTranslationsEndpoint
-
updateTranslationsEndpoint
-
updateTranslationsUrl
-
updateTranslationsScope
-
updateTranslationsUrl
-
getUpdateTranslationsEndpoint
-
findUpdateTranslationsEndpoint
-
addViewReadOnlyAction
Adds aActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row in a read-only form. This is generally used when a row is not editable yet there is a need to present the details of the row.- Parameters:
viewReadOnlyAction
- the action to add- Returns:
- this
-
viewReadOnlyAction
Configure theActionGrid.ActionPlacements.ROW
action that allows a user to view the details of the row in a read-only form. This is generally used when a row is not editable yet there is a need to present the details of the row.- Parameters:
fn
- a function to configure the read-only form- Returns:
- this
-
viewReadOnlyLabel
Shortcut for setting the label of the read-only action.- Parameters:
labelKey
- the label or label message key- Returns:
- this
-
getViewReadOnlyAction
- Returns:
- the read-only action if it exists
-
findViewReadOnlyAction
- Returns:
- an optional with the read-only action, or empty
-
addRowFormAction
Adds aRowModalFormAction
to the grid for submitting a modal form against an ad-hoc submission API. Action is created with placementActionGrid.ActionPlacements.ROW
and typeResourceGrid.ActionTypes.ROW_FORM
.- Parameters:
id
- the id to discriminate this row form action from siblingsrowFormAction
- the action to add- Returns:
- this
-
rowFormAction
Configures aRowModalFormAction
for the grid for submitting a modal form against an ad-hoc submission API. Action is created with placementActionGrid.ActionPlacements.ROW
and typeResourceGrid.ActionTypes.ROW_FORM
.- Parameters:
id
- the id to discriminate this row form action from siblingsfn
- the function for configuring the row form action- Returns:
- this
-
getRowFormAction
- Parameters:
id
- the id that discriminates this row form action from siblings- Returns:
- the row form action if it exists
-
findRowFormAction
- Parameters:
id
- the id that discriminates this row form action from siblings- Returns:
- an optional with the row form action, or empty
-