|
Oracle Collaboration Suite Discussions Java API Reference 10g (10.1.1) Part No. B16232-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.discussions.sdk.TdAnnotation
Represents any operations that are performed on the threads/messages in oracle discussions. Holds the user performing the operation, operation begin performed, date on which the operation is being performed, and other arguments.
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 TdAnnotation
//Code snippet below illustrated the thread moving from one board to another. TdThread newThread = tdbTo.getThread(getOracleThreadId()); // add annotation for the move MessageUtils.addAnnotation(newThread, TdAnnotation.createInstance(new java.util.Date(), _tdsession.getTdUser(), TdOperation.TD_MOVE_MESSAGE, _tdb.getFullPath() + " " + tdbTo.getFullPath()));
TdMessage.java
Method Summary | |
static TdAnnotation |
createInstance(java.util.Date dte, TdUser tdUser, oracle.discussions.sdk.impl.TdOperation tdOp, java.lang.String args) Creates an instance of TdAnnotation, taking in date, td user, operation and args. |
java.lang.String |
getArguments() Returns the arguments of the annotation. |
oracle.discussions.sdk.impl.TdOperation |
getTdOperation() Returns the operation of the annotation |
TdUser |
getTdUser() Returns the user in the annotation |
java.util.Date |
getTime() Returns the date in the annotation |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TdAnnotation createInstance(java.util.Date dte, TdUser tdUser, oracle.discussions.sdk.impl.TdOperation tdOp, java.lang.String args)
tdUser
- the user who is working on the messagetdOp
- oracle discussions operation which is annotated.args
- argumentspublic java.util.Date getTime()
public TdUser getTdUser()
public oracle.discussions.sdk.impl.TdOperation getTdOperation()
public java.lang.String getArguments()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |