Oracle Discussions Java API Reference
10g Release 1 (10.1.2)

B25496-01

oracle.discussions.sdk
Class TdMessagePermissions

java.lang.Object
  |
  +--oracle.discussions.sdk.TdPermissions
        |
        +--oracle.discussions.sdk.TdMessagePermissions
Direct Known Subclasses:
TdThreadPermissions

public class TdMessagePermissions
extends TdPermissions

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());
 
Since:
OCS 10.1.1
See Also:
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

_tdb

protected TdBoard _tdb

_tdbs

protected TdBoardSettings _tdbs

_tdm

protected TdMessage _tdm

_tdr

protected TdRole _tdr

_tdsession

protected oracle.discussions.sdk.impl.TdSession _tdsession

Method Detail

canEdit

public boolean canEdit()
Returns a boolean value indicating if the current user can edit the message.
Returns:
boolean

canReply

public boolean canReply()
                 throws TdException,
                        javax.mail.MessagingException
Returns a boolean value indicating if the current user can reply to the message.
Returns:
boolean

canDelete

public boolean canDelete()
Returns a boolean value indicating if the current user can delete the message.
Returns:
boolean

canClip

public boolean canClip()
Returns a boolean value indicating if the current user can clip the message.
Returns:
boolean

canUndelete

public boolean canUndelete()
Returns a boolean value indicating if the current user can undelete the message.
Returns:
boolean

canErase

public boolean canErase()
Returns a boolean value indicating if the current user can erase the message.
Returns:
boolean

Oracle Discussions Java API Reference
10g Release 1 (10.1.2)

B25496-01

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