Class UserAndMetadata
java.lang.Object
com.couchbase.client.java.manager.user.UserAndMetadata
-
Constructor Summary
ConstructorDescriptionUserAndMetadata
(AuthDomain domain, String username, String displayName, Collection<RoleAndOrigins> effectiveRoles, Collection<String> groups, Collection<String> externalGroups, String passwordChanged) -
Method Summary
Modifier and TypeMethodDescriptiondomain()
Returns all of the user's roles, including roles inherited from groups.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.Returns the roles assigned specifically to the user.Returns the time the user's password was last set, if known.toString()
user()
Returns a new mutableUser
with 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 mutableUser
with 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
-