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(); } } |
void echoBusiness2(String parm){ try { file://查询BusinessInfo 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()+"]"); file://查询ServiceInfo Vector vServiceInfo = bInfo.getServiceInfos().getServiceInfoVector(); for(int j=0;j ServiceInfo sInfo = (ServiceInfo)vServiceInfo.elementAt(j); log(sInfo.getName().getValue()+"["+sInfo.getServiceKey()+"]"); file://查询BusinessService GetServiceDetail gsd = new GetServiceDetail(); gsd.addServiceKey(sInfo.getServiceKey()); Vector vBusinessService = finder.getServiceDetail(gsd).getBusinessServiceVector(); for(int k=0;k BusinessService bService = (BusinessService)vBusinessService.elementAt(k); file://查询BindingTemplate Vector vBindingTemplate = bService.getBindingTemplates().getBindingTemplateVector(); for(int p=0;p BindingTemplate bTemplate = (BindingTemplate)vBindingTemplate.elementAt(p); log(bTemplate.getAccessPoint().getValue()); file://查询TModelInstanceInfo Vector vTModelInstanceInfo = bTemplate.getTModelInstanceDetails().getTModelInstanceInfoVector(); for(int q=0;q TModelInstanceInfo tmInstanceInfo = (TModelInstanceInfo)vTModelInstanceInfo.elementAt(q); file://直接显示了InstanceDetails的OverviewDoc的信息 log(tmInstanceInfo.getInstanceDetails().getOverviewDoc().getOverviewURL().getValue()); } } } } } } catch (Exception ex) { ex.printStackTrace(); } } |
void echoTModel(String param){ try { FindTModel ftm = new FindTModel(); ftm.setName(new Name(param)); Vector vTModelInfo = finder.findTModel(ftm).getTModelInfos().getTModelInfoVector(); for(int j=0;j TModelInfo tInfo = (TModelInfo)vTModelInfo.elementAt(j); log(tInfo.getName().getValue()+"["+tInfo.getTModelKey()+"]"); GetTModelDetail gtd = new GetTModelDetail(); gtd.addTModelKey(tInfo.getTModelKey()); Vector vTModel = finder.getTModelDetail(gtd).getTModelVector(); for(int i=0;i TModel tModel = (TModel)vTModel.elementAt(i); log(tModel.getName().getValue()+" "+tModel.getAuthorizedName()); } } } catch (Exception ex) { ex.printStackTrace(); } } |