Interface Modifier<T extends MasterEntity>
-
- Type Parameters:
T
- the type ofMasterEntity
to modify with thisModifier
- 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 typeMasterEntity
- Since:
- 10.0.28
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete()
Deletes theMasterEntity
instance associated with thisModifier
java.util.Optional<T>
get()
Get the object which is modified in thisModifier
.T
write()
Writes the changes done in thisModifier
-
-
-
Method Detail
-
get
java.util.Optional<T> get()
Get the object which is modified in thisModifier
.- Returns:
- An
Optional
with the object which is modified in thisModifier
- Since:
- 10.0.102
-
write
T write() throws PersistencyException
Writes the changes done in thisModifier
- Returns:
- the persisted instance of the
MasterEntity
associated with thisModifier
- Throws:
PersistencyException
- if theMasterEntity
could not be written. The associated- Since:
- 10.0.28
-
delete
void delete() throws PersistencyException
Deletes theMasterEntity
instance associated with thisModifier
- Throws:
PersistencyException
- if theMasterEntity
could not be deleted- Since:
- 10.0.28
-
-