Class CreationActionResult
java.lang.Object
com.persequor.saga.modules.autocrud.crud.CreationActionResult
- All Implemented Interfaces:
ICreationActionResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(com.persequor.extension.frontend.IString error) Add an error during creation/storing of the model, used if the input data is not valid.List<com.persequor.extension.frontend.IString>
boolean
Get whether any errors occurred during creation/storing of the model.
-
Constructor Details
-
CreationActionResult
public CreationActionResult()
-
-
Method Details
-
hasErrors
public boolean hasErrors()Description copied from interface:ICreationActionResult
Get whether any errors occurred during creation/storing of the model.- Specified by:
hasErrors
in interfaceICreationActionResult
- Returns:
- - true if errors occurred, false otherwise.
-
addError
public void addError(com.persequor.extension.frontend.IString error) Description copied from interface:ICreationActionResult
Add an error during creation/storing of the model, used if the input data is not valid. Setting an error will prohibit the creation/saving of the model.- Specified by:
addError
in interfaceICreationActionResult
- Parameters:
error
- - the error message to add.
-
getErrors
-