Class UserAndMetadata
java.lang.Object
com.couchbase.client.java.manager.user.UserAndMetadata
@Volatile public class UserAndMetadata extends Object
-
Constructor Summary
Constructors Constructor Description UserAndMetadata(AuthDomain domain, String username, String displayName, Collection<RoleAndOrigins> effectiveRoles, Collection<String> groups, Collection<String> externalGroups, String passwordChanged) -
Method Summary
Modifier and Type Method Description AuthDomaindomain()Set<Role>effectiveRoles()Returns all of the user's roles, including roles inherited from groups.List<RoleAndOrigins>effectiveRolesAndOrigins()Returns all of the user's roles plus information about whether each role is assigned specifically to the user or inherited from a group, and if so which group.Set<String>externalGroups()Set<Role>innateRoles()Returns the roles assigned specifically to the user.Optional<Instant>passwordChanged()Returns the time the user's password was last set, if known.StringtoString()Useruser()Returns a new mutableUserwith initial values matching the data in thisUserAndMetadata.
-
Constructor Details
-
UserAndMetadata
public UserAndMetadata(AuthDomain domain, String username, String displayName, Collection<RoleAndOrigins> effectiveRoles, Collection<String> groups, Collection<String> externalGroups, String passwordChanged)
-
-
Method Details
-
domain
-
user
Returns a new mutableUserwith initial values matching the data in thisUserAndMetadata. -
innateRoles
Returns the roles assigned specifically to the user. Excludes roles that are only inherited from groups. -
effectiveRoles
Returns all of the user's roles, including roles inherited from groups. -
effectiveRolesAndOrigins
Returns all of the user's roles plus information about whether each role is assigned specifically to the user or inherited from a group, and if so which group. -
externalGroups
-
passwordChanged
Returns the time the user's password was last set, if known. -
toString
-