getEmail
public java.lang.String getEmail()
- Accessor.
-
-
- Returns:
- Returns the email.
getId
public java.util.UUID getId()
- Accessor.
-
-
- Returns:
- Returns the id.
getUsername
public ccc.types.Username getUsername()
- Accessor.
-
-
- Returns:
- Returns the username.
getName
public java.lang.String getName()
- Accessor.
-
-
- Returns:
- Returns the name.
getRoles
public java.util.Set<java.util.UUID> getRoles()
- Accessor.
-
-
- Returns:
- Returns the roles.
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Accessor.
-
-
- Returns:
- Returns the metadata.
setMetadata
public UserDto setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
- Mutator.
-
-
- Parameters:
metadata
- The metadata to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
setEmail
public UserDto setEmail(java.lang.String email)
- Mutator.
-
-
- Parameters:
email
- The email to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
setId
public UserDto setId(java.util.UUID id)
- Mutator.
-
-
- Parameters:
id
- The id to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
setUsername
public UserDto setUsername(ccc.types.Username username)
- Mutator.
-
-
- Parameters:
username
- The username to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
setName
public UserDto setName(java.lang.String name)
- Mutator.
-
-
- Parameters:
name
- The name to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
setRoles
public UserDto setRoles(java.util.Set<java.util.UUID> roles)
- Mutator.
-
-
- Parameters:
roles
- The roles to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
getPassword
public java.lang.String getPassword()
- Accessor.
-
-
- Returns:
- Returns the password.
setPassword
public UserDto setPassword(java.lang.String password)
- Mutator.
-
-
- Parameters:
password
- The password to set.
- Returns:
- Returns 'this' reference, to allow method chaining.
getPermissions
public java.util.Set<java.lang.String> getPermissions()
- Accessor.
-
-
- Returns:
- Returns the permissions.
setPermissions
public void setPermissions(java.util.Collection<java.lang.String> permissions)
- Mutator.
-
-
- Parameters:
permissions
- The permissions to set.
hasPermission
public boolean hasPermission(java.lang.String perm)
- Helper method to check if the user has a specified permission.
-
-
- Parameters:
perm
- The permission to be checked.
- Returns:
- True if the user has the permission.
toJson
public void toJson(ccc.serialization.Json json)
-
-
- Specified by:
toJson
in interface ccc.serialization.Jsonable