|
Oracle Collaboration Suite Discussions Java API Reference 10g (10.1.1) Part No. B16232-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.discussions.sdk.TdPermissions
oracle.discussions.sdk.TdMessagePermissions
oracle.discussions.sdk.TdThreadPermissions
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());
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 |
public boolean canLock()
The method returns true is the user can lock the thread, false otherwise.
public boolean canUnlock()
The method returns true is the user can lock the thread, false otherwise.
public boolean canClip()
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.
canClip
in class TdMessagePermissions
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |