public void organizationConfigChanged(String serviceName,String version,String orgName,String groupName,String serviceComponent,int type){
  if (debug.messageEnabled()) {
    debug.message("IdRepoPluginsCache: Org Config changed called " + "ServiceName: " + serviceName + " orgName: "+ orgName+ " groupName: "+ groupName+ " serviceComp: "+ serviceComponent+ " Type: "+ type);
  }
  if ((type == ServiceListener.REMOVED) && (serviceComponent.length() == 0)) {
    removeIdRepo(orgName);
  }
 else   if ((serviceComponent.length() != 0) && !serviceComponent.equals("/") && !serviceComponent.equals("")) {
    String idRepoName=null;
    StringTokenizer st=new StringTokenizer(serviceComponent,"/");
    if (st.hasMoreTokens()) {
      idRepoName=st.nextToken();
    }
    try {
      if (type == ServiceListener.ADDED) {
        addIdRepo(orgName,idRepoName);
      }
 else       if (type == ServiceListener.MODIFIED) {
        if (!IdServicesImpl.isShutdownCalled()) {
          removeIdRepo(orgName,idRepoName,true);
        }
 else {
          removeIdRepo(orgName,idRepoName,false);
        }
      }
 else       if (type == ServiceListener.REMOVED) {
        removeIdRepo(orgName,idRepoName,false);
      }
    }
 catch (    Exception e) {
      debug.error("IdRepoPluginsCached.organizationConfigChanged " + "ServiceName: " + serviceName + " orgName: "+ orgName+ " groupName: "+ groupName+ " serviceComp: "+ serviceComponent+ " Type: "+ type,e);
    }
  }
}

public void organizationConfigChanged ( String serviceName , String version , String orgName , String groupName , String serviceComponent , int type ) { if ( debug . messageEnabled ( ) ) { debug . message ( "IdRepoPluginsCache: Org Config changed called " + "ServiceName: " + serviceName + " orgName: " + orgName + " groupName: " + groupName + " serviceComp: " + serviceComponent + " Type: " + type ) ; } if ( ( type == ServiceListener . REMOVED ) && ( serviceComponent . length ( ) == 0 ) ) { removeIdRepo ( orgName ) ; } else if ( ( serviceComponent . length ( ) != 0 ) && ! serviceComponent . equals ( "/" ) && ! serviceComponent . equals ( "" ) ) { String idRepoName = null ; StringTokenizer st = new StringTokenizer ( serviceComponent , "/" ) ; if ( st . hasMoreTokens ( ) ) { idRepoName = st . nextToken ( ) ; } try { if ( type == ServiceListener . ADDED ) { addIdRepo ( orgName , idRepoName ) ; } else if ( type == ServiceListener . MODIFIED ) { if ( ! IdServicesImpl . isShutdownCalled ( ) ) { removeIdRepo ( orgName , idRepoName , true ) ; } else { removeIdRepo ( orgName , idRepoName , false ) ; } } else if ( type == ServiceListener . REMOVED ) { removeIdRepo ( orgName , idRepoName , false ) ; } } catch ( Exception e ) { debug . error ( "IdRepoPluginsCached.organizationConfigChanged " + "ServiceName: " + serviceName + " orgName: " + orgName + " groupName: " + groupName + " serviceComp: " + serviceComponent + " Type: " + type , e ) ; } } }
notification for organization config changes to idreposervice
