Interface BulkOperationAction<A extends BulkOperationAction<A>>
- All Superinterfaces:
Action<A>,Comparable<A>,Copyable<A>,FormAction<A>,Serializable
- All Known Implementing Classes:
DefaultBulkOperationAction
Represents a bulk operation action.
- Author:
- Jon Fleschler (jfleschler)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.actions.FormAction
FormAction.Keys -
Method Summary
Modifier and TypeMethodDescriptiondefault AaddSubmitEndpoint(Endpoint<?> endpoint) Adds theBulkOperationAction.EndpointTypes.SUBMITendpoint for the component.default AbulkOperationType(String operationType) Adds the bulk operation type for the action.default AentityType(String entityType) Adds the bulk operation entity type for the action.Finds theBulkOperationAction.EndpointTypes.SUBMITendpoint for this component.default Adefault AgenerateFriendlyName(boolean generateFriendlyName) Whether to generate a friendly name for the action.default Endpoint<?>Retrieves theBulkOperationAction.EndpointTypes.SUBMITendpoint for this component.default Adefault AsubmitEndpoint(UnaryOperator<Endpoint<?>> fn) Configures theBulkOperationAction.EndpointTypes.SUBMITendpoint for the component.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, scope, self, setAttributes, setComponents, setEndpoints, setId, setLabel, setOperationType, setOrder, setPlacement, setScope, setType, typeMethods inherited from interface java.lang.Comparable
compareToMethods 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
-
generateFriendlyName
Whether to generate a friendly name for the action. If true, the friendly name will be generated based on the operation type and date. If false, the friendly name will be manually set by the user.- Parameters:
generateFriendlyName- whether to generate a friendly name- Returns:
- this
-
generateFriendlyName
-
notGenerateFriendlyName
-
bulkOperationType
Adds the bulk operation type for the action. This is used as the action's id.- Parameters:
operationType- the bulk operation type- Returns:
- this
-
entityType
Adds the bulk operation entity type for the action.- Parameters:
entityType- the bulk operation entity type.- Returns:
- this
-
addSubmitEndpoint
Adds theBulkOperationAction.EndpointTypes.SUBMITendpoint for the component.- Parameters:
endpoint- the endpoint- Returns:
- this
-
submitEndpoint
Configures theBulkOperationAction.EndpointTypes.SUBMITendpoint for the component.- Parameters:
fn- the function to configure the endpoint- Returns:
- this
-
getSubmitEndpoint
Retrieves theBulkOperationAction.EndpointTypes.SUBMITendpoint for this component.- Returns:
- the endpoint if it exists
- See Also:
-
findSubmitEndpoint
Finds theBulkOperationAction.EndpointTypes.SUBMITendpoint for this component.- Returns:
- an optional with the endpoint, or empty
-