Class User

java.lang.Object
  extended byUser

public class User
extends Object

Model a Juno user. Each User has a login name, a home directory, and a real name.

Version:
7

Constructor Summary
User(String name, Directory home, String realName)
          Construct a new User.
 
Method Summary
 Directory getHome()
          Get the User's home Directory.
 String getName()
          Get the User's login name.
 String getRealName()
          Get the user's real name.
 String toString()
          Convert the User to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User(String name,
            Directory home,
            String realName)
Construct a new User.

Parameters:
name - the User's login name.
home - her home Directory.
realName - her real name.
Method Detail

getHome

public Directory getHome()
Get the User's home Directory.

Returns:
the home Directory.

getName

public String getName()
Get the User's login name.

Returns:
the name.

getRealName

public String getRealName()
Get the user's real name.

Returns:
the real name.

toString

public String toString()
Convert the User to a String. The String representation for a User is her login name.

Returns:
the User's name.