void echoBusiness(String parm){
try {
FindBusiness fb = new FindBusiness();
fb.setName(new Name(parm));
Vector vBusinessInfo =
finder.findBusiness(fb).getBusinessInfos().getBusinessInfoVector();
for(int i=0;i BusinessInfo bInfo = (BusinessInfo)vBusinessInfo.elementAt(i);
log(bInfo.getName().getValue()+" ["+bInfo.getBusinessKey()+"]");
GetBusinessDetail gbt = new GetBusinessDetail();
gbt.addBusinessKey(bInfo.getBusinessKey());
Vector vBusinessEntity = finder.getBusinessDetail(gbt).getBusinessEntityVector();
for(int j=0;j BusinessEntity bEntity = (BusinessEntity)vBusinessEntity.elementAt(j);
log( "authorizedname is "+bEntity.getAuthorizedName()
+" operator is "+bEntity.getOperator());
}
}
}
catch (Exception ex) {
ex.printStackTrace();
}
} |