|
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.TdGranteeRole
Associates a oracle discussions user with a specific oracle discussions role.
Sample code snippet illustrating the usage of TdGranteeRole.
List lstOfOldACLs = tdc.listGranteeRoles(); TdRole tdOperatorOldRole = null; TdRole tdOperatorNewRole = null; for (int i=0; i<lstOfOldACLs.size(); i++) { TdGranteeRole tdgrOld = (TdGranteeRole) lstOfOldACLs.get(i); if (tdgrOld.getGrantee().equals(operator)) tdOperatorOldRole = tdgrOld.getTdRole(); }
TdRole.java
Field Summary | |
static int |
TD_GROUP |
static int |
TD_USER |
Constructor Summary | |
TdGranteeRole(TdUser usrctx, TdRole tdRole, boolean inherited) Constructor which initializes a GranteeRole object taking in a oracle discussions user, a oracle discussions role and a boolean variable. |
Method Summary | |
boolean |
equals(java.lang.Object o1, java.lang.Object o2) Compares two objects and returns a boolean value indicating if they are equal. |
TdUser |
getGrantee() Returns a user who is associated with the role. |
TdRole |
getTdRole() Returns a oracle discussions role which is associated with a particular user. |
boolean |
isInherited() Specifies if the role is an inherited role. |
void |
setInherited(boolean inherited) Sets a boolean variable indicating that the role is inherited. |
void |
setTdRole(TdRole tdr) Returns a role with the one passed as an argument. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TD_USER
public static final int TD_GROUP
Constructor Detail |
public TdGranteeRole(TdUser usrctx, TdRole tdRole, boolean inherited)
usrctx
- a oracle discussions user object who is being assigned with the roletdRole
- a oracle discussions role which is to be assigned to the userinherited
- whether this role is a result of inheritance from a role in a parent facility, or whether it is expliclity granted to the user on the containerMethod Detail |
public TdUser getGrantee()
public TdRole getTdRole()
public void setTdRole(TdRole tdr)
tdr
- oracle discussions role which is setpublic boolean isInherited()
public void setInherited(boolean inherited)
public boolean equals(java.lang.Object o1, java.lang.Object o2)
o1
- Object which is to be compared for equalityo2
- Object which is to be compared for equality
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |