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
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 classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.ActionGrid
ActionGrid.ActionKeys, ActionGrid.ActionPlacementsNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
Grid.Attributes, Grid.Keys -
Method Summary
Modifier and TypeMethodDescriptiondefault GaddAssignAction(CreateModalFormAction<?> createAction) default GaddCreateAction(CreateModalFormAction<?> createAction) default GaddDeleteAction(Action<?> deleteAction) default GaddRowFormAction(String id, RowModalFormAction<?> rowFormAction) Adds aRowModalFormActionto the grid for submitting a modal form against an ad-hoc submission API.default GaddUpdateAction(ModalFormAction<?> updateAction) default GaddViewReadOnlyAction(FormAction<?> viewReadOnlyAction) Adds aActionGrid.ActionPlacements.ROWaction that allows a user to view the details of the row in a read-only form.default Gdefault GassignEndpoint(Endpoint<?> endpoint) default GassignEndpoint(UnaryOperator<Endpoint<?>> fn) default GassignLabel(String labelKey) default GassignScope(String scope) default Gdefault Gdefault Gdefault GcreateEndpoint(Endpoint<?> endpoint) default GcreateEndpoint(UnaryOperator<Endpoint<?>> fn) default GcreateLabel(String labelKey) default GcreateScope(String scope) default Gdefault Gdefault GdeleteAction(UnaryOperator<Action<?>> fn) default GdeleteEndpoint(Endpoint<?> endpoint) default GdeleteEndpoint(UnaryOperator<Endpoint<?>> fn) default GdeleteLabel(String labelKey) default GdeleteScope(String scope) default Gdefault Gdefault 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 GrowFormAction(String id, UnaryOperator<RowModalFormAction<?>> fn) Configures aRowModalFormActionfor the grid for submitting a modal form against an ad-hoc submission API.default GupdateAction(UnaryOperator<ModalFormAction<?>> fn) default GupdateEndpoint(Endpoint<?> endpoint) default GupdateEndpoint(UnaryOperator<Endpoint<?>> fn) default GupdateLabel(String labelKey) default GupdateScope(String scope) default GupdateTranslationsEndpoint(Endpoint<?> endpoint) default Gdefault GupdateTranslationsScope(String scope) default Gdefault GupdateTranslationsUrl(String url, String scope) default Gdefault Gdefault GConfigure theActionGrid.ActionPlacements.ROWaction that allows a user to view the details of the row in a read-only form.default GviewReadOnlyLabel(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, addRowAction, addRowAction, findGridAction, findRowAction, getGridAction, getRowAction, gridAction, removeGridAction, removeRowAction, rowActionMethods inherited from interface java.lang.Comparable
compareToMethods 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, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
findReadEndpoint, getReadEndpoint, getReadEndpointType, narrowedPaging, narrowedPaging, numberedPaging, numberedPaging, readEndpoint, readEndpoint, readScope, readUrl, readUrl, unpagedMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, findColumn, getColumn, idKey, removeColumn
-
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.ROWaction 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.ROWaction 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 aRowModalFormActionto the grid for submitting a modal form against an ad-hoc submission API. Action is created with placementActionGrid.ActionPlacements.ROWand typeResourceGrid.ActionTypes.ROW_FORM.- Parameters:
id- the id to discriminate this row form action from siblingsrowFormAction- the action to add- Returns:
- this
-
rowFormAction
Configures aRowModalFormActionfor the grid for submitting a modal form against an ad-hoc submission API. Action is created with placementActionGrid.ActionPlacements.ROWand 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
-