public interface ApplicationUser extends Person, Principal
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SLUG_LENGTH
The maximum length of a user slug
|
static String |
SLUG_REGEXP
The regex for user slugs
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ApplicationUserVisitor<T> visitor) |
String |
getDisplayName() |
int |
getId() |
String |
getSlug()
Retrieves the "slug" for this user, which is a URL-friendly variant of its
name . |
UserType |
getType() |
boolean |
isActive() |
getEmailAddress, getName
static final int MAX_SLUG_LENGTH
static final String SLUG_REGEXP
<T> T accept(@Nonnull ApplicationUserVisitor<T> visitor)
@Nonnull @RequiredString(size=255) String getDisplayName()
int getId()
boolean isActive()
true
if the user is enabled, false
for deleted and disabled users.@Nonnull @RequiredString(size=127, regexp="[^\\\\/]+") String getSlug()
name
. Each
user's slug is guaranteed to be unique within the system.
Although URL-friendly, appropriate encoding should still be performed on this slug whenever it is used in a URL.
Copyright © 2020 Atlassian. All rights reserved.