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

Part No. B16232-01


oracle.discussions.sdk
Class TdBoardPermissions

java.lang.Object
  extended byoracle.discussions.sdk.TdPermissions
      extended byoracle.discussions.sdk.TdContainerPermissions
          extended byoracle.discussions.sdk.TdBoardPermissions


public class TdBoardPermissions
extends TdContainerPermissions

TdBoardPermissions represents the permissions that different roles can have on a specified board. In threaded discussions, the permissions are role dependant and not user dependant. Each role enjoys a set of permissions on any given discussions element. This class extends from the TdPermissions class which represents generic threaded discussions permissions.

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 TdBoardSettings.

 
  TdRole tdr = TdRole.TD_BOARD_READER;
  TdPermissions _tdPerms = new TdBoardPermissions(this, getBoardSettings(), tdr,_tdsession);
 
Since:
OCS 10.1.1
See Also:
TdPermissions.java, TdFacilityPermissions.java, TdContainerPermissions.java

Method Summary
boolean canErase()
Returns a boolean status indicating if the current user can delete a thread from the current board
boolean canInitiateMoveThread()
Returns a boolean status indicating if the current user can move a thread from this board to another
boolean canLock()
Returns a boolean status indicating if the current thread can be locked by the current user.
boolean canPostThread()
Returns a boolean status indicating if the current user can post a thread in this board.
boolean canUnlock()
Returns a boolean status indicating if the current thread can be unlocked by the current user.

Methods inherited from class oracle.discussions.sdk.TdContainerPermissions
canDelete

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 status indicating if the current thread can be locked by the current user.
Returns:
boolean

canUnlock

public boolean canUnlock()
                  throws TdException
Returns a boolean status indicating if the current thread can be unlocked by the current user.
Returns:
boolean
Throws:
TdException - A generic threaded discussions exception which may be thrown by
  • AccessControlHandler when trying to lock the board

canPostThread

public boolean canPostThread()
Returns a boolean status indicating if the current user can post a thread in this board.
Returns:
boolean

canInitiateMoveThread

public boolean canInitiateMoveThread()
Returns a boolean status indicating if the current user can move a thread from this board to another
Returns:
boolean

canErase

public boolean canErase()
Returns a boolean status indicating if the current user can delete a thread from the current board
Returns:
boolean

Copyright © 2005, Oracle. All rights reserved.