Interface UpdateEntityView<V extends UpdateEntityView<V>>
- All Superinterfaces:
ActionView<V>,AugmentableView<V>,Comparable<V>,Component<V>,Copyable<V>,EntityView<V>,FetchEntity<V>,PreviewableView<V>,Serializable,Trackable<V>,View<V>
- All Known Subinterfaces:
UpdateModalFormView<V>
- All Known Implementing Classes:
DefaultCreateModalFormView,DefaultUpdateEntityLongFormView,DefaultUpdateEntityView,DefaultUpdateModalFormView
public interface UpdateEntityView<V extends UpdateEntityView<V>>
extends EntityView<V>, FetchEntity<V>, PreviewableView<V>
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.views.ActionView
ActionView.ActionKeys, ActionView.ActionPlacements -
Method Summary
Modifier and TypeMethodDescriptiondefault Vdefault Vdefault VaddCloneAction(CloneModalFormAction<?> action) default VaddDeleteAction(Action<?> action) default VaddDeleteEndpoint(Endpoint<?> endpoint) default VaddDependentEntitiesAction(Action<?> action) default VaddSubmitAction(Action<?> action) default VaddSubmitEndpoint(Endpoint<?> endpoint) default VaddSubmitTranslationsEndpoint(Endpoint<?> endpoint) default Vdefault VconfirmationDialog(String title, String message, String buttonLabel, String confirmedKey) Enables the display of a confirmation dialog upon submission of the entity form.default VdeleteAction(Action<?> action) default VdeleteAction(UnaryOperator<Action<?>> fn) default VdeleteEndpoint(UnaryOperator<Endpoint<?>> fn) default Vdefault VdeleteLabel(String label) default VdeleteScope(String scope) default Vdefault VdependentEntities(Map<String, T> dependentEntities) Adds an attribute to theUpdateEntityViewthat is a map of entity types (e.g.default VdependentEntitiesAction(Action<?> action) default Vdefault Vdefault VdependentEntitiesLabel(String label) dependentEntity(String entityType, T readEndpoint) Adds an attribute to theUpdateEntityViewthat is a map containing a singular entity type (e.g.default VdisplayNameKey(String displayNameKey) default VAdds the export history grid.default Optional<AddAdjustmentModalFormAction<?>>default Optional<CloneModalFormAction<?>>default Optional<ExportHistoryGridExternal<?>>Search the export history grid view.default AddAdjustmentModalFormAction<?>default CloneModalFormAction<?>default Action<?>default Endpoint<?>default Action<?>default ExportHistoryGridExternal<?>Returns theExportHistoryGridExternalif it exists.default Action<?>default Endpoint<?>default Endpoint<?>default VRemoves the export history grid.default VsubmitAction(Action<?> action) default VsubmitAction(UnaryOperator<Action<?>> fn) default VsubmitEndpoint(UnaryOperator<Endpoint<?>> fn) default Vdefault VsubmitLabel(String label) default VsubmitScope(String scope) default Vdefault VsubmitTranslationsScope(String scope) default Vdefault VsubmitTranslationsUrl(String url, String scope) default Vdefault VMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.views.ActionView
addPrimaryAction, addPrimaryAction, addSecondaryAction, addSecondaryAction, findPrimaryAction, findSecondaryAction, getPrimaryAction, getSecondaryAction, primaryAction, primaryAction, secondaryAction, secondaryActionMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.views.AugmentableView
complexAttributes, complexAttributes, displayShowInQueryBuilder, displayShowInQueryBuilder, notComplexAttributesMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, addSimpleComponent, apply, attribute, augmentable, 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, getAugmentableFlag, 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, setAugmentable, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.views.details.EntityView
addForm, addGeneralForm, backLink, backLinkById, backLinkByPath, findForm, form, generalForm, getForm, getGeneralForm, showPayloadMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchEntity
addReadEndpoint, findReadEndpoint, getReadEndpoint, readEndpoint, readScope, readUrl, readUrlMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.views.PreviewableView
previewPath, removePreviewPathMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Trackable
applicationTrackable, applicationTrackable, auditable, auditable, catalogTrackable, customerContextTrackable, notAuditable, notCatalogTrackable, notCustomerContextTrackable, notProfileTrackable, notSandboxTrackable, notSearchGroupTrackable, profileTrackable, sandboxTrackable, searchGroupTrackable
-
Method Details
-
displayNameKey
-
addSubmitAction
-
submitAction
-
submitAction
-
getSubmitAction
-
findSubmitAction
-
submitLabel
-
submitLabel
-
addSubmitEndpoint
-
submitEndpoint
-
submitUrl
-
submitScope
-
submitUrl
-
getSubmitEndpoint
-
addDeleteAction
-
deleteAction
-
deleteAction
-
getDeleteAction
-
findDeleteAction
-
deleteLabel
-
deleteLabel
-
addDeleteEndpoint
-
deleteEndpoint
-
getDeleteEndpoint
-
deleteUrl
-
deleteScope
-
deleteUrl
-
addCloneAction
-
cloneAction
-
getCloneAction
-
findCloneAction
-
addAddAdjustmentAction
-
addAdjustmentAction
-
getAddAdjustmentAction
-
findAddAdjustmentAction
-
addSubmitTranslationsEndpoint
-
submitTranslationsEndpoint
-
getUpdateTranslationsEndpoint
-
submitTranslationsUrl
-
submitTranslationsScope
-
submitTranslationsUrl
-
exportHistoryGrid
Adds the export history grid.- Parameters:
fn- the addedExportHistoryGridfor further customization- Returns:
- this view for further customization
-
removeExportHistoryGrid
Removes the export history grid.- Returns:
- this view for further customization
-
findExportHistoryGrid
Search the export history grid view.- Returns:
- the found
ExportHistoryGridExternal
-
getExportHistoryGrid
Returns theExportHistoryGridExternalif it exists.- Returns:
- the found
ExportHistoryGridExternal - Throws:
IllegalArgumentException- if there is no grid for export history
-
confirmationDialog
Enables the display of a confirmation dialog upon submission of the entity form. The confirmation dialog's title, message text, and confirmation/submit button label can all be configured as well.The
confirmedKeyparameter represents the key string that will be set on the context parameters for the submission request to the configured submission endpoint for this entity view. The value of theconfirmedKeyparameter is expected to match a parameter on the configured submission endpoint so that it can be received by the corresponding service endpoint for validation or processing purposes.For example:
Views.entityLongFormViewUpdate() ... .submitEndpoint(endpoint -> endpoint .uri(Paths.URI) .scope(Scopes.SCOPE) .param("acceptedConfirmationDialog", "${$confirmationDialogConfirmed}")) .confirmationDialog("entity.update.confirm-dialog.title", "entity.update.confirm-dialog.message", "entity.update.confirm-dialog.button-label", "$confirmationDialogConfirmed")- Parameters:
title- the preferred title of the confirmation dialogmessage- the preferred message text of the confirmation dialogbuttonLabel- the preferred label of the confirmation dialog submit/confirm buttonconfirmedKey- the key of the value that will be set on the submission request context parameters to indicate that the confirmation dialog was accepted- Returns:
- this view with the confirmation dialog attributes added
-
dependentEntity
Adds an attribute to theUpdateEntityViewthat is a map containing a singular entity type (e.g.PRODUCT) and its endpoint that will be used to fetch the details of existing dependent entities that match the given type.- Type Parameters:
T- the type of endpoint that will fetch the details of existing dependent entities- Parameters:
entityType- the entity type that thisUpdateEntityViewhas dependent entities ofreadEndpoint- the endpoint that will fetch the details of existing dependent entities matching the given entity type- Returns:
- the updated view with attribute added to it
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
dependentEntities
Adds an attribute to theUpdateEntityViewthat is a map of entity types (e.g.PRODUCT,CONTENT_ITEM) that are mapped to their respective endpoints that will be used to fetch the details of existing dependent entities that match the given types.- Type Parameters:
T- the type of endpoint that will fetch the details of existing dependent entities- Parameters:
dependentEntities- the map of entity types to the endpoints that will fetch their details- Returns:
- the updated view with attribute added to it
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
addDependentEntitiesAction
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
dependentEntitiesAction
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
dependentEntitiesAction
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
getDependentEntitiesAction
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
findDependentEntitiesAction
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
dependentEntitiesLabel
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-
dependentEntitiesLabel
- Since:
- Metadata 2.0.7, Release Train 2.3.0
-