Oracle® Collaboration Suite Workspaces API Reference
10g (10.1.1.0.2)

Part No. B16233-01


oracle.workspaces.authorization
Class CwUser

java.lang.Object
  extended byCwAbstractIdentity
      extended byoracle.workspaces.authorization.CwUser

Direct Known Subclasses:
CwExternalUser

public class CwUser
extends CwAbstractIdentity

This class represents a regular OID user which can be added to workspace(s). It is workspace independent. To add it into a workspace, a CwMemberable has to be created from it. After being added to a workspace, a CwMember is created, from which this user can be retrieved.

See Also:
Serialized Form

Method Summary
boolean equals(java.lang.Object obj)
CwApplicationRole[] getApplicationRoles()
java.lang.String getCredential()
Return user's credential.
java.lang.String getDisplayName()
If displayName is null, returns email address if display name is null
java.lang.String getEmailAddress()
Return the email address for this user
int getGranteeType()
Get the type of the grantee.
java.lang.String getNickname()
Returns user's nickname.
CwUserProperties getProperties()
Get the user properties for this user.
int getType()
int hashCode()
boolean isDeleted()
java.lang.String toString()

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Method Detail

equals

public boolean equals(java.lang.Object obj)

getApplicationRoles

public CwApplicationRole[] getApplicationRoles()
                                        throws CwException
Throws:
CwException

getCredential

public java.lang.String getCredential()
Return user's credential. In the web-based client, this method returns null. But later when we expose the workspace to other clients, we may need the credential to do the authentication.
Returns:
user's credential

getDisplayName

public java.lang.String getDisplayName()
If displayName is null, returns email address if display name is null

getEmailAddress

public java.lang.String getEmailAddress()
Return the email address for this user
Returns:
null if user's email address is not specified

getGranteeType

public int getGranteeType()
Get the type of the grantee.
Returns:
the type of the grantee.

getNickname

public java.lang.String getNickname()
Returns user's nickname.
Returns:
null if not set or oid lookup failed.

getProperties

public CwUserProperties getProperties()
Get the user properties for this user. The properties include timezone preference and other properties in user profile.
Returns:
the user properties object
Throws:
CwException - when lookup of user profile in ldap repository fails

getType

public int getType()

hashCode

public int hashCode()

isDeleted

public boolean isDeleted()

toString

public java.lang.String toString()

Copyright © 2001, 2005, Oracle. All rights reserved.