case class User(username: String, displayName: String = "", groups: Seq[String] = Seq(), _roles: Seq[Role] = Seq(), password: Option[String] = None) extends Product with Serializable
Models a Couchbase user.
- username
the user's username
- displayName
the user's display name
- groups
any groups that the user belongs to
- _roles
any roles directly assigned to the user (not those inherited through groups)
- Annotations
- @Volatile()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- User
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
User(username: String, displayName: String = "", groups: Seq[String] = Seq(), _roles: Seq[Role] = Seq(), password: Option[String] = None)
- username
the user's username
- displayName
the user's display name
- groups
any groups that the user belongs to
- _roles
any roles directly assigned to the user (not those inherited through groups)
Value Members
-
def
displayName(displayName: String): User
Creates a copy of this User with the new display name.
- val displayName: String
-
def
groups(groups: String*): User
Creates a copy of this User with the new groups.
- val groups: Seq[String]
-
def
password(password: String): User
Creates a copy of this User with the new password.
- def roles: Seq[Role]
-
def
roles(newRoles: Role*): User
Creates a copy of this User with the new roles.
-
def
username(username: String): User
Creates a copy of this User with the new username.
- val username: String