Hoist getUserName up onto CurrentUser

Since all users have a unique username on the server, this makes
it cleaner to determine who is who.

Change-Id: Ifc97f3c3a5b469182beb95fdc2689e226cc38181
This commit is contained in:
Shawn O. Pearce
2011-06-21 16:02:04 -07:00
parent e34f2ae31b
commit 2ad46e1816
2 changed files with 6 additions and 0 deletions

View File

@@ -68,6 +68,11 @@ public abstract class CurrentUser {
/** Filters selecting changes the user wants to monitor. */
public abstract Collection<AccountProjectWatch> getNotificationFilters();
/** Unique name of the user on this server, if one has been assigned. */
public String getUserName() {
return null;
}
/** Capabilities available to this user account. */
public CapabilityControl getCapabilities() {
CapabilityControl ctl = capabilities;