Class CreationActionResult

java.lang.Object
com.persequor.saga.modules.autocrud.crud.CreationActionResult
All Implemented Interfaces:
ICreationActionResult

public class CreationActionResult extends Object implements ICreationActionResult
  • 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 interface ICreationActionResult
      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 interface ICreationActionResult
      Parameters:
      error - - the error message to add.
    • getErrors

      public List<com.persequor.extension.frontend.IString> getErrors()