org.hardtokenmgmt.admin.control
Class AdministratorPriviledgesManagerWrapper

java.lang.Object
  extended by org.hardtokenmgmt.admin.control.AdministratorPriviledgesManagerWrapper
All Implemented Interfaces:
IAdministratorPriviledgesManager

public class AdministratorPriviledgesManagerWrapper
extends java.lang.Object
implements IAdministratorPriviledgesManager

Wrapper class that takes care of updating the model lists

Version:
$Id$
Author:
Philip Vendil 23 mar 2009

Method Summary
 void editAdmin(AdminDataVO adminData)
          Adds/edits the data of a given administrator.
 boolean existsAdministrator(AdminDataVO adminData)
          Checks if an administrator already exists.
 java.util.List<AdminDataVO> getAdministrators(java.lang.String orgId)
          Returns a list of administrators belonging to the given organization
 java.util.List<AdminGroupVO> getAvailableAdminGroups(java.lang.String orgId)
          Returns the available administration groups for the given organization.
 void removeAdministrator(AdminDataVO adminData)
          Removes the administrator privileges from a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

editAdmin

public void editAdmin(AdminDataVO adminData)
               throws java.io.IOException,
                      org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception,
                      AdminDataException
Description copied from interface: IAdministratorPriviledgesManager
Adds/edits the data of a given administrator.

Specified by:
editAdmin in interface IAdministratorPriviledgesManager
Parameters:
adminData - information about the administrator and the administration groups he should belong to.
Throws:
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized to perform the given operation.
AdminDataException - if the adminData parameter contained erroneous data.
See Also:
IAdministratorPriviledgesManager.editAdmin(org.hardtokenmgmt.admin.common.AdminDataVO)

existsAdministrator

public boolean existsAdministrator(AdminDataVO adminData)
                            throws java.io.IOException,
                                   org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Description copied from interface: IAdministratorPriviledgesManager
Checks if an administrator already exists.

Specified by:
existsAdministrator in interface IAdministratorPriviledgesManager
Parameters:
adminData - information about the administrator.
Returns:
true if the given administrator already exists
Throws:
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized to perform the given operation.
See Also:
IAdministratorPriviledgesManager.existsAdministrator(org.hardtokenmgmt.admin.common.AdminDataVO)

getAdministrators

public java.util.List<AdminDataVO> getAdministrators(java.lang.String orgId)
                                              throws java.io.IOException,
                                                     org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Description copied from interface: IAdministratorPriviledgesManager
Returns a list of administrators belonging to the given organization

Specified by:
getAdministrators in interface IAdministratorPriviledgesManager
Parameters:
orgId - the unique id of the organization
Returns:
all administrators belonging to the organization.
Throws:
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized to perform the given operation.
See Also:
IAdministratorPriviledgesManager.getAdministrators(java.lang.String)

getAvailableAdminGroups

public java.util.List<AdminGroupVO> getAvailableAdminGroups(java.lang.String orgId)
                                                     throws java.io.IOException,
                                                            org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Description copied from interface: IAdministratorPriviledgesManager
Returns the available administration groups for the given organization.

Specified by:
getAvailableAdminGroups in interface IAdministratorPriviledgesManager
Parameters:
orgId - the unique id of the organization
Returns:
a list of administration groups
Throws:
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized to perform the given operation.
See Also:
IAdministratorPriviledgesManager.getAvailableAdminGroups(java.lang.String)

removeAdministrator

public void removeAdministrator(AdminDataVO adminData)
                         throws java.io.IOException,
                                org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception,
                                AdminDataException
Description copied from interface: IAdministratorPriviledgesManager
Removes the administrator privileges from a user.

Specified by:
removeAdministrator in interface IAdministratorPriviledgesManager
Parameters:
adminData - information about the administrator.
Throws:
java.io.IOException - if communication problems occurred.
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception - if the administrator wasn't authorized to perform the given operation.
AdminDataException - if the adminData parameter contained erroneous data.
See Also:
IAdministratorPriviledgesManager.removeAdministrator(org.hardtokenmgmt.admin.common.AdminDataVO)