Interface CategoryModifier
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<Category>
,UndeletableModifier<Category>
- Since:
- 10.0.50
-
Method Summary
Modifier and TypeMethodDescriptionaddAssignedMessageTemplate
(MessageTemplate messageTemplate, MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType) addAssignedSystemGroups
(SystemGroup... systemGroups) Assign the category to the passed system groups.addAssignedTextModuleFirstLevelGroups
(TextModuleFirstLevelGroup... textModuleFirstLevelGroups) Assign the category to the passed text module first level groups.addAssignedTransactionCodes
(TransactionCode... transactionCodes) Assign the category to the passed transaction codes.Get the current assignedAgentGroup
which is held in thisCategoryModifier
.getAssignedMessageTemplates
(MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType) Get an unmodifiable view of the current assigned message templates for the givenMessageTemplateCategoryAssignmentType
which are held in thisCategoryModifier
.Get an unmodifiable view of the current assigned system groups which are held in thisCategoryModifier
.Get an unmodifiable view of the current assigned text module first level groups which are held in thisCategoryModifier
.Get an unmodifiable view of the current assigned transaction codes which are held in thisCategoryModifier
.Get the current category description which is held in thisCategoryModifier
.Get the current category display name which is held in thisCategoryModifier
.Get the current escalation category which is held in thisCategoryModifier
.Get the current escalation timeout in milliseconds which is held in thisCategoryModifier
.Get the current service level in milliseconds which is held in thisCategoryModifier
.boolean
Get the current allowed for new processes state which is held in thisCategoryModifier
.boolean
Get the current allowed for phone tickets state which is held in thisCategoryModifier
.boolean
Get the current allowed recategorization destination state which is held in thisCategoryModifier
.boolean
Get the current allowed recategorization source state which is held in thisCategoryModifier
.boolean
Get the current answer allowed state which is held in thisCategoryModifier
.boolean
Get the current automatic routing state which is held in thisCategoryModifier
.boolean
Get the current bundling state which is held in thisCategoryModifier
.boolean
Get the current chat category state which is held in thisCategoryModifier
.boolean
Get the current clearance required state which is held in thisCategoryModifier
.boolean
Get the current close without answer allowed state which is held in thisCategoryModifier
.boolean
Get the current external routing state which is held in thisCategoryModifier
.boolean
Get the current privileged routing state which is held in thisCategoryModifier
.boolean
Get the current spellcheck required state which is held in thisCategoryModifier
.boolean
Get the current transaction code required for call state which is held in thisCategoryModifier
.boolean
Get the current transaction code required for chat state which is held in thisCategoryModifier
.boolean
Get the current transaction code required for mail state which is held in thisCategoryModifier
.removeAssignedMessageTemplate
(MessageTemplate messageTemplate, MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType) Remove the assignment of theMessageTemplate
to theCategory
with the given type.removeAssignedSystemGroups
(SystemGroup... systemGroups) Remove the assignment of the category to the passed system groups.removeAssignedTextModuleFirstLevelGroups
(TextModuleFirstLevelGroup... textModuleFirstLevelGroups) Remove the assignment of the category to the passed text module first level groups.removeAssignedTransactionCodes
(TransactionCode... transactionCodes) Remove the assignment of the category to the passed transaction codes.setAllowedForNewProcesses
(boolean allowedForNewProcesses) Change the allowed for new processes state.setAllowedForPhoneTickets
(boolean allowedForPhoneTickets) Change the allowed for phone tickets state.setAllowedRecategorizationDestination
(boolean allowedRecategorizationDestination) Change the allowed recategorization destination state.setAllowedRecategorizationSource
(boolean allowedRecategorizationSource) Change the allowed recategorization source state.setAnswerAllowed
(boolean answerAllowed) Change the answer allowed state.setAssignedAgentGroup
(AgentGroup agentGroup) Change the assignedAgentGroup
.setAutoRoutingEnabled
(boolean autoRoutingEnabled) Change the automatic routing state.setBundlingEnabled
(boolean bundlingEnabled) Change the bundling state.setChatCategory
(boolean chatCategory) Change the chat category state.setClearanceRequired
(boolean clearanceRequired) Change the clearance required state.setCloseWithoutAnswerAllowed
(boolean closeWithoutAnswerAllowed) Change the close without answer allowed state.setDescription
(String description) Change the description of the associatedCategory
.setDisplayName
(String displayName) Change the display name of the associatedCategory
.setEscalationCategory
(Category escalationCategory) Change the escalation category.setEscalationTimeoutMillis
(Long escalationTimeoutMillis) Change the escalation timeout.setExternalRoutingEnabled
(boolean externalRoutingEnabled) Change the external routing state.setPrivilegedRoutingEnabled
(boolean privilegedRoutingEnabled) Change the privileged routing state.setServiceLevelMillis
(Long serviceLevelMillis) Change the service level.setSpellcheckRequired
(boolean spellcheckRequired) Change the spellcheck required state.setTransactionCodeRequiredForCall
(boolean transactionCodeRequiredForCall) Change the transaction code required for call state.setTransactionCodeRequiredForChat
(boolean transactionCodeRequiredForChat) Change the transaction code required for chat state.setTransactionCodeRequiredForMail
(boolean transactionCodeRequiredForMail) Change the transaction code required for mail state.boolean
validateAllowedForNewProcesses
(boolean allowedForNewProcesses) Validate the given allowed for new processes state.boolean
validateAllowedForPhoneTickets
(boolean allowedForPhoneTickets) Validate the given allowed for phone tickets state.boolean
validateAllowedRecategorizationDestination
(boolean allowedRecategorizationDestination) Validate the given allowed recategorization destination state.boolean
validateAllowedRecategorizationSource
(boolean allowedRecategorizationSource) Validate the given allowed recategorization source state.boolean
validateAnswerAllowed
(boolean answerAllowed) Validate the given answer allowed state.boolean
validateAssignedAgentGroup
(AgentGroup agentGroup) Validate the givenAgentGroup
.boolean
validateAutoRoutingEnabled
(boolean autoRoutingEnabled) Validate the given automatic routing state.boolean
validateBundlingEnabled
(boolean bundlingEnabled) Validate the given bundling state.boolean
validateChatCategory
(boolean chatCategory) Validate the given chat category state.boolean
validateClearanceRequired
(boolean clearanceRequired) Validate the given clearance required state.boolean
validateCloseWithoutAnswerAllowed
(boolean closeWithoutAnswerAllowed) Validate the given close without answer allowed state.boolean
validateDescription
(String description) Validate the given description.boolean
validateDisplayName
(String displayName) Validate the given display name.boolean
validateEscalationCategory
(Category escalationCategory) Validate the given escalation category.boolean
validateEscalationTimeoutMillis
(Long escalationTimeoutMillis) Validate the given escalation timeout.boolean
validateExternalRoutingEnabled
(boolean externalRoutingEnabled) Validate the given external routing state.boolean
validatePrivilegedRoutingEnabled
(boolean privilegedRoutingEnabled) Validate the given privileged routing state.boolean
validateServiceLevelMillis
(Long serviceLevelMillis) Validate the given service level.boolean
validateSpellcheckRequired
(boolean spellcheckRequired) Validate the given spellcheck required state.boolean
validateTransactionCodeRequiredForCall
(boolean transactionCodeRequiredForCall) Validate the given transaction code required for call state.boolean
validateTransactionCodeRequiredForChat
(boolean transactionCodeRequiredForChat) Validate the given transaction code required for chat state.boolean
validateTransactionCodeRequiredForMail
(boolean transactionCodeRequiredForMail) Validate the given transaction code required for mail state.Methods inherited from interface com.novomind.ecom.api.iagent.provider.IntermediateStorageProvider
getIntermediateStorage
Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.Modifier
delete, get, write
Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.UndeletableModifier
undelete
-
Method Details
-
getDisplayName
String getDisplayName()Get the current category display name which is held in thisCategoryModifier
.- Returns:
- the name as String
- Since:
- 10.0.50
-
setDisplayName
Change the display name of the associated
Category
.The change is applied after the
Modifier.write()
method is called.- Parameters:
displayName
- the new display name as String- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the new display name is invalid- Since:
- 10.0.50
-
validateDisplayName
Validate the given display name.- Parameters:
displayName
- the display name to validate as String- Returns:
- true if the display name is valid
- Throws:
ValidationException
- if the display name is invalid- Since:
- 10.0.50
-
getDescription
String getDescription()Get the current category description which is held in thisCategoryModifier
.- Returns:
- the description as String
- Since:
- 10.0.50
-
setDescription
Change the description of the associated
Category
.The change is applied after the
Modifier.write()
method is called.- Parameters:
description
- the new description as String- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the new description is invalid- Since:
- 10.0.50
-
validateDescription
Validate the given description.- Parameters:
description
- the description to validate as String- Returns:
- true if the description is valid
- Throws:
ValidationException
- if the description is invalid- Since:
- 10.0.50
-
getAssignedTransactionCodes
Set<TransactionCode> getAssignedTransactionCodes()Get an unmodifiable view of the current assigned transaction codes which are held in thisCategoryModifier
.- Returns:
- the current assigned transaction codes as an unmodifiable set
- Since:
- 10.0.50
-
addAssignedTransactionCodes
CategoryModifier addAssignedTransactionCodes(TransactionCode... transactionCodes) throws ValidationException Assign the category to the passed transaction codes.
The change is applied after the
Modifier.write()
method is called.- Parameters:
transactionCodes
- the transaction codes the category should be assigned to- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if a transaction code is null or already assigned- Since:
- 10.0.50
-
removeAssignedTransactionCodes
CategoryModifier removeAssignedTransactionCodes(TransactionCode... transactionCodes) throws ValidationException Remove the assignment of the category to the passed transaction codes.
The change is applied after the
Modifier.write()
method is called.- Parameters:
transactionCodes
- the transaction codes for which the assignment should be removed- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if a transaction code is null or not assigned- Since:
- 10.0.50
-
getAssignedTextModuleFirstLevelGroups
Set<TextModuleFirstLevelGroup> getAssignedTextModuleFirstLevelGroups()Get an unmodifiable view of the current assigned text module first level groups which are held in thisCategoryModifier
.- Returns:
- the current assigned text module first level groups as an unmodifiable set
- Since:
- 10.0.206
-
addAssignedTextModuleFirstLevelGroups
CategoryModifier addAssignedTextModuleFirstLevelGroups(TextModuleFirstLevelGroup... textModuleFirstLevelGroups) throws ValidationException Assign the category to the passed text module first level groups.
The change is applied after the
Modifier.write()
method is called.- Parameters:
textModuleFirstLevelGroups
- the text module first level groups the category should be assigned to- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if a text module first level group is null or already assigned- Since:
- 10.0.206
-
removeAssignedTextModuleFirstLevelGroups
CategoryModifier removeAssignedTextModuleFirstLevelGroups(TextModuleFirstLevelGroup... textModuleFirstLevelGroups) throws ValidationException Remove the assignment of the category to the passed text module first level groups.
The change is applied after the
Modifier.write()
method is called.- Parameters:
textModuleFirstLevelGroups
- the text module first level groups for which the assignment should be removed- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if a text module first level group is null or not assigned- Since:
- 10.0.206
-
getAssignedAgentGroup
AgentGroup getAssignedAgentGroup()Get the current assignedAgentGroup
which is held in thisCategoryModifier
.- Returns:
- the current assigned
AgentGroup
- Since:
- 10.0.50
-
setAssignedAgentGroup
Change the assigned
AgentGroup
.The change is applied after the
Modifier.write()
method is called.- Parameters:
agentGroup
- the newAgentGroup
- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the new agent group is invalid- Since:
- 10.0.50
-
validateAssignedAgentGroup
Validate the givenAgentGroup
.- Parameters:
agentGroup
- the agent group to validate- Returns:
- true if the agent group is valid
- Throws:
ValidationException
- if the agent group is invalid- Since:
- 10.0.50
-
getAssignedSystemGroups
Set<SystemGroup> getAssignedSystemGroups()Get an unmodifiable view of the current assigned system groups which are held in thisCategoryModifier
.- Returns:
- the current assigned system groups as an unmodifiable set
- Since:
- 10.0.108
-
addAssignedSystemGroups
Assign the category to the passed system groups.
The change is applied after the
Modifier.write()
method is called.- Parameters:
systemGroups
- the system groups the category should be assigned to- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if a system group is null or already assigned- Since:
- 10.0.108
-
removeAssignedSystemGroups
Remove the assignment of the category to the passed system groups.
The change is applied after the
Modifier.write()
method is called.- Parameters:
systemGroups
- the system groups for which the assignment should be removed- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if a system group is null or not assigned- Since:
- 10.0.108
-
getEscalationCategory
Category getEscalationCategory()Get the current escalation category which is held in thisCategoryModifier
.- Returns:
- the category used for escalation
- Since:
- 10.0.50
-
setEscalationCategory
Change the escalation category.
The change is applied after the
Modifier.write()
method is called.- Parameters:
escalationCategory
- the new escalation category- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the new escalation category is invalid- Since:
- 10.0.50
-
validateEscalationCategory
Validate the given escalation category.- Parameters:
escalationCategory
- the escalation category to validate- Returns:
- true if the escalation category is valid
- Throws:
ValidationException
- if the escalation category is invalid- Since:
- 10.0.50
-
getEscalationTimeoutMillis
Long getEscalationTimeoutMillis()Get the current escalation timeout in milliseconds which is held in thisCategoryModifier
.- Returns:
- the escalation timeout in milliseconds
- Since:
- 10.0.50
-
setEscalationTimeoutMillis
CategoryModifier setEscalationTimeoutMillis(Long escalationTimeoutMillis) throws ValidationException Change the escalation timeout.
The change is applied after the
Modifier.write()
method is called.- Parameters:
escalationTimeoutMillis
- the new escalation timeout in milliseconds- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the new escalation timeout is invalid- Since:
- 10.0.50
-
validateEscalationTimeoutMillis
Validate the given escalation timeout.- Parameters:
escalationTimeoutMillis
- the escalation timeout in milliseconds to validate- Returns:
- true if the escalation timeout is valid
- Throws:
ValidationException
- if the escalation timeout is invalid- Since:
- 10.0.50
-
getServiceLevelMillis
Long getServiceLevelMillis()Get the current service level in milliseconds which is held in thisCategoryModifier
.- Returns:
- the configured service level for this category in milliseconds
- Since:
- 10.0.50
-
setServiceLevelMillis
Change the service level.
The change is applied after the
Modifier.write()
method is called.- Parameters:
serviceLevelMillis
- the new service level in milliseconds- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the new service level is invalid- Since:
- 10.0.50
-
validateServiceLevelMillis
Validate the given service level.- Parameters:
serviceLevelMillis
- the service level in milliseconds to validate- Returns:
- true if the service level is valid
- Throws:
ValidationException
- if the service level is invalid- Since:
- 10.0.50
-
isAutoRoutingEnabled
boolean isAutoRoutingEnabled()Get the current automatic routing state which is held in thisCategoryModifier
.- Returns:
- true if automatic routing is enabled, otherwise false
- Since:
- 10.0.50
-
setAutoRoutingEnabled
Change the automatic routing state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
autoRoutingEnabled
- the new automatic routing state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateAutoRoutingEnabled
Validate the given automatic routing state.- Parameters:
autoRoutingEnabled
- the new automatic routing state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isPrivilegedRoutingEnabled
boolean isPrivilegedRoutingEnabled()Get the current privileged routing state which is held in thisCategoryModifier
.- Returns:
- true if privileged routing is enabled, otherwise false
- Since:
- 10.0.50
-
setPrivilegedRoutingEnabled
CategoryModifier setPrivilegedRoutingEnabled(boolean privilegedRoutingEnabled) throws ValidationException Change the privileged routing state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
privilegedRoutingEnabled
- the new privileged routing state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validatePrivilegedRoutingEnabled
boolean validatePrivilegedRoutingEnabled(boolean privilegedRoutingEnabled) throws ValidationException Validate the given privileged routing state.- Parameters:
privilegedRoutingEnabled
- the new privileged routing state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isExternalRoutingEnabled
boolean isExternalRoutingEnabled()Get the current external routing state which is held in thisCategoryModifier
.- Returns:
- true if external routing is enabled, otherwise false
- Since:
- 13.0
-
setExternalRoutingEnabled
CategoryModifier setExternalRoutingEnabled(boolean externalRoutingEnabled) throws ValidationException Change the external routing state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
externalRoutingEnabled
- the new external routing state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 13.0
-
validateExternalRoutingEnabled
Validate the given external routing state.- Parameters:
externalRoutingEnabled
- the new external routing state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 13.0
-
isBundlingEnabled
boolean isBundlingEnabled()Get the current bundling state which is held in thisCategoryModifier
.- Returns:
- true if bundling is enabled, otherwise false
- Since:
- 10.0.50
-
setBundlingEnabled
Change the bundling state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
bundlingEnabled
- the new bundling state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateBundlingEnabled
Validate the given bundling state.- Parameters:
bundlingEnabled
- the new bundling state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isAnswerAllowed
boolean isAnswerAllowed()Get the current answer allowed state which is held in thisCategoryModifier
.- Returns:
- true if it is allowed to answer tickets in this category, otherwise false
- Since:
- 10.0.50
-
setAnswerAllowed
Change the answer allowed state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
answerAllowed
- the new answer allowed state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateAnswerAllowed
Validate the given answer allowed state.- Parameters:
answerAllowed
- the new answer allowed state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isCloseWithoutAnswerAllowed
boolean isCloseWithoutAnswerAllowed()Get the current close without answer allowed state which is held in thisCategoryModifier
.- Returns:
- true if it is allowed to close tickets without answer in this category, otherwise false
- Since:
- 12.39
-
setCloseWithoutAnswerAllowed
CategoryModifier setCloseWithoutAnswerAllowed(boolean closeWithoutAnswerAllowed) throws ValidationException Change the close without answer allowed state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
closeWithoutAnswerAllowed
- the new close allowed state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.39
-
validateCloseWithoutAnswerAllowed
boolean validateCloseWithoutAnswerAllowed(boolean closeWithoutAnswerAllowed) throws ValidationException Validate the given close without answer allowed state.- Parameters:
closeWithoutAnswerAllowed
- the new close without answer allowed state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.39
-
isTransactionCodeRequiredForMail
boolean isTransactionCodeRequiredForMail()Get the current transaction code required for mail state which is held in thisCategoryModifier
.- Returns:
- true if it is required to specify a
TransactionCode
to close a ticket in this category, otherwise false - Since:
- 12.29
-
setTransactionCodeRequiredForMail
CategoryModifier setTransactionCodeRequiredForMail(boolean transactionCodeRequiredForMail) throws ValidationException Change the transaction code required for mail state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
transactionCodeRequiredForMail
- the new transaction code required for mail state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.29
-
validateTransactionCodeRequiredForMail
boolean validateTransactionCodeRequiredForMail(boolean transactionCodeRequiredForMail) throws ValidationException Validate the given transaction code required for mail state.- Parameters:
transactionCodeRequiredForMail
- the new transaction code required for mail state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.29
-
isTransactionCodeRequiredForChat
boolean isTransactionCodeRequiredForChat()Get the current transaction code required for chat state which is held in thisCategoryModifier
.- Returns:
- true if it is required to specify a
TransactionCode
to close a chat in this category, otherwise false - Since:
- 12.29
-
setTransactionCodeRequiredForChat
CategoryModifier setTransactionCodeRequiredForChat(boolean transactionCodeRequiredForChat) throws ValidationException Change the transaction code required for chat state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
transactionCodeRequiredForChat
- the new transaction code required for chat state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.29
-
validateTransactionCodeRequiredForChat
boolean validateTransactionCodeRequiredForChat(boolean transactionCodeRequiredForChat) throws ValidationException Validate the given transaction code required for chat state.- Parameters:
transactionCodeRequiredForChat
- the new transaction code required for chat state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.29
-
isTransactionCodeRequiredForCall
boolean isTransactionCodeRequiredForCall()Get the current transaction code required for call state which is held in thisCategoryModifier
.- Returns:
- true if it is required to specify a
TransactionCode
to close a call in this category, otherwise false - Since:
- 12.29
-
setTransactionCodeRequiredForCall
CategoryModifier setTransactionCodeRequiredForCall(boolean transactionCodeRequiredForCall) throws ValidationException Change the transaction code required for call state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
transactionCodeRequiredForCall
- the new transaction code required for call state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.29
-
validateTransactionCodeRequiredForCall
boolean validateTransactionCodeRequiredForCall(boolean transactionCodeRequiredForCall) throws ValidationException Validate the given transaction code required for call state.- Parameters:
transactionCodeRequiredForCall
- the new transaction code required for call state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 12.29
-
isClearanceRequired
boolean isClearanceRequired()Get the current clearance required state which is held in thisCategoryModifier
.- Returns:
- true if a clearance is required, otherwise false
- Since:
- 10.0.50
-
setClearanceRequired
Change the clearance required state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
clearanceRequired
- the new clearance required state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateClearanceRequired
Validate the given clearance required state.- Parameters:
clearanceRequired
- the new clearance required state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isSpellcheckRequired
boolean isSpellcheckRequired()Get the current spellcheck required state which is held in thisCategoryModifier
.- Returns:
- true if spellcheck is required, otherwise false
- Since:
- 10.0.50
-
setSpellcheckRequired
Change the spellcheck required state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
spellcheckRequired
- the new spellcheck required state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateSpellcheckRequired
Validate the given spellcheck required state.- Parameters:
spellcheckRequired
- the new spellcheck required state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isChatCategory
boolean isChatCategory()Get the current chat category state which is held in thisCategoryModifier
.- Returns:
- true if chats are allowed in this category, otherwise false
- Since:
- 10.0.50
-
setChatCategory
Change the chat category state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
chatCategory
- the new chat category state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateChatCategory
Validate the given chat category state.- Parameters:
chatCategory
- the new chat category state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isAllowedRecategorizationSource
boolean isAllowedRecategorizationSource()Get the current allowed recategorization source state which is held in thisCategoryModifier
.- Returns:
- true if this category is an allowed source for recategorizations, otherwise false
- Since:
- 10.0.50
-
setAllowedRecategorizationSource
CategoryModifier setAllowedRecategorizationSource(boolean allowedRecategorizationSource) throws ValidationException Change the allowed recategorization source state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
allowedRecategorizationSource
- the new allowed recategorization source state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateAllowedRecategorizationSource
boolean validateAllowedRecategorizationSource(boolean allowedRecategorizationSource) throws ValidationException Validate the given allowed recategorization source state.- Parameters:
allowedRecategorizationSource
- the new allowed recategorization source state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isAllowedRecategorizationDestination
boolean isAllowedRecategorizationDestination()Get the current allowed recategorization destination state which is held in thisCategoryModifier
.- Returns:
- true if this category is an allowed destination for recategorizations, otherwise false
- Since:
- 10.0.50
-
setAllowedRecategorizationDestination
CategoryModifier setAllowedRecategorizationDestination(boolean allowedRecategorizationDestination) throws ValidationException Change the allowed recategorization destination state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
allowedRecategorizationDestination
- the new allowed recategorization destination state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateAllowedRecategorizationDestination
boolean validateAllowedRecategorizationDestination(boolean allowedRecategorizationDestination) throws ValidationException Validate the given allowed recategorization destination state.- Parameters:
allowedRecategorizationDestination
- the new allowed recategorization destination state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isAllowedForPhoneTickets
boolean isAllowedForPhoneTickets()Get the current allowed for phone tickets state which is held in thisCategoryModifier
.- Returns:
- true if this category is allowed for phone tickets
- Since:
- 10.0.50
-
setAllowedForPhoneTickets
CategoryModifier setAllowedForPhoneTickets(boolean allowedForPhoneTickets) throws ValidationException Change the allowed for phone tickets state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
allowedForPhoneTickets
- the new allowed for phone tickets state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateAllowedForPhoneTickets
Validate the given allowed for phone tickets state.- Parameters:
allowedForPhoneTickets
- the new allowed for phone tickets state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
isAllowedForNewProcesses
boolean isAllowedForNewProcesses()Get the current allowed for new processes state which is held in thisCategoryModifier
.- Returns:
- true if this category is allowed for new processes
- Since:
- 10.0.50
-
setAllowedForNewProcesses
CategoryModifier setAllowedForNewProcesses(boolean allowedForNewProcesses) throws ValidationException Change the allowed for new processes state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
allowedForNewProcesses
- the new allowed for new processes state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateAllowedForNewProcesses
Validate the given allowed for new processes state.- Parameters:
allowedForNewProcesses
- the new allowed for new processes state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
getAssignedMessageTemplates
Set<MessageTemplate> getAssignedMessageTemplates(MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType) Get an unmodifiable view of the current assigned message templates for the givenMessageTemplateCategoryAssignmentType
which are held in thisCategoryModifier
. Please note that only for theMessageTemplateCategoryAssignmentType.ALTERNATIVE
more than oneMessageTemplate
can be assigned to aCategory
at the same time and therefore only in this case the returned set may contain more than one element.- Parameters:
messageTemplateCategoryAssignmentType
- theMessageTemplateCategoryAssignmentType
of the assignment between the category and the message templates- Returns:
- the current assigned message templates for the given type as an unmodifiable set
- Since:
- 12.37
- See Also:
-
addAssignedMessageTemplate
CategoryModifier addAssignedMessageTemplate(MessageTemplate messageTemplate, MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType) throws ValidationException Assign a
MessageTemplate
to aCategory
with the givenMessageTemplateCategoryAssignmentType
.Please note that only for the
MessageTemplateCategoryAssignmentType.ALTERNATIVE
more than oneMessageTemplate
can be assigned to aCategory
at the same time. If aMessageTemplate
assignment is added to aCategory
for any other type thanMessageTemplateCategoryAssignmentType.ALTERNATIVE
any previously assignedMessageTemplate
for thisCategory
and the given type will be removed and replaced by the newMessageTemplate
.Generally there are 2 different ways of template usage. A
MessageTemplate
can be used for auto processing of mails (MessageTemplateCategoryAssignmentType.isAutoProcessing()
) or it can be used as answering proposal for an agent. If aMessageTemplate
is already used for anyCategory
for auto processing, that means asMessageTemplateCategoryAssignmentType.CONFIRMATION
orMessageTemplateCategoryAssignmentType.SERIAL_REPLY
orMessageTemplateCategoryAssignmentType.INTERMEDIATE_REPLY
it cannot be used at the same time asMessageTemplateCategoryAssignmentType.SUGGESTION
orMessageTemplateCategoryAssignmentType.EXTERNAL_FORWARD
orMessageTemplateCategoryAssignmentType.EXTERNAL_INQUIRY
orMessageTemplateCategoryAssignmentType.NEW_PROCESS
orMessageTemplateCategoryAssignmentType.ALTERNATIVE
and vice versa.Any assignment of a
MessageTemplate
to aCategory
with an improperMessageTemplateCategoryAssignmentType
thats violates the current usage of theMessageTemplate
results in aValidationException
thrown by this method.The change is applied after the
Modifier.write()
method is called.- Parameters:
messageTemplate
- theMessageTemplate
that should be assigned to theCategory
messageTemplateCategoryAssignmentType
- theMessageTemplateCategoryAssignmentType
of the assignment between theMessageTemplate
and theCategory
- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if aMessageTemplate
is null or already assigned to theCategory
or if the current usage of theMessageTemplate
does not match with theMessageTemplateCategoryAssignmentType
- Since:
- 12.37
- See Also:
-
removeAssignedMessageTemplate
CategoryModifier removeAssignedMessageTemplate(MessageTemplate messageTemplate, MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType) throws ValidationException Remove the assignment of the
MessageTemplate
to theCategory
with the given type.The change is applied after the
Modifier.write()
method is called.- Parameters:
messageTemplate
- theMessageTemplate
for which the assignment should be removedmessageTemplateCategoryAssignmentType
- theMessageTemplateCategoryAssignmentType
of the assignment between theCategory
and theMessageTemplate
that should be removed- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if aMessageTemplate
is null or not assigned- Since:
- 12.37
-