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, deepCloneconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringpublic 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()
PersistentNamegetPersistentName in interface PersistentNamepublic boolean isAdmin()
public boolean isLocked()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic ToString toString(ToString s)
DumpabletoString in interface DumpabletoString in class DumpableObjectpublic DumpString toDumpString(DumpString s)
DumpabletoDumpString in interface DumpabletoDumpString in class DumpableObjectpublic javax.swing.Icon getRenderIcon()
getRenderIcon in interface Renderablepublic java.awt.Color getRenderColor()
getRenderColor in interface Renderablepublic java.lang.String getRenderText()
getRenderText in interface Renderablepublic 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.