Interface UserModifier
- All Superinterfaces:
- IntermediateStorageProvider,- Modifier<User>,- UndeletableModifier<User>
- Since:
- 11.2
- 
Method SummaryModifier and TypeMethodDescriptionaddLanguageSkills(Locale... languages) Add the passed language skills to the user.addRoutingTags(RoutingTag... routingTags) Add the passed routing tags to the user.Get the currentCategoryModefor the automatic routing of this user which is held in thisUserModifier.Get the current user email address in the form local-part@domain (see https://tools.ietf.org/html/rfc5322#section-3.4.1) which is held in thisUserModifier.Get the current language skills which are held in thisUserModifier.Get the currentLocalerepresenting the display language of this user which is held in thisUserModifier.Get the currentLocationwhich is held in thisUserModifier.Get the currentCategoryModefor the manual routing of this user which is held in thisUserModifier.Get the currentCategoryModefor the manual routing ability of clearance authorizations of this user which is held in thisUserModifier.intGet the current maximum number of chats that should be routed to this user which is held in thisUserModifier.intGet the current maximum number of mails that should be routed to this user which is held in thisUserModifier.getName()Get the current user name which is held in thisUserModifier.Get the current user password which is held in thisUserModifier.Get the current routing tags which are held in thisUserModifier.Get the current signature which is held in thisUserModifier.Get the current user username which is held in thisUserModifier.booleanGet the current clearance authority value which is held in thisUserModifier.booleanisAgent()Get the current agent flag which is held in thisUserModifier.booleanGet the current call routing enabled value which is held in thisUserModifier.booleanGet the current clearance required value which is held in thisUserModifier.booleanisLocked()Get the current locked flag which is held in thisUserModifier.removeLanguageSkills(Locale... languages) Remove the passed language skills of the user.removeRoutingTags(RoutingTag... routingTags) Remove the passed routing tags of the user.setAgent(boolean agent) Change the agent flag.setAutoRoutingCategoryMode(User.CategoryMode autoRoutingCategoryMode) Change theCategoryModefor the automatic routing of this user.setCallRoutingEnabled(boolean callRoutingEnabled) Change the call routing enabled value.setClearanceAuthority(boolean clearanceAuthority) Change the clearance authority value.setClearanceRequired(boolean clearanceRequired) Change the clearance required value.setEmailAddress(String emailAddress) Change the email address of the associatedUser.Change theLocalerepresenting the display language of this user.setLocation(Location location) Set the location.setLocked(boolean locked) Change the locked flag.setManualRoutingCategoryMode(User.CategoryMode manualRoutingCategoryMode) Change theCategoryModefor the manual routing of this user.setManualRoutingClearanceAuthorizationCategoryMode(User.CategoryMode manualRoutingClearanceAuthorizationCategoryMode) Change theCategoryModefor the manual routing ability of clearance authorizations of this user.setMaxChats(int maxChats) Change the maximum number of chats that should be routed to this user.setMaxMails(int maxMails) Change the maximum number of mails that should be routed to this user.Change the name of the associatedUser.setPassword(String password) Change the password of the associatedUser.setSignature(String signature) Change the signature of the associatedUser.setUsername(String username) Change the username of the associatedUser.booleanvalidateAgent(boolean agent) Validate the given agent flag.booleanvalidateAutoRoutingCategoryMode(User.CategoryMode autoRoutingCategoryMode) Validate theCategoryModefor the automatic routing of this user.booleanvalidateCallRoutingEnabled(boolean callRoutingEnabled) Validate the given call routing enabled value.booleanvalidateClearanceAuthority(boolean clearanceAuthority) Validate the given clearance authority value.booleanvalidateClearanceRequired(boolean clearanceRequired) Validate the given clearance required value.booleanvalidateEmailAddress(String emailAddress) Validate the given email address.booleanvalidateLocale(Locale locale) Validate theLocalerepresenting the display language of this user.booleanvalidateLocation(Location location) Validate the given location.booleanvalidateManualRoutingCategoryMode(User.CategoryMode manualRoutingCategoryMode) Validate theCategoryModefor the manual routing of this user.booleanvalidateManualRoutingClearanceAuthorizationCategoryMode(User.CategoryMode manualRoutingClearanceAuthorizationCategoryMode) Validate theCategoryModefor the manual routing ability of clearance authorizations of this user.booleanvalidateMaxChats(int maxChats) Validate the given maximum number of chats that should be routed to this user.booleanvalidateMaxMails(int maxMails) Validate the given maximum number of mails that should be routed to this user.booleanvalidateName(String name) Validate the given name.booleanvalidatePassword(String password) Validate the given password.booleanvalidateSignature(String signature) Validate the given signature.booleanvalidateUsername(String username) Validate the given username.Methods inherited from interface com.novomind.ecom.api.iagent.provider.IntermediateStorageProvidergetIntermediateStorageMethods inherited from interface com.novomind.ecom.api.imail.routing.persistence.Modifierdelete, get, writeMethods inherited from interface com.novomind.ecom.api.imail.routing.persistence.UndeletableModifierundelete
- 
Method Details- 
getNameString getName()Get the current user name which is held in thisUserModifier.- Returns:
- the name as String
- Since:
- 11.2
 
- 
setNameChange the name of the associated User.The change is applied after the Modifier.write()method is called.- Parameters:
- name- the new name as String
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the new name is invalid
- Since:
- 11.2
 
- 
validateNameValidate the given name.- Parameters:
- name- the name to validate as String
- Returns:
- true if the name is valid
- Throws:
- ValidationException- if the name is invalid
- Since:
- 11.2
 
- 
getUsernameString getUsername()Get the current user username which is held in thisUserModifier.- Returns:
- the username as String
- Since:
- 11.2
 
- 
setUsernameChange the username of the associated User. The username needs to be unique in the novomind iAGENT system. Please note that the username can only be changed if theUseris not logged in.The change is applied after the Modifier.write()method is called.- Parameters:
- username- the new username as String
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the new username is invalid or the user is logged in
- Since:
- 11.2
 
- 
validateUsernameValidate the given username. The username needs to be unique in the novomind iAGENT system. Please note that the username can only be changed if theUseris not logged in.- Parameters:
- username- the username to validate as String
- Returns:
- true if the username is valid
- Throws:
- ValidationException- if the username is invalid or the user is logged in
- Since:
- 11.2
 
- 
getPasswordString getPassword()Get the current user password which is held in thisUserModifier. There is no fallback to the underlaying user. If the password hasn't been changed in thisUserModifierthis method returns null.- Returns:
- the password as String
- Since:
- 11.2
 
- 
setPasswordChange the password of the associated User.The change is applied after the Modifier.write()method is called.- Parameters:
- password- the new password as String
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the new password is invalid
- Since:
- 11.2
 
- 
validatePasswordValidate the given password.- Parameters:
- password- the password to validate as String
- Returns:
- true if the password is valid
- Throws:
- ValidationException- if the password is invalid
- Since:
- 11.2
 
- 
getEmailAddressString getEmailAddress()Get the current user email address in the form local-part@domain (see https://tools.ietf.org/html/rfc5322#section-3.4.1) which is held in thisUserModifier.- Returns:
- the email address as String in the form local-part@domain (see https://tools.ietf.org/html/rfc5322#section-3.4.1)
- Since:
- 11.2
 
- 
setEmailAddressChange the email address of the associated User. The email address needs to be unique in the novomind iAGENT system. Please note that the email address can only be changed if theUseris not logged in.The change is applied after the Modifier.write()method is called.- Parameters:
- emailAddress- the new email address as String in the form local-part@domain (see https://tools.ietf.org/html/rfc5322#section-3.4.1)
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the new email address is invalid or the user is logged in
- Since:
- 11.2
 
- 
validateEmailAddressValidate the given email address. The email address needs to be unique in the novomind iAGENT system. Please note that the email address can only be changed if theUseris not logged in.- Parameters:
- emailAddress- the email address to validate as String in the form local-part@domain (see https://tools.ietf.org/html/rfc5322#section-3.4.1)
- Returns:
- true if the email address is valid
- Throws:
- ValidationException- if the email address is invalid or the user is logged in
- Since:
- 11.2
 
- 
isCallRoutingEnabledboolean isCallRoutingEnabled()Get the current call routing enabled value which is held in thisUserModifier.- Returns:
- true if the call routing is enabled for this user, otherwise false
- Since:
- 13.0
 
- 
setCallRoutingEnabledChange the call routing enabled value. The change is applied after the Modifier.write()method is called.- Parameters:
- callRoutingEnabled- the new call routing enabled value
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 13.0
 
- 
validateCallRoutingEnabledValidate the given call routing enabled value.- Parameters:
- callRoutingEnabled- the new call routing enabled value
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 13.0
 
- 
isClearanceRequiredboolean isClearanceRequired()Get the current clearance required value which is held in thisUserModifier.- Returns:
- true if a clearance is required, otherwise false
- Since:
- 12.2
 
- 
setClearanceRequiredChange the clearance required value. The change is applied after the Modifier.write()method is called.- Parameters:
- clearanceRequired- the new clearance required value
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
validateClearanceRequiredValidate the given clearance required value.- Parameters:
- clearanceRequired- the new clearance required value
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
hasClearanceAuthorityboolean hasClearanceAuthority()Get the current clearance authority value which is held in thisUserModifier.- Returns:
- true if the user has clearance authority, otherwise false
- Since:
- 13.0
 
- 
setClearanceAuthorityChange the clearance authority value. The change is applied after the Modifier.write()method is called.- Parameters:
- clearanceAuthority- the new clearance authority value
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 13.0
 
- 
validateClearanceAuthorityValidate the given clearance authority value.- Parameters:
- clearanceAuthority- the new clearance authority value
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 13.0
 
- 
getMaxMailsint getMaxMails()Get the current maximum number of mails that should be routed to this user which is held in thisUserModifier.- Returns:
- the maximum number of mails that should be routed to this user
- Since:
- 12.2
 
- 
setMaxMailsChange the maximum number of mails that should be routed to this user. The change is applied after the Modifier.write()method is called.- Parameters:
- maxMails- the new maximum number of mails that should be routed to this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
validateMaxMailsValidate the given maximum number of mails that should be routed to this user.- Parameters:
- maxMails- the new maximum number of mails that should be routed to this user
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
getMaxChatsint getMaxChats()Get the current maximum number of chats that should be routed to this user which is held in thisUserModifier.- Returns:
- the maximum number of chats that should be routed to this user
- Since:
- 12.2
 
- 
setMaxChatsChange the maximum number of chats that should be routed to this user. The change is applied after the Modifier.write()method is called.- Parameters:
- maxChats- the new maximum number of chats that should be routed to this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
validateMaxChatsValidate the given maximum number of chats that should be routed to this user.- Parameters:
- maxChats- the new maximum number of chats that should be routed to this user
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
getAutoRoutingCategoryModeUser.CategoryMode getAutoRoutingCategoryMode()Get the currentCategoryModefor the automatic routing of this user which is held in thisUserModifier.- Returns:
- the CategoryModefor the automatic routing
- Since:
- 12.2
 
- 
setAutoRoutingCategoryModeUserModifier setAutoRoutingCategoryMode(User.CategoryMode autoRoutingCategoryMode) throws ValidationException Change the CategoryModefor the automatic routing of this user.The change is applied after the Modifier.write()method is called.- Parameters:
- autoRoutingCategoryMode- the new- CategoryModefor the automatic routing of this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
validateAutoRoutingCategoryModeboolean validateAutoRoutingCategoryMode(User.CategoryMode autoRoutingCategoryMode) throws ValidationException Validate theCategoryModefor the automatic routing of this user.- Parameters:
- autoRoutingCategoryMode- the new- CategoryModefor the automatic routing of this user
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
getManualRoutingCategoryModeUser.CategoryMode getManualRoutingCategoryMode()Get the currentCategoryModefor the manual routing of this user which is held in thisUserModifier.- Returns:
- the CategoryModefor the manual routing
- Since:
- 12.2
 
- 
setManualRoutingCategoryModeUserModifier setManualRoutingCategoryMode(User.CategoryMode manualRoutingCategoryMode) throws ValidationException Change the CategoryModefor the manual routing of this user.The change is applied after the Modifier.write()method is called.- Parameters:
- manualRoutingCategoryMode- the new- CategoryModefor the manual routing of this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
validateManualRoutingCategoryModeboolean validateManualRoutingCategoryMode(User.CategoryMode manualRoutingCategoryMode) throws ValidationException Validate theCategoryModefor the manual routing of this user.- Parameters:
- manualRoutingCategoryMode- the new- CategoryModefor the manual routing of this user
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.2
 
- 
getManualRoutingClearanceAuthorizationCategoryModeUser.CategoryMode getManualRoutingClearanceAuthorizationCategoryMode()Get the currentCategoryModefor the manual routing ability of clearance authorizations of this user which is held in thisUserModifier.- Returns:
- the CategoryModefor the manual routing ability of clearance authorizations of this user
- Since:
- 13.0
 
- 
setManualRoutingClearanceAuthorizationCategoryModeUserModifier setManualRoutingClearanceAuthorizationCategoryMode(User.CategoryMode manualRoutingClearanceAuthorizationCategoryMode) throws ValidationException Change the CategoryModefor the manual routing ability of clearance authorizations of this user.The change is applied after the Modifier.write()method is called.- Parameters:
- manualRoutingClearanceAuthorizationCategoryMode- the new- CategoryModefor the manual routing ability of clearance authorizations of this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 13.0
 
- 
validateManualRoutingClearanceAuthorizationCategoryModeboolean validateManualRoutingClearanceAuthorizationCategoryMode(User.CategoryMode manualRoutingClearanceAuthorizationCategoryMode) throws ValidationException Validate theCategoryModefor the manual routing ability of clearance authorizations of this user.- Parameters:
- manualRoutingClearanceAuthorizationCategoryMode- the new- CategoryModefor the manual routing ability of clearance authorizations of this user
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid
- Since:
- 13.0
 
- 
getLocaleLocale getLocale()Get the currentLocalerepresenting the display language of this user which is held in thisUserModifier. Please note that only the language attribute of the givenLocaleis used.- Returns:
- the display language as Locale
- Since:
- 12.20
 
- 
setLocaleChange the Localerepresenting the display language of this user. Please note that only the language attribute of the givenLocaleis used.The change is applied after the Modifier.write()method is called.- Parameters:
- locale- the new- Localerepresenting the display language of this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.20
 
- 
validateLocaleValidate theLocalerepresenting the display language of this user. Please note that only the language attribute of the givenLocaleis used.- Parameters:
- locale- the new- Localerepresenting the display language of this user
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid
- Since:
- 12.20
 
- 
isAgentboolean isAgent()Get the current agent flag which is held in thisUserModifier.- Returns:
- true if the user is an agent, otherwise false
- Since:
- 12.20
 
- 
setAgentChange the agent flag. Please note that the agent flag can only be changed if the Useris not logged in.The change is applied after the Modifier.write()method is called.- Parameters:
- agent- the new agent flag
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the change is invalid or the user is logged in
- Since:
- 12.20
 
- 
validateAgentValidate the given agent flag. Please note that the agent flag can only be changed if theUseris not logged in.- Parameters:
- agent- the new agent flag
- Returns:
- true if the change is valid
- Throws:
- ValidationException- if the change is invalid or the user is logged in
- Since:
- 12.20
 
- 
getLocationLocation getLocation()Get the currentLocationwhich is held in thisUserModifier.- Returns:
- the location
- Since:
- 12.27
 
- 
setLocationSet the location.The change is applied after the Modifier.write()method is called.- Parameters:
- location- the new location
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the location is invalid
- Since:
- 12.27
 
- 
validateLocationValidate the given location.- Parameters:
- location- the new location
- Returns:
- true if the location is valid
- Throws:
- ValidationException- if the location is invalid
- Since:
- 12.27
 
- 
isLockedboolean isLocked()Get the current locked flag which is held in thisUserModifier.- Returns:
- true if the user is locked, otherwise false
- Since:
- 12.27
 
- 
setLockedChange the locked flag. The change is applied after the Modifier.write()method is called.- Parameters:
- locked- the new locked flag
- Returns:
- the UserModifier
- Since:
- 12.27
 
- 
getSignatureString getSignature()Get the current signature which is held in thisUserModifier.- Returns:
- the signature as String
- Since:
- 12.27
 
- 
setSignatureChange the signature of the associated User.The change is applied after the Modifier.write()method is called.- Parameters:
- signature- the new signature as String
- Returns:
- the UserModifier
- Throws:
- ValidationException- if the new signature is invalid
- Since:
- 12.27
 
- 
validateSignatureValidate the given signature.- Parameters:
- signature- the signature to validate as String
- Returns:
- true if the signature is valid
- Throws:
- ValidationException- if the signature is invalid
- Since:
- 12.27
 
- 
getLanguageSkillsGet the current language skills which are held in thisUserModifier. Please note that only the language attribute of the givenLocaleis used.- Returns:
- the language skills as a Set of Locale
- Since:
- 12.27
 
- 
addLanguageSkillsAdd the passed language skills to the user. Please note that only the language attribute of the given Localeis used.The change is applied after the Modifier.write()method is called.- Parameters:
- languages- the language skills that should be added
- Returns:
- the UserModifier
- Throws:
- ValidationException- if a language is null or not valid
- Since:
- 12.27
 
- 
removeLanguageSkillsRemove the passed language skills of the user. Please note that only the language attribute of the given Localeis used.The change is applied after the Modifier.write()method is called.- Parameters:
- languages- the language skills that should be removed
- Returns:
- the UserModifier
- Throws:
- ValidationException- if a language is null or not valid
- Since:
- 12.27
 
- 
getRoutingTagsSet<RoutingTag> getRoutingTags()Get the current routing tags which are held in thisUserModifier.- Returns:
- the routing tags as a Set of RoutingTag
- Since:
- 12.27
 
- 
addRoutingTagsAdd the passed routing tags to the user. The change is applied after the Modifier.write()method is called.- Parameters:
- routingTags- the routing tags that should be added
- Returns:
- the UserModifier
- Throws:
- ValidationException- if a routing tag is null
- Since:
- 12.27
 
- 
removeRoutingTagsRemove the passed routing tags of the user. The change is applied after the Modifier.write()method is called.- Parameters:
- routingTags- the routing tags that should be removed
- Returns:
- the UserModifier
- Throws:
- ValidationException- if a routing tag is null
- Since:
- 12.27
 
 
-