void updateCache(String org) throws ConfigManagerException {
  Set eNames=new HashSet();
  Set sNames=new HashSet();
  Set cNames=new HashSet();
  if (org.equals(_rootDN)) {
    Set oSet=new HashSet();
    oSet.add(OBJECTRESOLVERPATH);
    loadCache(org,oSet,OBJECTRESOLVER);
  }
  try {
    eNames=getServiceComponents(org,ENTITYPATH,true);
  }
 catch (  SMSException smse) {
    if (_debug.warningEnabled())     _debug.warning("ConfigManager->updateCache: SMSException: " + smse.toString());
  }
catch (  SSOException ssoe) {
    if (_debug.warningEnabled())     _debug.warning("ConfigManager->updateCache: SSOException: " + ssoe.toString());
  }
  try {
    sNames=getServiceComponents(org,SEARCHPATH,true);
  }
 catch (  SMSException smse) {
    if (_debug.warningEnabled())     _debug.warning("ConfigManager->updateCache: SMSException: " + smse.toString());
  }
catch (  SSOException ssoe) {
    if (_debug.warningEnabled())     _debug.warning("ConfigManager->updateCache: SSOException: " + ssoe.toString());
  }
  try {
    cNames=getServiceComponents(org,CREATIONPATH,true);
  }
 catch (  SMSException smse) {
    if (_debug.warningEnabled())     _debug.warning("ConfigManager->updateCache: SMSException: " + smse.toString());
  }
catch (  SSOException ssoe) {
    if (_debug.warningEnabled())     _debug.warning("ConfigManager->updateCache: SSOException: " + ssoe.toString());
  }
  if (cNames.isEmpty() && eNames.isEmpty() && sNames.isEmpty()) {
    _checkListCache.put(org.toLowerCase(),"dummy");
    return;
  }
  if (!sNames.isEmpty()) {
    Iterator it=sNames.iterator();
    Set set=new HashSet();
    while (it.hasNext()) {
      String s=new String();
      String t;
      t=(String)it.next();
      int count=t.lastIndexOf("/");
      s=t.substring(count + 1);
      set.add(s);
    }
    _cch.put(org + "/" + SEARCH+ "Names",set);
    if (_debug.messageEnabled())     _debug.message("ConfigManager->updateCache: " + org + "/"+ SEARCH+ "Names :"+ set);
  }
  if (!cNames.isEmpty()) {
    Iterator it=cNames.iterator();
    Set set=new HashSet();
    while (it.hasNext()) {
      String s=new String();
      String t;
      t=(String)it.next();
      int count=t.lastIndexOf("/");
      s=t.substring(count + 1);
      set.add(s);
    }
    _cch.put(org + "/" + CREATION+ "Names",set);
    if (_debug.messageEnabled())     _debug.message("ConfigManager->updateCache: " + org + "/"+ CREATION+ "Names :"+ set);
  }
  loadCache(org,eNames,ENTITY);
  loadCache(org,cNames,CREATION);
  loadCache(org,sNames,SEARCH);
  _checkListCache.put(org.toLowerCase(),"dummy");
}

void updateCache ( String org ) throws ConfigManagerException { Set eNames = new HashSet ( ) ; Set sNames = new HashSet ( ) ; Set cNames = new HashSet ( ) ; if ( org . equals ( _rootDN ) ) { Set oSet = new HashSet ( ) ; oSet . add ( OBJECTRESOLVERPATH ) ; loadCache ( org , oSet , OBJECTRESOLVER ) ; } try { eNames = getServiceComponents ( org , ENTITYPATH , true ) ; } catch ( SMSException smse ) { if ( _debug . warningEnabled ( ) ) _debug . warning ( "ConfigManager->updateCache: SMSException: " + smse . toString ( ) ) ; } catch ( SSOException ssoe ) { if ( _debug . warningEnabled ( ) ) _debug . warning ( "ConfigManager->updateCache: SSOException: " + ssoe . toString ( ) ) ; } try { sNames = getServiceComponents ( org , SEARCHPATH , true ) ; } catch ( SMSException smse ) { if ( _debug . warningEnabled ( ) ) _debug . warning ( "ConfigManager->updateCache: SMSException: " + smse . toString ( ) ) ; } catch ( SSOException ssoe ) { if ( _debug . warningEnabled ( ) ) _debug . warning ( "ConfigManager->updateCache: SSOException: " + ssoe . toString ( ) ) ; } try { cNames = getServiceComponents ( org , CREATIONPATH , true ) ; } catch ( SMSException smse ) { if ( _debug . warningEnabled ( ) ) _debug . warning ( "ConfigManager->updateCache: SMSException: " + smse . toString ( ) ) ; } catch ( SSOException ssoe ) { if ( _debug . warningEnabled ( ) ) _debug . warning ( "ConfigManager->updateCache: SSOException: " + ssoe . toString ( ) ) ; } if ( cNames . isEmpty ( ) && eNames . isEmpty ( ) && sNames . isEmpty ( ) ) { _checkListCache . put ( org . toLowerCase ( ) , "dummy" ) ; return ; } if ( ! sNames . isEmpty ( ) ) { Iterator it = sNames . iterator ( ) ; Set set = new HashSet ( ) ; while ( it . hasNext ( ) ) { String s = new String ( ) ; String t ; t = ( String ) it . next ( ) ; int count = t . lastIndexOf ( "/" ) ; s = t . substring ( count + 1 ) ; set . add ( s ) ; } _cch . put ( org + "/" + SEARCH + "Names" , set ) ; if ( _debug . messageEnabled ( ) ) _debug . message ( "ConfigManager->updateCache: " + org + "/" + SEARCH + "Names :" + set ) ; } if ( ! cNames . isEmpty ( ) ) { Iterator it = cNames . iterator ( ) ; Set set = new HashSet ( ) ; while ( it . hasNext ( ) ) { String s = new String ( ) ; String t ; t = ( String ) it . next ( ) ; int count = t . lastIndexOf ( "/" ) ; s = t . substring ( count + 1 ) ; set . add ( s ) ; } _cch . put ( org + "/" + CREATION + "Names" , set ) ; if ( _debug . messageEnabled ( ) ) _debug . message ( "ConfigManager->updateCache: " + org + "/" + CREATION + "Names :" + set ) ; } loadCache ( org , eNames , ENTITY ) ; loadCache ( org , cNames , CREATION ) ; loadCache ( org , sNames , SEARCH ) ; _checkListCache . put ( org . toLowerCase ( ) , "dummy" ) ; }
cache management for entity and template components .
