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

Part No. B16232-01


oracle.discussions.sdk
Class TdThreadPermissions

java.lang.Object
  extended byoracle.discussions.sdk.TdPermissions
      extended byoracle.discussions.sdk.TdMessagePermissions
          extended byoracle.discussions.sdk.TdThreadPermissions


public class TdThreadPermissions
extends TdMessagePermissions

Represents the permissions a user owns on a particular thread object.

The thread permissions determine if a particular user can do operations on a given thread object.
The operations that a particular user can co on a thread include

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 illustrating the usge of TdThreadPermissions

  //Get the threadpermissions object from the thread object
   TdThreadPermissions tdtp = (TdThreadPermissions) tdt.getPermissions();
  //vtdb is a viewthread data bean which can store the thread information and attributes
  //Extract the properties from the thread permissions object and set the same in the view thread data bean object.
   vtdb.setCanLock(tdtp.canLock());
   vtdb.setCanUnlock(tdtp.canUnlock());
   vtdb.setCanDelete(tdtp.canErase());
 
Since:
OCS 10.1.1
See Also:
TdPermissions.java, TdMessagePermissions.java, TdBoardPermissions.java

Method Summary
boolean canClip()
Returns a boolean value indicating when a particular user has permissions to clip the current thread object.
boolean canLock()
Returns a boolean value indicating when a particular user has permissions to lock the current thread object.
boolean canUnlock()
Returns a boolean value indicating when a particular user has permissions to unlock the current thread object.

Methods inherited from class oracle.discussions.sdk.TdMessagePermissions
canDelete, canEdit, canErase, canReply, canUndelete

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

canLock

public boolean canLock()
Returns a boolean value indicating when a particular user has permissions to lock the current thread object.

The method returns true is the user can lock the thread, false otherwise.

Returns:
boolean

canUnlock

public boolean canUnlock()
Returns a boolean value indicating when a particular user has permissions to unlock the current thread object.

The method returns true is the user can lock the thread, false otherwise.

Returns:
boolean

canClip

public boolean canClip()
Returns a boolean value indicating when a particular user has permissions to clip the current thread object.

Clipping operation moves the chosen reply of a particuar thread and all its replies into a new thread structure.
The method returns true is the user can lock the thread, false otherwise.

Overrides:
canClip in class TdMessagePermissions
Returns:
boolean

Copyright © 2005, Oracle. All rights reserved.