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

B25496-01

oracle.discussions.sdk
Class TdThreadPermissions

java.lang.Object
  |
  +--oracle.discussions.sdk.TdPermissions
        |
        +--oracle.discussions.sdk.TdMessagePermissions
              |
              +--oracle.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, TdMessagePermissions, TdBoardPermissions

Fields inherited from class oracle.discussions.sdk.TdMessagePermissions
_tdb, _tdbs, _tdm, _tdr, _tdsession

 

Fields inherited from class oracle.discussions.sdk.TdPermissions
_tdr, _tdsession

 

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
clone, equals, finalize, 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

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

B25496-01

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