Class User
- java.lang.Object
-
- com.djrapitops.plan.delivery.domain.auth.User
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(User other)
boolean
doesPasswordMatch(java.lang.String password)
boolean
equals(java.lang.Object o)
java.lang.String
getLinkedTo()
java.util.UUID
getLinkedToUUID()
java.lang.String
getPasswordHash()
int
getPermissionLevel()
Deprecated.java.lang.String
getUsername()
int
hashCode()
void
setPermissionLevel(int permissionLevel)
Deprecated.java.lang.String
toString()
WebUser
toWebUser()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-