Class UserDataTemplate
java.lang.Object
com.aquima.interactions.test.templates.process.UserDataTemplate
- All Implemented Interfaces:
com.aquima.interactions.project.IUserData
,Serializable
Template class that may be used to initialize user data.
- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that creates a user with no roles user ID 'userId' and name 'userName'. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomProperty
(String key, String value) This method adds a role based on a role name.Adds the given roles to this user.This method adds a team based on a team name.Adds the given teams to this user.getAuthenticationClaim
(String name) getCustomProperty
(String name) String[]
String[]
getRoles()
String[]
getTeams()
boolean
hasCustomProperty
(String name) boolean
boolean
void
setAuthenticationClaim
(String name, List<String> values) void
This method sets the tenant.This method sets the user identifier.setUserName
(String userName) This method sets the user name.
-
Constructor Details
-
UserDataTemplate
public UserDataTemplate()Default constructor that creates a user with no roles user ID 'userId' and name 'userName'.
-
-
Method Details
-
setUserId
This method sets the user identifier.- Parameters:
userId
- The user identifier.
-
setUserName
This method sets the user name.- Parameters:
userName
- The user name.
-
setTenant
This method sets the tenant.- Parameters:
tenant
- The tenant.
-
addRole
This method adds a role based on a role name.- Parameters:
roleName
- The role name.
-
addRoles
Adds the given roles to this user.- Parameters:
roleNames
- the names of the roles- Returns:
- this object for method chaining
-
addTeam
This method adds a team based on a team name.- Parameters:
teamName
- The team name.
-
addTeams
Adds the given teams to this user.- Parameters:
teamNames
- the names of the teams- Returns:
- this object for method chaining
-
getRoles
- Specified by:
getRoles
in interfacecom.aquima.interactions.project.IUserData
-
getTeams
- Specified by:
getTeams
in interfacecom.aquima.interactions.project.IUserData
-
getTenant
- Specified by:
getTenant
in interfacecom.aquima.interactions.project.IUserData
-
addCustomProperty
- Specified by:
addCustomProperty
in interfacecom.aquima.interactions.project.IUserData
-
getCustomProperty
- Specified by:
getCustomProperty
in interfacecom.aquima.interactions.project.IUserData
-
hasCustomProperty
- Specified by:
hasCustomProperty
in interfacecom.aquima.interactions.project.IUserData
-
getCustomPropertyNames
- Specified by:
getCustomPropertyNames
in interfacecom.aquima.interactions.project.IUserData
-
setHeader
- Specified by:
setHeader
in interfacecom.aquima.interactions.project.IUserData
-
getHeader
- Specified by:
getHeader
in interfacecom.aquima.interactions.project.IUserData
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacecom.aquima.interactions.project.IUserData
-
setAuthenticationClaim
- Specified by:
setAuthenticationClaim
in interfacecom.aquima.interactions.project.IUserData
-
getAuthenticationClaim
- Specified by:
getAuthenticationClaim
in interfacecom.aquima.interactions.project.IUserData
-
getAuthenticationClaimNames
- Specified by:
getAuthenticationClaimNames
in interfacecom.aquima.interactions.project.IUserData
-
getUserId
- Specified by:
getUserId
in interfacecom.aquima.interactions.project.IUserData
-
getUserName
- Specified by:
getUserName
in interfacecom.aquima.interactions.project.IUserData
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfacecom.aquima.interactions.project.IUserData
-
isAutomatic
public boolean isAutomatic()- Specified by:
isAutomatic
in interfacecom.aquima.interactions.project.IUserData
-