public class User extends Identified
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
boolean |
getActive()
Gets whether this user is active or not, non-active users can not log in.
|
Date |
getCreatedAt()
Gets the date this user was created
|
Date |
getLastLogin()
Gets the date this user last logged in
|
String |
getName()
Gets the display name of this user.
|
String |
getUsername()
Gets the username of this user.
|
int |
getUtcOffset()
Gets the UTC Offset of this user
|
boolean |
isActive()
Checks whether this user is active or not, non-active users can not log in.
|
void |
setActive(boolean active)
Sets whether this user is active or not
|
void |
setCreatedAt(Date date)
Sets the created date of this user.
|
void |
setLastLogin(Date date)
Sets the last login date of this user.
|
void |
setName(String name)
Sets the display name of this user.
|
void |
setUsername(String username)
Sets the username of this user.
|
void |
setUtcOffset(int offset)
Sets the UTC Offset of this user.
|
public void setUsername(String username)
username
- of this userpublic String getUsername()
public void setName(String name)
name
- of this userpublic String getName()
public void setCreatedAt(Date date)
date
- this user was createdpublic Date getCreatedAt()
public void setLastLogin(Date date)
date
- this user last logged inpublic Date getLastLogin()
public void setActive(boolean active)
active
- whether this user is active or notpublic boolean getActive()
public boolean isActive()
public void setUtcOffset(int offset)
offset
- of this userpublic int getUtcOffset()
Copyright © 2016–2021. All rights reserved.