public final class UserId extends TransferableObject implements java.lang.Comparable, EspritPermissionOwner
Constructor and Description |
---|
UserId(int uid,
java.lang.String userName,
boolean isAdmin,
boolean isLocked) |
UserId(java.lang.String userId,
java.lang.String userName,
boolean isAdmin,
boolean isLocked) |
UserId(User user) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj)
Compares users by uidKey
|
java.lang.String |
getPersistentName()
Returns the String value to be stored in the database or file.
|
java.awt.Color |
getRenderColor() |
javax.swing.Icon |
getRenderIcon() |
java.lang.String |
getRenderText() |
int |
getUID() |
java.lang.String |
getUserName() |
int |
hashCode() |
boolean |
isAdmin() |
boolean |
isLocked() |
static java.awt.Color |
renderColor(boolean isLocked) |
static javax.swing.Icon |
renderIcon(boolean isLocked,
boolean isAdmin) |
static java.lang.String |
renderText(java.lang.String text) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public UserId(User user)
public UserId(java.lang.String userId, java.lang.String userName, boolean isAdmin, boolean isLocked)
public UserId(int uid, java.lang.String userName, boolean isAdmin, boolean isLocked)
public int getUID()
public java.lang.String getUserName()
public java.lang.String getPersistentName()
PersistentName
getPersistentName
in interface PersistentName
public boolean isAdmin()
public boolean isLocked()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
public javax.swing.Icon getRenderIcon()
getRenderIcon
in interface Renderable
public java.awt.Color getRenderColor()
getRenderColor
in interface Renderable
public java.lang.String getRenderText()
getRenderText
in interface Renderable
public static java.lang.String renderText(java.lang.String text)
public static java.awt.Color renderColor(boolean isLocked)
public static javax.swing.Icon renderIcon(boolean isLocked, boolean isAdmin)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.