Class AnonymousUser
java.lang.Object
com.aquima.interactions.portal.model.session.UserData
com.aquima.interactions.portal.model.session.AnonymousUser
- All Implemented Interfaces:
IUserData
,Serializable
An anonymous user contains no username, "anonymous" user id.
- Since:
- 7.1
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an anonymous user without roles.AnonymousUser
(IUserData other) AnonymousUser
(String[] roles) Construct an anonymous user with roles.AnonymousUser
(String[] roles, String tenant) Construct an anonymous user with roles.AnonymousUser
(String[] roles, String[] teams) Construct an anonymous user with roles.AnonymousUser
(String[] roles, String[] teams, String username) Construct an anonymous user with roles and usernameAnonymousUser
(String[] roles, String[] teams, String username, String tenant) Construct an anonymous user with roles and usernameAnonymousUser
(String[] roles, String[] teams, String username, String tenant, Map<String, String> customProperties) -
Method Summary
Methods inherited from class com.aquima.interactions.portal.model.session.UserData
addCustomProperty, getAuthenticationClaim, getAuthenticationClaimNames, getCustomProperty, getCustomPropertyNames, getHeader, getHeaderNames, getRoles, getTeams, getTenant, getUserId, getUserName, hasCustomProperty, isAutomatic, setAuthenticationClaim, setHeader, toString
-
Constructor Details
-
AnonymousUser
Construct an anonymous user with roles.- Parameters:
roles
- The roles for the anonymous user
-
AnonymousUser
Construct an anonymous user with roles.- Parameters:
roles
- The roles for the anonymous user
-
AnonymousUser
Construct an anonymous user with roles.- Parameters:
roles
- The roles for the anonymous userteams
- The teams for the anonymous user
-
AnonymousUser
public AnonymousUser()Construct an anonymous user without roles. -
AnonymousUser
Construct an anonymous user with roles and username- Parameters:
roles
- The roles for the anonymous userteams
- The teams for the anonymous userusername
- The username for the anonymous user
-
AnonymousUser
Construct an anonymous user with roles and username- Parameters:
roles
- The roles for the anonymous userteams
- The teams for the anonymous userusername
- The username for the anonymous usertenant
- The tenant for the anonymous user
-
AnonymousUser
-
AnonymousUser
-
-
Method Details
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfaceIUserData
- Overrides:
isAnonymous
in classUserData
- Returns:
- true if this user represents the anonymous user
-