Package com.aquima.interactions.process
Class AutomaticUser
java.lang.Object
com.aquima.interactions.process.AutomaticUser
- All Implemented Interfaces:
IUserData
,Serializable
This class defines the automatic user.
- Since:
- 7.1
- Author:
- J. van Leuven
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomProperty
(String key, String value) This method puts a key with its value in the custom properties map If the key-value combination already exists an exception will be throwngetAuthenticationClaim
(String name) Returns the values of an authentication claimReturns the names of all stored authentication claimsgetCustomProperty
(String name) This methods returns the value of a key, if available, otherwise returns nullString[]
This method returns a string array containing custom properties namesReturns the values of a headerReturns the names of all stored headersString[]
getRoles()
This method returns an array containing the names of the roles of the user.String[]
getTeams()
This method returns an array containing the names of the teams of the user.This method returns the name of the tenant.This method returns an ID that uniquely identifies the user.This method returns the name of the user this object represents.boolean
hasCustomProperty
(String name) This method returns true if the key is availableboolean
boolean
void
setAuthenticationClaim
(String name, List<String> values) Stores the values for an authentication claimvoid
Stores the values for a header
-
Constructor Details
-
AutomaticUser
public AutomaticUser() -
AutomaticUser
-
AutomaticUser
-
-
Method Details
-
getRoles
Description copied from interface:IUserData
This method returns an array containing the names of the roles of the user. -
getTeams
Description copied from interface:IUserData
This method returns an array containing the names of the teams of the user. -
getTenant
Description copied from interface:IUserData
This method returns the name of the tenant. -
addCustomProperty
Description copied from interface:IUserData
This method puts a key with its value in the custom properties map If the key-value combination already exists an exception will be thrown- Specified by:
addCustomProperty
in interfaceIUserData
- Parameters:
key
- The name of the custom propertyvalue
- The value of the custom property
-
getCustomProperty
Description copied from interface:IUserData
This methods returns the value of a key, if available, otherwise returns null- Specified by:
getCustomProperty
in interfaceIUserData
- Parameters:
name
- The name of the custom property- Returns:
- the value of a key
-
hasCustomProperty
Description copied from interface:IUserData
This method returns true if the key is available- Specified by:
hasCustomProperty
in interfaceIUserData
- Parameters:
name
- The name of the custom property- Returns:
- true if present, otherwise false
-
getCustomPropertyNames
Description copied from interface:IUserData
This method returns a string array containing custom properties names- Specified by:
getCustomPropertyNames
in interfaceIUserData
- Returns:
- the map containing custom properties
-
setHeader
Description copied from interface:IUserData
Stores the values for a header -
getHeader
Description copied from interface:IUserData
Returns the values of a header -
getHeaderNames
Description copied from interface:IUserData
Returns the names of all stored headers- Specified by:
getHeaderNames
in interfaceIUserData
- Returns:
- list of header names
-
setAuthenticationClaim
Description copied from interface:IUserData
Stores the values for an authentication claim- Specified by:
setAuthenticationClaim
in interfaceIUserData
- Parameters:
name
- The name of the authentication claimvalues
- The values for the authentication claim
-
getAuthenticationClaim
Description copied from interface:IUserData
Returns the values of an authentication claim- Specified by:
getAuthenticationClaim
in interfaceIUserData
- Parameters:
name
- The name of the authentication claim- Returns:
- the values of the authentication claim
-
getAuthenticationClaimNames
Description copied from interface:IUserData
Returns the names of all stored authentication claims- Specified by:
getAuthenticationClaimNames
in interfaceIUserData
- Returns:
- set of authentication claim names
-
getUserId
Description copied from interface:IUserData
This method returns an ID that uniquely identifies the user. This ID will for instance be used when locking a case to indicate which user performed the lock. -
getUserName
Description copied from interface:IUserData
This method returns the name of the user this object represents. The name of the user is mainly used for display purposes. Use the user-ID to uniquely identify the user.- Specified by:
getUserName
in interfaceIUserData
- Returns:
- the name of the user this object represents.
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfaceIUserData
- Returns:
- true if this user represents the anonymous user
-
isAutomatic
public boolean isAutomatic()- Specified by:
isAutomatic
in interfaceIUserData
- Returns:
- true if this user represents the automatic user (Runtime Service Account)
-