Class User

java.lang.Object
com.structurizr.configuration.User

public final class User
extends java.lang.Object
Represents a user, and the role-based access they have to a workspace.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    Role getRole()
    Gets the role.
    java.lang.String getUsername()
    Gets the username (e.g.
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getUsername

      public java.lang.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​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object