Interface ApplicationUser

All Superinterfaces:
Person, Principal
All Known Subinterfaces:
DetailedUser, ServiceUser

public interface ApplicationUser extends Person, Principal
Represents a registered application user.
  • Field Details

  • Method Details

    • accept

      <T> T accept(@Nonnull ApplicationUserVisitor<T> visitor)
    • getDisplayName

      @Nonnull @RequiredString(size=255) String getDisplayName()
      Returns:
      the user's display name
    • getId

      int getId()
      Returns:
      the user id
    • getType

      @Nonnull UserType getType()
      Returns:
      the type of user
    • isActive

      boolean isActive()
      Returns:
      true if the user is enabled, false for deleted and disabled users.
    • getSlug

      @Nonnull @RequiredString(size=127, regexp="[^\\\\/]+") String getSlug()
      Retrieves the "slug" for this user, which is a URL-friendly variant of its 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.

      Returns:
      the user's slug