public void organizationConfigChanged(String serviceName,String version,String orgName,String groupName,String serviceComponent,int type){
  String certModulePortNumber=null;
  String certModuleLevel=null;
  if (orgName == null) {
    orgName=SMSEntry.getRootSuffix();
  }
  try {
    ServiceConfig config=sConfigMgr.getOrganizationConfig(orgName,null);
    Map configAttrs=config.getAttributes();
    if (debug.messageEnabled()) {
      debug.message("GatewayServlet:configAttrs :  " + configAttrs.toString());
    }
    Set attrs=(Set)configAttrs.get(CERT_PORT_ATTR);
    if (attrs == null) {
      return;
    }
    Iterator values=attrs.iterator();
    if (values.hasNext()) {
      certModulePortNumber=(String)values.next();
    }
    attrs=(Set)configAttrs.get(AMAuthConfigUtils.getAuthLevelAttribute(configAttrs,moduleName));
    if (attrs == null) {
      return;
    }
    values=attrs.iterator();
    if (values.hasNext()) {
      certModuleLevel=(String)values.next();
    }
    AuthServiceConfigInfo info=new AuthServiceConfigInfo(orgName,moduleName,certModulePortNumber,certModuleLevel);
    AuthConfigMap.put(orgName,info);
  }
 catch (  Exception e) {
    debug.error("GatewayServletUtils : " + "Unable to get Cert Module Level and/or Port Number",e);
  }
}

public void organizationConfigChanged ( String serviceName , String version , String orgName , String groupName , String serviceComponent , int type ) { String certModulePortNumber = null ; String certModuleLevel = null ; if ( orgName == null ) { orgName = SMSEntry . getRootSuffix ( ) ; } try { ServiceConfig config = sConfigMgr . getOrganizationConfig ( orgName , null ) ; Map configAttrs = config . getAttributes ( ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "GatewayServlet:configAttrs :  " + configAttrs . toString ( ) ) ; } Set attrs = ( Set ) configAttrs . get ( CERT_PORT_ATTR ) ; if ( attrs == null ) { return ; } Iterator values = attrs . iterator ( ) ; if ( values . hasNext ( ) ) { certModulePortNumber = ( String ) values . next ( ) ; } attrs = ( Set ) configAttrs . get ( AMAuthConfigUtils . getAuthLevelAttribute ( configAttrs , moduleName ) ) ; if ( attrs == null ) { return ; } values = attrs . iterator ( ) ; if ( values . hasNext ( ) ) { certModuleLevel = ( String ) values . next ( ) ; } AuthServiceConfigInfo info = new AuthServiceConfigInfo ( orgName , moduleName , certModulePortNumber , certModuleLevel ) ; AuthConfigMap . put ( orgName , info ) ; } catch ( Exception e ) { debug . error ( "GatewayServletUtils : " + "Unable to get Cert Module Level and/or Port Number" , e ) ; } }
this method for implementing servivelistener . as this object listens for changes in schema of amconsoleservice . this method is no - op .
