Interface PersistencyHandler
public interface PersistencyHandler
A Handler to create, update or delete instances of
MasterEntity- Since:
- 10.0.28
-
Method Summary
Modifier and TypeMethodDescriptioncreateAccount(Optional<User> user) Create a newAccountobject.createAgentGroup(Optional<User> user) Create a newAgentGroupobject.createCategory(String name, Optional<User> user) Create a newCategoryobject.createChatBot(Optional<User> user) Create a newChatBotobject.createExternalRouting(String type, Optional<User> user) Create a newExternalRoutingobject.createLocation(Optional<User> user) Create a newLocationobject.createPhoneSystem(String type, Optional<User> user) Create a newPhoneSystemobject.createRoutingTag(String name, Optional<User> user) Create a newRoutingTagobject.createSystemGroup(Optional<User> user) Create a newSystemGroupobject.createTenant(Optional<User> user) Create a newTenantobject.createTextModule(Optional<User> user) Create a newTextModuleobject.Create a newTextModuleFirstLevelGroupobject.Create a newTextModuleSecondLevelGroupobject.createTransactionCode(Optional<User> user) Create a newTransactionCodeobject.createUser(Optional<User> user) Create a newUserobject.getAccountModifier(Account account, Optional<User> user) Build aAccountModifierfor the passedAccountobject.getAgentGroupModifier(AgentGroup agentGroup, Optional<User> user) Build anAgentGroupModifierfor the passedAgentGroupobject.getCategoryModifier(Category category, Optional<User> user) Build aCategoryModifierfor the passedCategoryobject.getChatBotModifier(ChatBot chatBot, Optional<User> user) Build aChatBotModifierfor the passedChatBotobject.getExternalRoutingModifier(ExternalRouting externalRouting, Optional<User> user) Build aExternalRoutingModifierfor the passedExternalRoutingobject.getLocationModifier(Location location, Optional<User> user) Build aLocationModifierfor the passedLocationobject.getPhoneSystemModifier(PhoneSystem phoneSystem, Optional<User> user) Build aPhoneSystemModifierfor the passedPhoneSystemobject.getSystemGroupModifier(SystemGroup systemGroup, Optional<User> user) Build anSystemGroupModifierfor the passedSystemGroupobject.getTenantModifier(Tenant tenant, Optional<User> user) Build aTenantModifierfor the passedTenantobject.getTextModuleFirstLevelGroupModifier(TextModuleFirstLevelGroup textModuleFirstLevelGroup, Optional<User> user) Build anTextModuleFirstLevelGroupModifierfor the passedTextModuleFirstLevelGroupobject.getTextModuleModifier(TextModule textModule, Optional<User> user) Build anTextModuleModifierfor the passedTextModuleobject.Build anTextModuleRootModifierfor theTextModuleRootobject.getTextModuleSecondLevelGroupModifier(TextModuleSecondLevelGroup textModuleSecondLevelGroup, Optional<User> user) Build anTextModuleSecondLevelGroupModifierfor the passedTextModuleSecondLevelGroupobject.getTransactionCodeModifier(TransactionCode transactionCode, Optional<User> user) Build aTransactionCodeModifierfor the passedTransactionCodeobject.getUserModifier(User userToEdit, Optional<User> user) Build anUserModifierfor the passedUserobject.
-
Method Details
-
createTenant
Create a newTenantobject. TheTenantis persisted after calling thewritemethod of the returnedTenantModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TenantModifierassociated with the newTenant. - Since:
- 10.0.28
-
getTenantModifier
Build aTenantModifierfor the passedTenantobject.- Parameters:
tenant- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TenantModifierassociated with theTenant. - Since:
- 10.0.28
-
createLocation
Create a newLocationobject. TheLocationis persisted after calling thewritemethod of the returnedLocationModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
LocationModifierassociated with the newLocation. - Since:
- 10.0.34
-
getLocationModifier
Build aLocationModifierfor the passedLocationobject.- Parameters:
location- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
LocationModifierassociated with theLocation. - Since:
- 10.0.34
-
createCategory
Create a newCategoryobject. TheCategoryis persisted after calling thewritemethod of the returnedCategoryModifier.- Parameters:
name- the name of the new categoryuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
CategoryModifierassociated with the newCategory. - Throws:
ValidationException- if the name is invalid- Since:
- 10.0.50
-
getCategoryModifier
Build aCategoryModifierfor the passedCategoryobject.- Parameters:
category- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
CategoryModifierassociated with theCategory. - Since:
- 10.0.50
-
createTransactionCode
Create a newTransactionCodeobject. TheTransactionCodeis persisted after calling thewritemethod of the returnedTransactionCodeModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TransactionCodeModifierassociated with the newTransactionCode. - Since:
- 10.0.38
-
getTransactionCodeModifier
TransactionCodeModifier getTransactionCodeModifier(TransactionCode transactionCode, Optional<User> user) Build aTransactionCodeModifierfor the passedTransactionCodeobject.- Parameters:
transactionCode- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TransactionCodeModifierassociated with theTransactionCode. - Since:
- 10.0.38
-
createAccount
Create a newAccountobject. TheAccountis persisted after calling thewritemethod of the returnedAccountModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
AccountModifierassociated with the newAccount.
-
getAccountModifier
Build aAccountModifierfor the passedAccountobject.- Parameters:
account- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
AccountModifierassociated with theAccount.
-
createAgentGroup
Create a newAgentGroupobject. TheAgentGroupis persisted after calling thewritemethod of the returnedAgentGroupModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
AgentGroupModifierassociated with the newAgentGroup. - Since:
- 10.0.108
-
getAgentGroupModifier
Build anAgentGroupModifierfor the passedAgentGroupobject.- Parameters:
agentGroup- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
AgentGroupModifierassociated with theAgentGroup. - Since:
- 10.0.108
-
createSystemGroup
Create a newSystemGroupobject. TheSystemGroupis persisted after calling thewritemethod of the returnedSystemGroupModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
SystemGroupModifierassociated with the newSystemGroup. - Since:
- 10.0.108
-
getSystemGroupModifier
Build anSystemGroupModifierfor the passedSystemGroupobject.- Parameters:
systemGroup- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
SystemGroupModifierassociated with theSystemGroup. - Since:
- 10.0.108
-
getTextModuleRootModifier
Build anTextModuleRootModifierfor theTextModuleRootobject.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleRootModifierassociated with theTextModuleRoot. - Since:
- 10.0.206
-
createTextModuleFirstLevelGroup
Create a newTextModuleFirstLevelGroupobject. TheTextModuleFirstLevelGroupis persisted after calling thewritemethod of the returnedTextModuleFirstLevelGroupModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleFirstLevelGroupModifierassociated with thenewTextModuleFirstLevelGroup. - Since:
- 10.0.206
-
getTextModuleFirstLevelGroupModifier
TextModuleFirstLevelGroupModifier getTextModuleFirstLevelGroupModifier(TextModuleFirstLevelGroup textModuleFirstLevelGroup, Optional<User> user) Build anTextModuleFirstLevelGroupModifierfor the passedTextModuleFirstLevelGroupobject.- Parameters:
textModuleFirstLevelGroup- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleFirstLevelGroupModifierassociated with theTextModuleFirstLevelGroup. - Since:
- 10.0.206
-
createTextModuleSecondLevelGroup
Create a newTextModuleSecondLevelGroupobject. TheTextModuleSecondLevelGroupis persisted after calling thewritemethod of the returnedTextModuleSecondLevelGroupModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleSecondLevelGroupModifierassociated with thenewTextModuleSecondLevelGroup. - Since:
- 10.0.206
-
getTextModuleSecondLevelGroupModifier
TextModuleSecondLevelGroupModifier getTextModuleSecondLevelGroupModifier(TextModuleSecondLevelGroup textModuleSecondLevelGroup, Optional<User> user) Build anTextModuleSecondLevelGroupModifierfor the passedTextModuleSecondLevelGroupobject.- Parameters:
textModuleSecondLevelGroup- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleSecondLevelGroupModifierassociated with theTextModuleSecondLevelGroup. - Since:
- 10.0.206
-
createTextModule
Create a newTextModuleobject. TheTextModuleis persisted after calling thewritemethod of the returnedTextModuleModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleModifierassociated with thenewTextModule. - Since:
- 10.0.206
-
getTextModuleModifier
Build anTextModuleModifierfor the passedTextModuleobject.- Parameters:
textModule- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
TextModuleModifierassociated with theTextModule. - Since:
- 10.0.206
-
createUser
Create a newUserobject. TheUseris persisted after calling thewritemethod of the returnedUserModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
UserModifierassociated with the newUser. - Since:
- 11.2
-
getUserModifier
Build anUserModifierfor the passedUserobject.- Parameters:
userToEdit- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
UserModifierassociated with theUser. - Since:
- 11.2
-
createPhoneSystem
Create a newPhoneSystemobject. ThePhoneSystemis persisted after calling theModifier.write()method of the returnedPhoneSystemModifier.- Parameters:
type- the type is the unmodifiable and unique name of the client plugin implementation defined by thePhoneSystemConnectorPluginannotation of the client class. The client class must be annotated withPhoneSystemConnectorPluginand implements one or more interfaces extending the interfacePhoneSystemConnector.user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
PhoneSystemModifierassociated with the newPhoneSystem. - Throws:
ValidationException- if the type is invalid or the plugin class unavailable.- Since:
- 11.27
-
getPhoneSystemModifier
Build aPhoneSystemModifierfor the passedPhoneSystemobject.- Parameters:
phoneSystem- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
PhoneSystemModifierassociated with thePhoneSystem. - Since:
- 11.27
-
createExternalRouting
ExternalRoutingModifier createExternalRouting(String type, Optional<User> user) throws ValidationException Create a newExternalRoutingobject. TheExternalRoutingis persisted after calling theModifier.write()method of the returnedExternalRoutingModifier.- Parameters:
type- the type is the unmodifiable and unique name of the client plugin implementation defined by theExternalRoutingConnectorPluginannotation of the client class. The client class must be annotated withExternalRoutingConnectorPluginand implements the interfaceExternalRoutingConnector.user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
ExternalRoutingModifierassociated with the newExternalRouting. - Throws:
ValidationException- if the type is invalid or the plugin class unavailable.- Since:
- 11.29
-
getExternalRoutingModifier
ExternalRoutingModifier getExternalRoutingModifier(ExternalRouting externalRouting, Optional<User> user) Build aExternalRoutingModifierfor the passedExternalRoutingobject.- Parameters:
externalRouting- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
ExternalRoutingModifierassociated with theExternalRouting. - Since:
- 11.29
-
createRoutingTag
Create a newRoutingTagobject. TheRoutingTagis persisted after calling thewritemethod of the returnedRoutingTagModifier.- Parameters:
name- the unique name of the RoutingTag to be created. The name cannot be changed after the RoutingTag has been created.user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
RoutingTagModifierassociated with the newRoutingTag. - Throws:
ValidationException- if the given name is invalid.- Since:
- 12.3
-
createChatBot
Create a newChatBotobject. TheChatBotis persisted after calling theModifier.write()method of the returnedChatBotModifier.- Parameters:
user- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
ChatBotModifierassociated with the newChatBot. - Since:
- 12.21
-
getChatBotModifier
Build aChatBotModifierfor the passedChatBotobject.- Parameters:
chatBot- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
ChatBotModifierassociated with theChatBot. - Since:
- 12.21
-