|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.discussions.sdk.TdPermissions | +--oracle.discussions.sdk.TdMessagePermissions
Represents the operations that a user can perform on a particular message.
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 TdMessagePermissions.
//Extract the message permissions from the message TdMessagePermissions tdmp = _tdm.getPermissions(); return new Boolean(tdmp.canDelete() || tdmp.canUndelete() || tdmp.canEdit() || tdmp.canClip() || tdmp.canErase());
TdPermissions
Field Summary | |
protected TdBoard |
_tdb |
protected TdBoardSettings |
_tdbs |
protected TdMessage |
_tdm |
protected TdRole |
_tdr |
protected oracle.discussions.sdk.impl.TdSession |
_tdsession |
Fields inherited from class oracle.discussions.sdk.TdPermissions |
_tdr, _tdsession |
Method Summary | |
boolean |
canClip() Returns a boolean value indicating if the current user can clip the message. |
boolean |
canDelete() Returns a boolean value indicating if the current user can delete the message. |
boolean |
canEdit() Returns a boolean value indicating if the current user can edit the message. |
boolean |
canErase() Returns a boolean value indicating if the current user can erase the message. |
boolean |
canReply() Returns a boolean value indicating if the current user can reply to the message. |
boolean |
canUndelete() Returns a boolean value indicating if the current user can undelete the message. |
Methods inherited from class oracle.discussions.sdk.TdPermissions |
getRole |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TdBoard _tdb
protected TdBoardSettings _tdbs
protected TdMessage _tdm
protected TdRole _tdr
protected oracle.discussions.sdk.impl.TdSession _tdsession
Method Detail |
public boolean canEdit()
public boolean canReply() throws TdException, javax.mail.MessagingException
public boolean canDelete()
public boolean canClip()
public boolean canUndelete()
public boolean canErase()
|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |