protected static void removeObjImplListeners(Set dnSet,SSOTokenID ssoTokenId){
  if (debug.messageEnabled()) {
    debug.message("In AMObjectImpl.removeObjImplListeners(..): ");
  }
synchronized (objImplListeners) {
    Iterator dnItr=dnSet.iterator();
    while (dnItr.hasNext()) {
      String dn=(String)dnItr.next();
      Set objSet=(Set)objImplListeners.get(dn.toLowerCase());
      if (objSet == null) {
        continue;
      }
      Iterator objItr=objSet.iterator();
      while (objItr.hasNext()) {
        AMObjectImpl dpObjectImpl=(AMObjectImpl)objItr.next();
        SSOToken dpObjSSOToken=dpObjectImpl.getSSOToken();
        if (ssoTokenId.equals(dpObjSSOToken.getTokenID())) {
          objSet.remove(dpObjectImpl);
        }
      }
      if (objSet.isEmpty()) {
        objImplListeners.remove(dn);
      }
    }
  }
}

protected static void removeObjImplListeners ( Set dnSet , SSOTokenID ssoTokenId ) { if ( debug . messageEnabled ( ) ) { debug . message ( "In AMObjectImpl.removeObjImplListeners(..): " ) ; } synchronized ( objImplListeners ) { Iterator dnItr = dnSet . iterator ( ) ; while ( dnItr . hasNext ( ) ) { String dn = ( String ) dnItr . next ( ) ; Set objSet = ( Set ) objImplListeners . get ( dn . toLowerCase ( ) ) ; if ( objSet == null ) { continue ; } Iterator objItr = objSet . iterator ( ) ; while ( objItr . hasNext ( ) ) { AMObjectImpl dpObjectImpl = ( AMObjectImpl ) objItr . next ( ) ; SSOToken dpObjSSOToken = dpObjectImpl . getSSOToken ( ) ; if ( ssoTokenId . equals ( dpObjSSOToken . getTokenID ( ) ) ) { objSet . remove ( dpObjectImpl ) ; } } if ( objSet . isEmpty ( ) ) { objImplListeners . remove ( dn ) ; } } } }
method that removes all the entries that correspond ( " dn " , ssotokenid ) supplied . this is done for all the dn ' s in the set of dn ' s supplied .
