Interface Action<A extends Action<A>>
- All Superinterfaces:
Comparable<A>,Copyable<A>,Serializable
- All Known Subinterfaces:
ActionGroup<A>,AddAdjustmentModalFormAction<A>,BulkOperationAction<A>,CloneModalFormAction<A>,ConditionalAction<A>,CreateModalFormAction<A>,EntityModalFormAction<A>,ExportGridAction<A>,FilterAction<A>,FormAction<A>,GenerateTemplateAction<A>,GridRowConditionalAction<A>,ImportGridAction<A>,InlineGridSelectAction<A>,LinkAction<A>,LookupFilterAction<A>,ModalFormAction<A>,OrderableModalFormAction<A>,QueryBuilderFilterAction<A>,ResidentMapCreateAction<A>,RowModalFormAction<A>,SlideOverFormAction<A>,TriggerAction<A>
- All Known Implementing Classes:
AbstractAction,DefaultAction,DefaultActionGroup,DefaultAddAdjustmentModalFormAction,DefaultBulkOperationAction,DefaultCloneModalFormAction,DefaultConditionalAction,DefaultCreateModalFormAction,DefaultEntityModalFormAction,DefaultExportGridAction,DefaultFilterAction,DefaultFormAction,DefaultGenerateTemplateAction,DefaultGridRowConditionalAction,DefaultImportGridAction,DefaultInlineGridSelectAction,DefaultLinkAction,DefaultLookupFilterAction,DefaultModalFormAction,DefaultOrderableModalFormAction,DefaultQueryBuilderFilterAction,DefaultResidentMapCreateAction,DefaultRowModalFormAction,DefaultSlideOverFormAction,DefaultTriggerAction
Represents the metadata for an action.
- Author:
- Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptiondefault AaddComponent(String key, Component<?> component) default AaddComponents(Map<String, ? extends Component<?>> components) default AaddEndpoint(Endpoint<?> endpoint) default AaddEndpoint(String type, Endpoint<?> endpoint) default AExecutes the provided function with this action as an argument.default Adefault AfindAttribute(String key) findComponent(String key) findComponent(Predicate<Component<?>> predicate) default Collection<Component<?>>findComponents(Predicate<Component<?>> predicate) findEndpoint(String type) findEndpoint(Predicate<Endpoint<?>> predicate) default Collection<Endpoint<?>>findEndpoints(Predicate<Endpoint<?>> predicate) default Component<?>default <T extends Component<T>>
Tdefault ObjectgetAttribute(String key) default <T> TgetAttribute(String key, Class<T> clazz) default Component<?>getComponent(String key) default <T extends Component<T>>
TgetComponent(String key, Class<T> clazz) default Collection<Component<?>>default Endpoint<?>getEndpoint(String type) default <E extends Endpoint<E>>
EgetEndpoint(String type, Class<E> clazz) default Collection<Endpoint<?>>getId()getLabel()getOrder()getScope()Gets the configuration defining how to handle a successful response from this action.getType()default booleanhasAttribute(String key) default booleanhasComponent(String key) default booleanhasEndpoint(String type) default Adefault Alabel(InternationalizedMessage label) default Adefault AoperationType(OperationType operationType) default Adefault Adefault AremoveAttribute(String key) default AremoveComponent(String key) default AremoveEndpoint(String type) default Adefault Aself()voidsetAttributes(Map<String, Object> attributes) voidsetComponents(Map<String, Component<?>> components) voidsetEndpoints(Map<String, Endpoint<?>> endpoints) voidvoidsetLabel(InternationalizedMessage label) voidsetOperationType(OperationType operationType) voidvoidsetPlacement(String placement) voidvoidsetSuccessResponse(SuccessResponse successResponse) Sets the configuration defining how to handle a successful response from this action.voiddefault AConfigures the behavior for a successful response.default AMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getId
-
getPlacement
-
getType
-
getOperationType
-
getScope
-
getLabel
-
getOrder
-
getAttributes
-
getComponents
-
getEndpoints
-
getSuccessResponse
Gets the configuration defining how to handle a successful response from this action.- Returns:
- the success response configuration
-
setId
-
setPlacement
-
setType
-
setOperationType
-
setScope
-
setLabel
-
setOrder
-
setAttributes
-
setComponents
-
setEndpoints
-
setSuccessResponse
Sets the configuration defining how to handle a successful response from this action.- Parameters:
successResponse- the success response configuration
-
getComponentsList
-
getEndpointsList
-
self
-
apply
Executes the provided function with this action as an argument.- Parameters:
fn- the function- Returns:
- this
-
id
-
placement
-
type
-
operationType
-
scope
-
label
-
label
-
successResponse
Configures the behavior for a successful response. -
order
-
attribute
-
removeAttribute
-
hasAttribute
-
getAttribute
-
getAttribute
-
findAttribute
-
addComponent
-
addComponents
-
removeComponent
-
hasComponent
-
getComponent
-
getComponent
-
get
-
get
-
findComponents
-
findComponent
-
findComponent
-
hasEndpoint
-
getEndpoint
-
getEndpoint
-
findEndpoints
-
findEndpoint
-
findEndpoint
-
addEndpoint
-
addEndpoint
-
removeEndpoint
-
clearEndpoints
-