org.hardtokenmgmt.admin.control
Class AdminPrivListUpdater

java.lang.Object
  extended by java.util.Observable
      extended by org.hardtokenmgmt.admin.control.AdminPrivListUpdater
All Implemented Interfaces:
java.lang.Runnable

public class AdminPrivListUpdater
extends java.util.Observable
implements java.lang.Runnable

Runnable in charge of fetching current administrators and notifying all listeners of information

Version:
$Id$
Author:
Philip Vendil 18 feb 2009

Method Summary
 java.util.List<AdminDataVO> getCurrentAdminList(java.lang.String orgId)
           
static AdminPrivListUpdater getInstance()
           
 void pause()
           
 void play()
           
 void removeAdminDataVO(AdminDataVO adminData)
          remove the given admin data from the model.
 void run()
           
 void stop()
           
 void updateAdminDataVO(AdminDataVO adminData)
          Updates the current overall status with
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AdminPrivListUpdater getInstance()

run

public void run()
Specified by:
run in interface java.lang.Runnable

pause

public void pause()

play

public void play()

stop

public void stop()

updateAdminDataVO

public void updateAdminDataVO(AdminDataVO adminData)
Updates the current overall status with

Parameters:
adminData - the admin data to update

removeAdminDataVO

public void removeAdminDataVO(AdminDataVO adminData)
remove the given admin data from the model.

Parameters:
adminData - the admin data to remove

getCurrentAdminList

public java.util.List<AdminDataVO> getCurrentAdminList(java.lang.String orgId)
                                                throws java.io.IOException,
                                                       org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
Returns:
the current list of administrators for the given org
Throws:
org.hardtokenmgmt.ws.gen.AuthorizationDeniedException_Exception
java.io.IOException