Interface EntityEditModel.Settings

Enclosing interface:
EntityEditModel

public static interface EntityEditModel.Settings
The edit model settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    Disabling delete causes an exception being thrown when deleting.
     
    Disabling insert causes an exception being thrown when inserting.
    Making this edit model read-only prevents any changes from being persisted to the database, trying to insert, update or delete will cause an exception being thrown, it does not prevent editing.
    Disabling update causes an exception being thrown when updating.
    Disabling updating multiple entities causes an exception being thrown when trying to update multiple entities at a time.
  • Method Details

    • readOnly

      State readOnly()
      Making this edit model read-only prevents any changes from being persisted to the database, trying to insert, update or delete will cause an exception being thrown, it does not prevent editing. Use insertEnabled(), updateEnabled() and deleteEnabled() to configure the enabled state of those specific actions.
      Returns:
      the State controlling whether this model is read only
    • insertEnabled

      State insertEnabled()
      Disabling insert causes an exception being thrown when inserting.
      Returns:
      the State controlling whether inserting is enabled via this edit model
    • updateEnabled

      State updateEnabled()
      Disabling update causes an exception being thrown when updating.
      Returns:
      the State controlling whether updating is enabled via this edit model
    • updateMultipleEnabled

      State updateMultipleEnabled()
      Disabling updating multiple entities causes an exception being thrown when trying to update multiple entities at a time.
      Returns:
      the State controlling whether updating multiple entities is enabled
    • deleteEnabled

      State deleteEnabled()
      Disabling delete causes an exception being thrown when deleting.
      Returns:
      the State controlling whether deleting is enabled via this edit model
    • editEvents

      State editEvents()
      Returns:
      a state controlling whether this edit model posts insert, update and delete events on the EntityEditModel.EditEvents event bus.
      See Also: