|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a class which performs root level operations. Various root level operations 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 snippet illustrating the usage of TdGlobalAdminManager
//tdstore is an instance of TdStore class. //Extract the globaladmin manager from the tdstore. TdGlobalAdminManager tdgam = tdStore.getGlobalAdminManager(); //Extract the grantee roles from the global admin manager. List granteeRoles = tdgam.listGranteeRoles();
TdFavoriteManager
Method Summary | |
void |
grantFacilityCreator(TdUser grantee) Grants the given user root level facility creator role |
void |
grantGlobalAdmin(TdUser grantee) Adds the provided user as part of the global admin group. |
boolean |
isGlobalAdmin(TdUser tdu) Returns true if the supplied user is a Global Admin |
java.util.List |
listGlobalAdminGranteeRoles() Returns the grantee roles for the global admins only |
java.util.List |
listGranteeRoles() Returns a list of all root level permissions in the system |
void |
revokeFacilityCreator(TdUser grantee) Revokes the given user root level facility creator role |
void |
revokeGlobalAdmin(TdUser grantee) Removes the provided user from the global admin group. |
void |
updateGranteeRoles(java.util.List lstRoles) Updates the root level roles with the list of TdGranteeRoles passed in |
Method Detail |
public java.util.List listGranteeRoles() throws TdException
public java.util.List listGlobalAdminGranteeRoles() throws TdException
public boolean isGlobalAdmin(TdUser tdu) throws TdException
public void updateGranteeRoles(java.util.List lstRoles) throws TdException
lstRoles
- List of TdGranteeRoles that will be global rolespublic void grantGlobalAdmin(TdUser grantee) throws TdException
grantee
- of the grant operationpublic void revokeGlobalAdmin(TdUser grantee) throws TdException
grantee
- of the grant operationpublic void grantFacilityCreator(TdUser grantee) throws TdException
grantee
- TdUser who is granted a root facility creator rolepublic void revokeFacilityCreator(TdUser grantee) throws TdException
grantee
- TdUser who is revoked from a root facility creator role
|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |