Oracle Collaboration Suite Discussions Java API Reference
10g (10.1.1)

Part No. B16232-01


oracle.discussions.sdk
Interface TdUserProfile


public interface TdUserProfile

Provides accessors for accessing the profile information of a Threaded Discussions user. This includes personal user information (address, phone number, picture, ...) and basic statistics on its oracle discussions usage in this store.

Sample code snippet illustrating the usage of TdUserProfile

  //Extract the user timezone information from the user profile.
  TimeZone tz = null;
  TdUserProfile tdup = tdStore.getTdUserProfile();
  tz = tdup.getTimeZone();
 
Since:
OCS 10.1.1
See Also:
TdUserProfileManager.java, TdUser.java, oracle.mail.sdk.esmail.OracleUserConnectInfo.java

Method Summary
java.lang.String getBusinessCity()
Returns oracle discussions user's city name.
java.lang.String getBusinessState()
Returns oracle discussions user's state name.
java.lang.String getClientChatUri()
Returns users chat uri.
java.lang.String getDisplayName()
Returns oracle discussions user's displayname.
java.lang.String getDisplayName(java.util.Locale loc)
Returns oracle discussions user's displayname.
java.lang.String getEmail()
Returns oracle discussions user's email address.
java.util.Date getLastLogin()
Returns the last login time of the user.
java.util.Date getLastLogout()
Returns the last logout time of the user.
java.util.Locale getLocale()
Returns oracle discussions user's locale
java.util.Date getMemberSince()
Returns the date from which the user is oracle discussions member.
java.lang.String getName()
Returns oracle discussions user's name.
int getNumberPosts()
Returns the number of messages/threads/replies posted by this user.
byte[] getPhoto()
Returns oracle discussions user's photo.
java.lang.String getPresenceImgUrl()
Returns user's rtc url.
java.lang.String getPresenceJsUrl()
Returns user's rtc java script url.
java.util.TimeZone getTimeZone()
Returns oracle discussions user's timezone.
java.lang.String getUserId()
Returns oracle discussions user's id.
java.lang.String getViewProfileUrl(java.lang.String doneUrl, java.lang.String homeUrl)
Returns the user's profile url.
boolean hasAddPostedThreadsToFavorites()
Returns if the user has added his posted threads to his favorites.
boolean hasAddRepliedThreadsToFavorites()
Returns if the user has added the threads to which he has replied to his favorites.

Method Detail

getName

public java.lang.String getName()
Returns oracle discussions user's name. Returns cached data if available otherwise it fetches from the GeneralInfo.
Returns:
String the username.

getDisplayName

public java.lang.String getDisplayName()
Returns oracle discussions user's displayname. If the display name field is missing, try to build it from first name, last name and middle name initial; If still missing, return name.
Returns:
String display name.

getDisplayName

public java.lang.String getDisplayName(java.util.Locale loc)
Returns oracle discussions user's displayname. If the display name field is missing, try to build it from first name, last name and middle name initial; If still missing, return name.
Returns:
String display name.

getUserId

public java.lang.String getUserId()
Returns oracle discussions user's id. Returns cached data if available otherwise it fetches from the GeneralInfo.
Returns:
String the userid.

getEmail

public java.lang.String getEmail()
Returns oracle discussions user's email address.
Returns:
String user emailid.

getBusinessCity

public java.lang.String getBusinessCity()
Returns oracle discussions user's city name. Returns cached data if available otherwise it fetches from the GeneralInfo.
Returns:
String user city name.

getBusinessState

public java.lang.String getBusinessState()
Returns oracle discussions user's state name. Returns cached data if available otherwise it fetches from the GeneralInfo.
Returns:
String user's state.

getPhoto

public byte[] getPhoto()
Returns oracle discussions user's photo. The photo is returned in the form of a byte stream. Returns cached data if available otherwise it fetches from the GeneralInfo.
Returns:
byte[] an array representing user's image.

getTimeZone

public java.util.TimeZone getTimeZone()
Returns oracle discussions user's timezone.
Returns:
TimeZone timezone of the user.

getLocale

public java.util.Locale getLocale()
Returns oracle discussions user's locale
Returns:
Locale locale of the user

getMemberSince

public java.util.Date getMemberSince()
Returns the date from which the user is oracle discussions member.
Returns:
Date date object representing the date from which the user is a discussions member.

getLastLogin

public java.util.Date getLastLogin()
Returns the last login time of the user.
Returns:
Date date object representing last login time.

getLastLogout

public java.util.Date getLastLogout()
Returns the last logout time of the user.
Returns:
Date date object representing last logout time.

getNumberPosts

public int getNumberPosts()
Returns the number of messages/threads/replies posted by this user.
Returns:
int integer representing number of posts from this user.

hasAddPostedThreadsToFavorites

public boolean hasAddPostedThreadsToFavorites()
Returns if the user has added his posted threads to his favorites.
Returns:
boolean

hasAddRepliedThreadsToFavorites

public boolean hasAddRepliedThreadsToFavorites()
Returns if the user has added the threads to which he has replied to his favorites.
Returns:
boolean

getViewProfileUrl

public java.lang.String getViewProfileUrl(java.lang.String doneUrl,
                                          java.lang.String homeUrl)
Returns the user's profile url. The url can be user to access the homepage of the user.
Parameters:
doneUrl - User's webpage url
homeUrl - User's homepage url
Returns:
String representing user's url.

getPresenceImgUrl

public java.lang.String getPresenceImgUrl()
Returns user's rtc url.
Returns:
String representing the rtc url.

getPresenceJsUrl

public java.lang.String getPresenceJsUrl()
Returns user's rtc java script url.
Returns:
String representing java script url.

getClientChatUri

public java.lang.String getClientChatUri()
Returns users chat uri.
Returns:
String representing user's chat uri.

Copyright © 2005, Oracle. All rights reserved.