All Known Implementing Classes:
UserModel

public interface IUser
  • Method Details

    • getUsername

      String getUsername()
    • attributeAsList

      List<String> attributeAsList(String key)
    • attribute

      Optional<String> attribute(String key)
    • bizLocations

      default List<String> bizLocations()
      Get the user's business location IDs that were populated using BizLocationAuthExtension extension.
    • hasBizLocation

      default boolean hasBizLocation(com.persequor.event.ElementUri locationId)
      Check if the user has access to a specific business location.
    • bizSteps

      default List<String> bizSteps()
      Get the user's business step IDs that were populated using BizStepAuthExtension extension.
    • hasBizStep

      default boolean hasBizStep(com.persequor.event.ElementUri stepId)
      Check if the user has access to a specific business step.
    • roles

      default Set<String> roles()
      Get the user's roles.
    • isAdmin

      default boolean isAdmin()
      Check if the user is an admin, meaning that it has the User.Role.ROLE_ADMIN role.