Class User

  • All Implemented Interfaces:
    java.lang.Comparable<User>

    public class User
    extends java.lang.Object
    implements java.lang.Comparable<User>
    Represents a registered user in the database.
    • Constructor Detail

      • User

        public User​(java.lang.String username,
                    java.lang.String linkedTo,
                    java.util.UUID linkedToUUID,
                    java.lang.String passwordHash,
                    int permissionLevel,
                    java.util.Collection<java.lang.String> permissions)
    • Method Detail

      • doesPasswordMatch

        public boolean doesPasswordMatch​(java.lang.String password)
      • toWebUser

        public WebUser toWebUser()
      • getUsername

        public java.lang.String getUsername()
      • getLinkedTo

        public java.lang.String getLinkedTo()
      • getLinkedToUUID

        public java.util.UUID getLinkedToUUID()
      • getPasswordHash

        public java.lang.String getPasswordHash()
      • getPermissionLevel

        @Deprecated
        public int getPermissionLevel()
        Deprecated.
      • setPermissionLevel

        @Deprecated
        public void setPermissionLevel​(int permissionLevel)
        Deprecated.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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
      • compareTo

        public int compareTo​(User other)
        Specified by:
        compareTo in interface java.lang.Comparable<User>