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

Part No. B16232-01


oracle.discussions.sdk
Interface TdLastPost


public interface TdLastPost

Represents the most recently posted message in the oracle discussions application.

Last post is decided across all the users who are using the discussions instance.
Useful in quickly accessing the most recent information posted to the discussions.

Oracle discussions elements names have been changed in the webui compared to that of sdk portion. The existing names to the new names mapping is as shown.

Sample code snippet illustrating the usage of TdLastPost

  //tdc is an instance of the TdContainer
  //Retrieve the last post object from the tdcontainer
  TdLastPost tdlpi = tdc.getLastPost();
  //Retrieve various fields from the tdlastpost object
   if (tdlpi != null)
     {
      InternetAddress from = (InternetAddress) tdlpi.getLastPostAuthor();
      if (from != null)
      {
        rsschnl.setLastPostAuthor(from.getPersonal());
      }
   rsschnl.setPubDate(tdlpi.getLastPostDate());
   rsschnl.setLastPostDate(tdlpi.getLastPostDate());
 
Since:
OCS 10.1.1
See Also:
TdMessage.java

Method Summary
javax.mail.Address getLastPostAuthor()
Returns the address of the author of the last post
long getLastPostBoardId()
Returns the id of the board where the last message was posted.
java.util.Date getLastPostDate()
Returns the date when the last post occured
int getLastPostMessageId()
Returns the id of the last posted message.
int getLastPostThreadId()
Returns the id of the thread where the last message was posted.

Method Detail

getLastPostDate

public java.util.Date getLastPostDate()
Returns the date when the last post occured
Returns:
Date

getLastPostAuthor

public javax.mail.Address getLastPostAuthor()
Returns the address of the author of the last post
Returns:
Address

getLastPostBoardId

public long getLastPostBoardId()
Returns the id of the board where the last message was posted. This applies for the last post information for a facility or a store.
Returns:
long

getLastPostThreadId

public int getLastPostThreadId()
Returns the id of the thread where the last message was posted.
Returns:
int

getLastPostMessageId

public int getLastPostMessageId()
Returns the id of the last posted message.

Copyright © 2005, Oracle. All rights reserved.