|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.org.WTPrincipal
wt.org.WTUser
public class WTUser
The WTUser class represents users of the system. It holds information about the user and the groups to which he or she belongs.
Use the newWTUser static factory method(s), not the WTUser
constructor, to construct instances of this class. Instances must be
constructed using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
String |
getBusinessType()
Returns string representing WTUser'sd business type. |
String |
getEMail()
Return the user's e-mail address. |
Locale |
getLocale()
Return the user's locale. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(String name)
Supports initialization, following construction of an instance. |
protected void |
initialize(String name,
DirectoryContextProvider context)
Supports initialization, following construction of an instance. |
protected void |
initialize(String name,
String dn)
Supports initialization, following construction of an instance. |
protected void |
initialize(String name,
String dn,
String service)
Supports initialization, following construction of an instance. |
static WTUser |
newWTUser(String name)
Constructor: takes the user's name as sole parameter. |
static WTUser |
newWTUser(String name,
DirectoryContextProvider context)
Constructor: Constructs an instance with a specific name and organization. |
static WTUser |
newWTUser(String name,
String dn)
Supported API: true |
static WTUser |
newWTUser(String name,
String dn,
String service)
Constructor: Constructs an instance with a specific name, LDAP distinguished name, and LDAP service. |
Enumeration |
parentGroupNames()
Returns an enumeration containing the names of the groups to which the user belongs. |
Enumeration |
parentGroupObjects()
Returns all the parent groups to which the user belongs. |
Enumeration |
parentGroups()
Returns the groups to which the user belongs. |
void |
setDisabled(boolean disabled)
Supported API: true |
void |
setLocale(Locale locale)
Set the user's locale. |
String |
toString()
Returns a string representation of the user object. |
| Methods inherited from class wt.org.WTPrincipal |
|---|
getPrincipalDisplayIdentifier |
| Methods inherited from class wt.fc.WTObject |
|---|
getDisplayIdentifier, getDisplayIdentity, getDisplayType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static WTUser newWTUser(String name)
throws WTException
name -
WTExceptionStandardAttributeHolder
protected void initialize(String name)
throws WTException
name -
WTException
public static WTUser newWTUser(String name,
String dn)
throws WTException
name - dn -
WTException
protected void initialize(String name,
String dn)
throws WTException
name - dn -
WTException
public static WTUser newWTUser(String name,
String dn,
String service)
throws WTException
name - dn - service -
WTException
protected void initialize(String name,
String dn,
String service)
throws WTException
name - dn - service -
WTException
public static WTUser newWTUser(String name,
DirectoryContextProvider context)
throws WTException
name - context -
WTException
protected void initialize(String name,
DirectoryContextProvider context)
throws WTException
name - context -
WTExceptionpublic String getBusinessType()
public void setDisabled(boolean disabled)
throws WTException,
WTPropertyVetoException
disabled -
WTException
WTPropertyVetoException
public String getEMail()
throws WTException
WTException
public Locale getLocale()
throws WTException
WTException
public void setLocale(Locale locale)
throws WTException
locale -
WTException
public Enumeration parentGroups()
throws WTException
WTException
public Enumeration parentGroupNames()
throws WTException
WTException
public Enumeration parentGroupObjects()
throws WTException
WTExceptionpublic String toString()
toString in interface Principal
protected void initialize()
throws WTException
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||