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

B25496-01

oracle.discussions.sdk
Class TdBoardPermissions

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

Fields inherited from class oracle.discussions.sdk.TdContainerPermissions
_tdc

 

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

 

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

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

B25496-01

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