Interface Modifier<T extends MasterEntity>

Type Parameters:
T - the type of MasterEntity to modify with this Modifier
All Known Subinterfaces:
AccountModifier, AgentGroupModifier, CategoryModifier, ChatBotModifier, ExternalRoutingModifier, GroupModifier<T>, LocationModifier, MessengerAccountModifier, PhoneSystemModifier, RoutingTagModifier, SystemGroupModifier, TenantModifier, TextModuleFirstLevelGroupModifier, TextModuleGroupModifier<T>, TextModuleModifier, TextModuleNodeModifier<T>, TextModuleRootModifier, TextModuleSecondLevelGroupModifier, TransactionCodeModifier, UndeletableModifier<T>, UserModifier

public interface Modifier<T extends MasterEntity>
Defines an API to modify an instance of type MasterEntity
Since:
10.0.28
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deletes the MasterEntity instance associated with this Modifier
    get()
    Get the object which is modified in this Modifier.
    Writes the changes done in this Modifier
  • Method Details

    • get

      Optional<T> get()
      Get the object which is modified in this Modifier.
      Returns:
      An Optional with the object which is modified in this Modifier
      Since:
      10.0.102
    • write

      T write() throws PersistencyException
      Writes the changes done in this Modifier
      Returns:
      the persisted instance of the MasterEntity associated with this Modifier
      Throws:
      PersistencyException - if the MasterEntity could not be written. The associated
      Since:
      10.0.28
    • delete

      void delete() throws PersistencyException
      Deletes the MasterEntity instance associated with this Modifier
      Throws:
      PersistencyException - if the MasterEntity could not be deleted
      Since:
      10.0.28