org.esupportail.portal.channels.CWebdav.userManagement
Class User

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.userManagement.User

public class User
extends java.lang.Object

Id: User.java,v 1.0 7 oct. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: User Original Author: Yohan Colmant Represents a user for the management


Field Summary
private  java.lang.String displayName
          The displayed user name
private  java.lang.String key
          The key
protected static org.apache.commons.logging.Log log
          Logger object
 
Constructor Summary
User(org.esupportail.portal.channels.CAnnuaire.Personne pers)
          Constructor
User(java.lang.String key, ChannelConfiguration config)
          Constructor
User(java.lang.String key, java.lang.String displayName)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
          Check if this user equals the object given in parameter
 java.lang.String getDisplayName()
          Get this user's display name
 java.lang.String getKey()
          Get the key
private  java.lang.String getUserName(java.lang.String key, ChannelConfiguration config)
          Return the user name from a given key
 void setDisplayName(java.lang.String displayName)
          Set the display name
 java.lang.String toString()
          Return a String from this user
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Logger object


displayName

private java.lang.String displayName
The displayed user name


key

private java.lang.String key
The key

Constructor Detail

User

public User(java.lang.String key,
            java.lang.String displayName)
Constructor

Parameters:
key - The key
displayName - The displayed user name

User

public User(java.lang.String key,
            ChannelConfiguration config)
Constructor

Parameters:
key - The key
config - the access file config

User

public User(org.esupportail.portal.channels.CAnnuaire.Personne pers)
Constructor

Parameters:
pers - The retrieved people
Method Detail

getUserName

private java.lang.String getUserName(java.lang.String key,
                                     ChannelConfiguration config)
Return the user name from a given key

Parameters:
key - the user key
config - the access file config
Returns:
the user name from a given key

getDisplayName

public java.lang.String getDisplayName()
Get this user's display name

Returns:
Returns the displayName.

setDisplayName

public void setDisplayName(java.lang.String displayName)
Set the display name

Parameters:
displayName - The displayName to set.

getKey

public java.lang.String getKey()
Get the key

Returns:
Returns the key.

equals

public boolean equals(java.lang.Object o)
Check if this user equals the object given in parameter

Parameters:
o - the object to compare
Returns:
true if equals, false else

toString

public java.lang.String toString()
Return a String from this user

Returns:
a String from this user