Package org.apache.nlpcraft.model
Interface NCUser
-
- All Superinterfaces:
NCMetadata
public interface NCUser extends NCMetadata
Descriptor of the user. Returned fromNCRequest.getUser()
method.- See Also:
NCRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
getAvatarUrl()
Gets optional user avatar URL (data:
orhttp:
scheme URLs).Optional<String>
getEmail()
Gets email of the user.Optional<String>
getFirstName()
Gets first name of the user.long
getId()
Gets ID of this user.Optional<String>
getLastName()
Gets last name of the user.long
getSignupTimestamp()
Gets signup timestamp of the user.boolean
isAdmin()
Tests whether or not the user has administrative privileges.-
Methods inherited from interface org.apache.nlpcraft.model.NCMetadata
getMetadata, meta, meta, metaOpt, metax
-
-
-
-
Method Detail
-
getId
long getId()
Gets ID of this user.- Returns:
- User ID.
-
getFirstName
Optional<String> getFirstName()
Gets first name of the user.- Returns:
- First name of the user.
-
getLastName
Optional<String> getLastName()
Gets last name of the user.- Returns:
- Last name of the user.
-
getAvatarUrl
Optional<String> getAvatarUrl()
Gets optional user avatar URL (data:
orhttp:
scheme URLs).- Returns:
- User avatar URL (
data:
orhttp:
scheme URLs).
-
isAdmin
boolean isAdmin()
Tests whether or not the user has administrative privileges.- Returns:
- Whether or not the user has administrative privileges.
-
getSignupTimestamp
long getSignupTimestamp()
Gets signup timestamp of the user.- Returns:
- Signup timestamp of the user.
-
-