Interface ResourceGrid<G extends ResourceGrid<G>>
-
- All Superinterfaces:
ActionGrid<G>
,Comparable<G>
,Component<G>
,Copyable<G>
,FetchGrid<G>
,Grid<G>
,Serializable
- All Known Subinterfaces:
ExportHistoryGridExternal<E>
,GridExternal<E>
- All Known Implementing Classes:
DefaultExportHistoryGridExternal
,DefaultGridExternal
public interface ResourceGrid<G extends ResourceGrid<G>> extends ActionGrid<G>, FetchGrid<G>
Represents the metadata of aActionGrid
andFetchGrid
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 Classes Modifier and Type Interface Description static class
ResourceGrid.ActionTypes
static class
ResourceGrid.EndpointTypes
-
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
-
-
Method Summary
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
addGridAction, addGridAction, 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, findComponent, findComponent, findComponents, 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.extension.FetchGrid
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, findColumn, getColumn, idKey, removeColumn
-
-
-
-
Method Detail
-
addAssignAction
default G addAssignAction(CreateModalFormAction<?> createAction)
-
assignAction
default G assignAction(UnaryOperator<CreateModalFormAction<?>> fn)
-
getAssignAction
default CreateModalFormAction<?> getAssignAction()
-
findAssignAction
default Optional<CreateModalFormAction<?>> findAssignAction()
-
assignEndpoint
default G assignEndpoint(UnaryOperator<Endpoint<?>> fn)
-
getAssignEndpoint
default Endpoint<?> getAssignEndpoint()
-
addCreateAction
default G addCreateAction(CreateModalFormAction<?> createAction)
-
createAction
default G createAction(UnaryOperator<CreateModalFormAction<?>> fn)
-
getCreateAction
default CreateModalFormAction<?> getCreateAction()
-
findCreateAction
default Optional<CreateModalFormAction<?>> findCreateAction()
-
createEndpoint
default G createEndpoint(UnaryOperator<Endpoint<?>> fn)
-
getCreateEndpoint
default Endpoint<?> getCreateEndpoint()
-
deleteAction
default G deleteAction(UnaryOperator<Action<?>> fn)
-
getDeleteAction
default Action<?> getDeleteAction()
-
deleteEndpoint
default G deleteEndpoint(UnaryOperator<Endpoint<?>> fn)
-
getDeleteEndpoint
default Endpoint<?> getDeleteEndpoint()
-
addUpdateAction
default G addUpdateAction(ModalFormAction<?> updateAction)
-
updateAction
default G updateAction(UnaryOperator<ModalFormAction<?>> fn)
-
getUpdateAction
default ModalFormAction<?> getUpdateAction()
-
findUpdateAction
default Optional<ModalFormAction<?>> findUpdateAction()
-
updateEndpoint
default G updateEndpoint(UnaryOperator<Endpoint<?>> fn)
-
getUpdateEndpoint
default Endpoint<?> getUpdateEndpoint()
-
updateTranslationsEndpoint
default G updateTranslationsEndpoint(UnaryOperator<Endpoint<?>> fn)
-
getUpdateTranslationsEndpoint
default Endpoint<?> getUpdateTranslationsEndpoint()
-
addViewReadOnlyAction
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. 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
default G viewReadOnlyAction(UnaryOperator<FormAction<?>> fn)
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
default G viewReadOnlyLabel(String labelKey)
Shortcut for setting the label of the read-only action.- Parameters:
labelKey
- the label or label message key- Returns:
- this
-
getViewReadOnlyAction
default FormAction<?> getViewReadOnlyAction()
- Returns:
- the read-only action if it exists
-
findViewReadOnlyAction
default Optional<FormAction<?>> findViewReadOnlyAction()
- Returns:
- an optional with the read-only action, or empty
-
addRowFormAction
default G addRowFormAction(String id, RowModalFormAction<?> rowFormAction)
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
default G rowFormAction(String id, UnaryOperator<RowModalFormAction<?>> fn)
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
default RowModalFormAction<?> getRowFormAction(String id)
- Parameters:
id
- the id that discriminates this row form action from siblings- Returns:
- the row form action if it exists
-
findRowFormAction
default Optional<RowModalFormAction<?>> findRowFormAction(String id)
- Parameters:
id
- the id that discriminates this row form action from siblings- Returns:
- an optional with the row form action, or empty
-
-