Package io.tesler.core.service.action
Class ActionDescription<T extends DataResponseDTO>
- java.lang.Object
-
- io.tesler.core.service.action.ActionDescription<T>
-
public final class ActionDescription<T extends DataResponseDTO> extends Object
-
-
Constructor Summary
Constructors Constructor Description ActionDescription()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends DataResponseDTO>
ActionDescriptionBuilder<T>builder()
ActionResultDTO<T>
invoke(BusinessComponent bc, T data)
boolean
isAvailable(BusinessComponent bc)
boolean
isUpdateRequired()
ActionDTO
toDto(BusinessComponent bc)
List<String>
validate(BusinessComponent bc, DataResponseDTO requestDTO, T data)
PreAction
withPreAction(BusinessComponent bc)
List<PreActionEvent>
withPreActionEvents(BusinessComponent bc)
-
-
-
Method Detail
-
builder
public static <T extends DataResponseDTO> ActionDescriptionBuilder<T> builder()
-
isAvailable
public boolean isAvailable(BusinessComponent bc)
-
isUpdateRequired
public boolean isUpdateRequired()
-
invoke
public ActionResultDTO<T> invoke(BusinessComponent bc, T data)
-
withPreAction
public PreAction withPreAction(BusinessComponent bc)
-
withPreActionEvents
public List<PreActionEvent> withPreActionEvents(BusinessComponent bc)
-
validate
public List<String> validate(BusinessComponent bc, DataResponseDTO requestDTO, T data)
-
toDto
public ActionDTO toDto(BusinessComponent bc)
-
-