Interface CategoryModifier
-
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<Category>
,UndeletableModifier<Category>
public interface CategoryModifier extends UndeletableModifier<Category>, IntermediateStorageProvider
- Since:
- 10.0.50
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CategoryModifier
addAssignedMessageTemplate(MessageTemplate messageTemplate, MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType)
CategoryModifier
addAssignedSystemGroups(SystemGroup... systemGroups)
Assign the category to the passed system groups.CategoryModifier
addAssignedTextModuleFirstLevelGroups(TextModuleFirstLevelGroup... textModuleFirstLevelGroups)
Assign the category to the passed text module first level groups.CategoryModifier
addAssignedTransactionCodes(TransactionCode... transactionCodes)
Assign the category to the passed transaction codes.AgentGroup
getAssignedAgentGroup()
Get the current assignedAgentGroup
which is held in thisCategoryModifier
.java.util.Set<MessageTemplate>
getAssignedMessageTemplates(MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType)
Get an unmodifiable view of the current assigned message templates for the givenMessageTemplateCategoryAssignmentType
which are held in thisCategoryModifier
.java.util.Set<SystemGroup>
getAssignedSystemGroups()
Get an unmodifiable view of the current assigned system groups which are held in thisCategoryModifier
.java.util.Set<TextModuleFirstLevelGroup>
getAssignedTextModuleFirstLevelGroups()
Get an unmodifiable view of the current assigned text module first level groups which are held in thisCategoryModifier
.java.util.Set<TransactionCode>
getAssignedTransactionCodes()
Get an unmodifiable view of the current assigned transaction codes which are held in thisCategoryModifier
.java.lang.String
getDescription()
Get the current category description which is held in thisCategoryModifier
.java.lang.String
getDisplayName()
Get the current category display name which is held in thisCategoryModifier
.Category
getEscalationCategory()
Get the current escalation category which is held in thisCategoryModifier
.java.lang.Long
getEscalationTimeoutMillis()
Get the current escalation timeout in milliseconds which is held in thisCategoryModifier
.java.lang.Long
getServiceLevelMillis()
Get the current service level in milliseconds which is held in thisCategoryModifier
.boolean
isAllowedForNewProcesses()
Get the current allowed for new processes state which is held in thisCategoryModifier
.boolean
isAllowedForPhoneTickets()
Get the current allowed for phone tickets state which is held in thisCategoryModifier
.boolean
isAllowedRecategorizationDestination()
Get the current allowed recategorization destination state which is held in thisCategoryModifier
.boolean
isAllowedRecategorizationSource()
Get the current allowed recategorization source state which is held in thisCategoryModifier
.boolean
isAnswerAllowed()
Get the current answer allowed state which is held in thisCategoryModifier
.boolean
isAutoRoutingEnabled()
Get the current automatic routing state which is held in thisCategoryModifier
.boolean
isBundlingEnabled()
Get the current bundling state which is held in thisCategoryModifier
.boolean
isChatCategory()
Get the current chat category state which is held in thisCategoryModifier
.boolean
isClearanceRequired()
Get the current clearance required state which is held in thisCategoryModifier
.boolean
isCloseAllowed()
Deprecated, for removal: This API element is subject to removal in a future version.please useisCloseWithoutAnswerAllowed()
instead.boolean
isCloseWithoutAnswerAllowed()
Get the current close without answer allowed state which is held in thisCategoryModifier
.boolean
isCtiRoutingEnabled()
Get the current cti routing state which is held in thisCategoryModifier
.boolean
isPrivilegedRoutingEnabled()
Get the current privileged routing state which is held in thisCategoryModifier
.boolean
isSpellcheckRequired()
Get the current spellcheck required state which is held in thisCategoryModifier
.boolean
isTransactionCodeRequired()
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by the module specific methodsisTransactionCodeRequiredForMail()
,isTransactionCodeRequiredForChat()
,isTransactionCodeRequiredForCall()
.boolean
isTransactionCodeRequiredForCall()
Get the current transaction code required for call state which is held in thisCategoryModifier
.boolean
isTransactionCodeRequiredForChat()
Get the current transaction code required for chat state which is held in thisCategoryModifier
.boolean
isTransactionCodeRequiredForMail()
Get the current transaction code required for mail state which is held in thisCategoryModifier
.CategoryModifier
removeAssignedMessageTemplate(MessageTemplate messageTemplate, MessageTemplateCategoryAssignmentType messageTemplateCategoryAssignmentType)
Remove the assignment of theMessageTemplate
to theCategory
with the given type.CategoryModifier
removeAssignedSystemGroups(SystemGroup... systemGroups)
Remove the assignment of the category to the passed system groups.CategoryModifier
removeAssignedTextModuleFirstLevelGroups(TextModuleFirstLevelGroup... textModuleFirstLevelGroups)
Remove the assignment of the category to the passed text module first level groups.CategoryModifier
removeAssignedTransactionCodes(TransactionCode... transactionCodes)
Remove the assignment of the category to the passed transaction codes.CategoryModifier
setAllowedForNewProcesses(boolean allowedForNewProcesses)
Change the allowed for new processes state.CategoryModifier
setAllowedForPhoneTickets(boolean allowedForPhoneTickets)
Change the allowed for phone tickets state.CategoryModifier
setAllowedRecategorizationDestination(boolean allowedRecategorizationDestination)
Change the allowed recategorization destination state.CategoryModifier
setAllowedRecategorizationSource(boolean allowedRecategorizationSource)
Change the allowed recategorization source state.CategoryModifier
setAnswerAllowed(boolean answerAllowed)
Change the answer allowed state.CategoryModifier
setAssignedAgentGroup(AgentGroup agentGroup)
Change the assignedAgentGroup
.CategoryModifier
setAutoRoutingEnabled(boolean autoRoutingEnabled)
Change the automatic routing state.CategoryModifier
setBundlingEnabled(boolean bundlingEnabled)
Change the bundling state.CategoryModifier
setChatCategory(boolean chatCategory)
Change the chat category state.CategoryModifier
setClearanceRequired(boolean clearanceRequired)
Change the clearance required state.CategoryModifier
setCloseAllowed(boolean closeAllowed)
Deprecated, for removal: This API element is subject to removal in a future version.please usesetCloseWithoutAnswerAllowed(boolean)
instead.CategoryModifier
setCloseWithoutAnswerAllowed(boolean closeWithoutAnswerAllowed)
Change the close without answer allowed state.CategoryModifier
setCtiRoutingEnabled(boolean ctiRoutingEnabled)
Change the cti routing state.CategoryModifier
setDescription(java.lang.String description)
Change the description of the associatedCategory
.CategoryModifier
setDisplayName(java.lang.String displayName)
Change the display name of the associatedCategory
.CategoryModifier
setEscalationCategory(Category escalationCategory)
Change the escalation category.CategoryModifier
setEscalationTimeoutMillis(java.lang.Long escalationTimeoutMillis)
Change the escalation timeout.CategoryModifier
setPrivilegedRoutingEnabled(boolean privilegedRoutingEnabled)
Change the privileged routing state.CategoryModifier
setServiceLevelMillis(java.lang.Long serviceLevelMillis)
Change the service level.CategoryModifier
setSpellcheckRequired(boolean spellcheckRequired)
Change the spellcheck required state.CategoryModifier
setTransactionCodeRequired(boolean transactionCodeRequired)
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by the module specific methodssetTransactionCodeRequiredForMail(boolean)
,setTransactionCodeRequiredForChat(boolean)
,setTransactionCodeRequiredForCall(boolean)
.CategoryModifier
setTransactionCodeRequiredForCall(boolean transactionCodeRequiredForCall)
Change the transaction code required for call state.CategoryModifier
setTransactionCodeRequiredForChat(boolean transactionCodeRequiredForChat)
Change the transaction code required for chat state.CategoryModifier
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
validateCloseAllowed(boolean closeAllowed)
Deprecated, for removal: This API element is subject to removal in a future version.please usevalidateCloseWithoutAnswerAllowed(boolean)
instead.boolean
validateCloseWithoutAnswerAllowed(boolean closeWithoutAnswerAllowed)
Validate the given close without answer allowed state.boolean
validateCtiRoutingEnabled(boolean ctiRoutingEnabled)
Validate the given cti routing state.boolean
validateDescription(java.lang.String description)
Validate the given description.boolean
validateDisplayName(java.lang.String displayName)
Validate the given display name.boolean
validateEscalationCategory(Category escalationCategory)
Validate the given escalation category.boolean
validateEscalationTimeoutMillis(java.lang.Long escalationTimeoutMillis)
Validate the given escalation timeout.boolean
validatePrivilegedRoutingEnabled(boolean privilegedRoutingEnabled)
Validate the given privileged routing state.boolean
validateServiceLevelMillis(java.lang.Long serviceLevelMillis)
Validate the given service level.boolean
validateSpellcheckRequired(boolean spellcheckRequired)
Validate the given spellcheck required state.boolean
validateTransactionCodeRequired(boolean transactionCodeRequired)
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by the module specific methodsvalidateTransactionCodeRequiredForMail(boolean)
,validateTransactionCodeRequiredForChat(boolean)
,validateTransactionCodeRequiredForCall(boolean)
.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 Detail
-
getDisplayName
java.lang.String getDisplayName()
Get the current category display name which is held in thisCategoryModifier
.- Returns:
- the name as String
- Since:
- 10.0.50
-
setDisplayName
CategoryModifier setDisplayName(java.lang.String displayName) throws ValidationException
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
boolean validateDisplayName(java.lang.String displayName) throws ValidationException
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
java.lang.String getDescription()
Get the current category description which is held in thisCategoryModifier
.- Returns:
- the description as String
- Since:
- 10.0.50
-
setDescription
CategoryModifier setDescription(java.lang.String description) throws ValidationException
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
boolean validateDescription(java.lang.String description) throws ValidationException
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
java.util.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
java.util.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
CategoryModifier setAssignedAgentGroup(AgentGroup agentGroup) throws ValidationException
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
boolean validateAssignedAgentGroup(AgentGroup agentGroup) throws ValidationException
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
java.util.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
CategoryModifier addAssignedSystemGroups(SystemGroup... systemGroups) throws ValidationException
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
CategoryModifier removeAssignedSystemGroups(SystemGroup... systemGroups) throws ValidationException
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
CategoryModifier setEscalationCategory(Category escalationCategory) throws ValidationException
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
boolean validateEscalationCategory(Category escalationCategory) throws ValidationException
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
java.lang.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(java.lang.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
boolean validateEscalationTimeoutMillis(java.lang.Long escalationTimeoutMillis) throws ValidationException
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
java.lang.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
CategoryModifier setServiceLevelMillis(java.lang.Long serviceLevelMillis) throws ValidationException
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
boolean validateServiceLevelMillis(java.lang.Long serviceLevelMillis) throws ValidationException
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
CategoryModifier setAutoRoutingEnabled(boolean autoRoutingEnabled) throws ValidationException
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
boolean validateAutoRoutingEnabled(boolean autoRoutingEnabled) throws ValidationException
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
-
isCtiRoutingEnabled
boolean isCtiRoutingEnabled()
Get the current cti routing state which is held in thisCategoryModifier
.- Returns:
- true if cti routing is enabled, otherwise false
- Since:
- 10.0.50
-
setCtiRoutingEnabled
CategoryModifier setCtiRoutingEnabled(boolean ctiRoutingEnabled) throws ValidationException
Change the cti routing state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
ctiRoutingEnabled
- the new cti routing state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateCtiRoutingEnabled
boolean validateCtiRoutingEnabled(boolean ctiRoutingEnabled) throws ValidationException
Validate the given cti routing state.- Parameters:
ctiRoutingEnabled
- the new cti routing state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
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
CategoryModifier setBundlingEnabled(boolean bundlingEnabled) throws ValidationException
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
boolean validateBundlingEnabled(boolean bundlingEnabled) throws ValidationException
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
CategoryModifier setAnswerAllowed(boolean answerAllowed) throws ValidationException
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
boolean validateAnswerAllowed(boolean answerAllowed) throws ValidationException
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
-
isCloseAllowed
@Deprecated(since="12.39", forRemoval=true) boolean isCloseAllowed()
Deprecated, for removal: This API element is subject to removal in a future version.please useisCloseWithoutAnswerAllowed()
instead.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:
- 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
-
setCloseAllowed
@Deprecated(since="12.39", forRemoval=true) CategoryModifier setCloseAllowed(boolean closeAllowed) throws ValidationException
Deprecated, for removal: This API element is subject to removal in a future version.please usesetCloseWithoutAnswerAllowed(boolean)
instead.Change the close without answer allowed state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
closeAllowed
- the new close without answer allowed state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
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
-
validateCloseAllowed
@Deprecated(since="12.39", forRemoval=true) boolean validateCloseAllowed(boolean closeAllowed) throws ValidationException
Deprecated, for removal: This API element is subject to removal in a future version.please usevalidateCloseWithoutAnswerAllowed(boolean)
instead.Validate the given close without answer allowed state.- Parameters:
closeAllowed
- the new close without answer allowed state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
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
-
isTransactionCodeRequired
@Deprecated(since="12.29", forRemoval=true) boolean isTransactionCodeRequired()
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by the module specific methodsisTransactionCodeRequiredForMail()
,isTransactionCodeRequiredForChat()
,isTransactionCodeRequiredForCall()
. This method will now return true if one of the new module specific methods is true, otherwise false.Get the current transaction code required 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:
- 10.0.50
-
setTransactionCodeRequired
@Deprecated(since="12.29", forRemoval=true) CategoryModifier setTransactionCodeRequired(boolean transactionCodeRequired) throws ValidationException
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by the module specific methodssetTransactionCodeRequiredForMail(boolean)
,setTransactionCodeRequiredForChat(boolean)
,setTransactionCodeRequiredForCall(boolean)
. This method will now call all the new module specific methods.Change the transaction code required state.
The change is applied after the
Modifier.write()
method is called.- Parameters:
transactionCodeRequired
- the new transaction code required state- Returns:
- the
CategoryModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
validateTransactionCodeRequired
@Deprecated(since="12.29", forRemoval=true) boolean validateTransactionCodeRequired(boolean transactionCodeRequired) throws ValidationException
Deprecated, for removal: This API element is subject to removal in a future version.Replaced by the module specific methodsvalidateTransactionCodeRequiredForMail(boolean)
,validateTransactionCodeRequiredForChat(boolean)
,validateTransactionCodeRequiredForCall(boolean)
. This method will now call all the new module specific methods.Validate the given transaction code required state.- Parameters:
transactionCodeRequired
- the new transaction code required state- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.50
-
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
CategoryModifier setClearanceRequired(boolean clearanceRequired) throws ValidationException
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
boolean validateClearanceRequired(boolean clearanceRequired) throws ValidationException
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
CategoryModifier setSpellcheckRequired(boolean spellcheckRequired) throws ValidationException
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
boolean validateSpellcheckRequired(boolean spellcheckRequired) throws ValidationException
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
CategoryModifier setChatCategory(boolean chatCategory) throws ValidationException
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
boolean validateChatCategory(boolean chatCategory) throws ValidationException
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
boolean validateAllowedForPhoneTickets(boolean allowedForPhoneTickets) throws ValidationException
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
boolean validateAllowedForNewProcesses(boolean allowedForNewProcesses) throws ValidationException
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
java.util.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:
MessageTemplateCategoryAssignmentType.isMultipleAllowed()
-
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:
MessageTemplateCategoryAssignmentType.isMultipleAllowed()
,MessageTemplateCategoryAssignmentType.isAutoProcessing()
-
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
-
-