Class User

java.lang.Object
com.structurizr.configuration.User
All Implemented Interfaces:
Comparable<User>

public final class User extends Object implements Comparable<User>
Represents a user, and the role-based access they have to a workspace.
  • Constructor Details

  • Method Details

    • getUsername

      public String getUsername()
      Gets the username (e.g. e-mail address).
      Returns:
      the username, as a String
    • getRole

      public Role getRole()
      Gets the role.
      Returns:
      a Role enum
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(User user)
      Specified by:
      compareTo in interface Comparable<User>