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

Part No. B16232-01


oracle.discussions.sdk
Class TdMessagePermissions

java.lang.Object
  extended byoracle.discussions.sdk.TdPermissions
      extended byoracle.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.java

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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
Throws:
TdException
javax.mail.MessagingException

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

Copyright © 2005, Oracle. All rights reserved.