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

B25496-01

oracle.discussions.sdk
Interface TdGlobalAdminManager


public interface TdGlobalAdminManager

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();
 
Since:
OCS 10.1.1
See Also:
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

listGranteeRoles

public java.util.List listGranteeRoles()
                                throws TdException
Returns a list of all root level permissions in the system
Returns:
java.util.list
Throws:
TdException -  

listGlobalAdminGranteeRoles

public java.util.List listGlobalAdminGranteeRoles()
                                           throws TdException
Returns the grantee roles for the global admins only
Returns:
java.util.List
Throws:
TdException -  

isGlobalAdmin

public boolean isGlobalAdmin(TdUser tdu)
                      throws TdException
Returns true if the supplied user is a Global Admin

updateGranteeRoles

public void updateGranteeRoles(java.util.List lstRoles)
                        throws TdException
Updates the root level roles with the list of TdGranteeRoles passed in
Parameters:
lstRoles - List of TdGranteeRoles that will be global roles
Throws:
TdException - in case of any LDAP related error

grantGlobalAdmin

public void grantGlobalAdmin(TdUser grantee)
                      throws TdException
Adds the provided user as part of the global admin group. If the user has been part of it, no exception will be thrown
Parameters:
grantee - of the grant operation
Throws:
TdException - in case of any LDAP related error

revokeGlobalAdmin

public void revokeGlobalAdmin(TdUser grantee)
                       throws TdException
Removes the provided user from the global admin group. If the user is not part of it, no exception will be thrown
Parameters:
grantee - of the grant operation
Throws:
TdException - in case of any LDAP related error

grantFacilityCreator

public void grantFacilityCreator(TdUser grantee)
                          throws TdException
Grants the given user root level facility creator role
Parameters:
grantee - TdUser who is granted a root facility creator role
Throws:
TdException -  

revokeFacilityCreator

public void revokeFacilityCreator(TdUser grantee)
                           throws TdException
Revokes the given user root level facility creator role
Parameters:
grantee - TdUser who is revoked from a root facility creator role
Throws:
TdException -  

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

B25496-01

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