Package org.uddi.api_v2

Examples of org.uddi.api_v2.TModelBag


    /**
     * Create an instance of {@link TModelBag }
     *
     */
    public TModelBag createTModelBag() {
        return new TModelBag();
    }
View Full Code Here


      try {
      if (specifications == null || specifications.size()==0)
        return null;
       
        // Classifications
      TModelBag tbag = objectFactory.createTModelBag();
      Iterator speciter = specifications.iterator();
      while (speciter.hasNext()) {
        RegistryObject registryobject = (RegistryObject) speciter.next();
        if (registryobject instanceof Concept) {
                    Concept concept = (Concept) registryobject;
                    if (concept.getKey() != null) {
                        tbag.getTModelKey().add(concept.getKey().toString());
                    }
//        if (registryobject instanceof SpecificationLink) {
//          SpecificationLink specificationlink = (SpecificationLink) registryobject;
//          if (specificationlink.getSpecificationObject() != null) {
//            RegistryObject ro = specificationlink.getSpecificationObject();
View Full Code Here

    }

    if (tModelBag != null) {
      request.setTModelBag(tModelBag);
    } else {
      TModelBag tmb = this.objectFactory.createTModelBag();
      request.setTModelBag(tmb);
    }

    if (findQualifiers != null) {
      request.setFindQualifiers(findQualifiers);
View Full Code Here

      try {
      if (specifications == null || specifications.size()==0)
        return null;
       
        // Classifications
      TModelBag tbag = objectFactory.createTModelBag();
      Iterator speciter = specifications.iterator();
      while (speciter.hasNext()) {
        RegistryObject registryobject = (RegistryObject) speciter.next();
        if (registryobject instanceof SpecificationLink) {
          SpecificationLink specificationlink = (SpecificationLink) registryobject;
          if (specificationlink.getSpecificationObject() != null) {
            RegistryObject ro = specificationlink.getSpecificationObject();
            if (ro.getKey() != null) {
              Key key = ro.getKey();
              tbag.getTModelKey().add(key.toString());
            }
          }
        } else {
          log.info("ebXML case - the RegistryObject is an ExtrinsicObject, Not implemented");
        }
View Full Code Here

    }

    if (tModelBag != null) {
      request.setTModelBag(tModelBag);
    } else {
      TModelBag tmb = this.objectFactory.createTModelBag();
      request.setTModelBag(tmb);
    }

    if (findQualifiers != null) {
      request.setFindQualifiers(findQualifiers);
View Full Code Here

                try {
                        org.uddi.api_v3.GetAuthToken r = new org.uddi.api_v3.GetAuthToken();
                        r.setCred(body.getCred());
                        r.setUserID(body.getUserID());
                        org.uddi.api_v3.AuthToken authToken = securityService.getAuthToken(r);
                        AuthToken ret = new AuthToken();
                        ret.setAuthInfo(authToken.getAuthInfo());
                        ret.setGeneric("2.0");
                        ret.setOperator(getNodeID());
                        return ret;
                } catch (DispositionReportFaultMessage ex) {
                        throw MapUDDIv3Tov2.MapException(ex, getNodeID());
                }
        }
View Full Code Here

        }

        @Override
        public BusinessDetail getBusinessDetail(GetBusinessDetail body) throws DispositionReport {
                try {
                        BusinessDetail MapBusinessDetail = MapUDDIv3Tov2.MapBusinessDetail(inquiryService.getBusinessDetail(MapUDDIv2Tov3.MapGetBusinessDetail(body)), getNodeID());
                       // StringWriter sw = new StringWriter();
                       // JAXB.marshal(MapBusinessDetail, sw);
                      //  logger.info(sw.toString());
                        return MapBusinessDetail;
                } catch (DispositionReportFaultMessage ex) {
View Full Code Here

               
                return r;
        }
       
        private static BusinessInfos MapBusinessInfos(org.uddi.api_v3.BusinessInfos businessInfos) {
                BusinessInfos r = new BusinessInfos();
                if (businessInfos == null || businessInfos.getBusinessInfo().isEmpty()) {
                        return r;
                }
               
                for (int i = 0; i < businessInfos.getBusinessInfo().size(); i++) {
                        BusinessInfo x = new BusinessInfo();
                        x.setBusinessKey(businessInfos.getBusinessInfo().get(i).getBusinessKey());
                        x.setServiceInfos(MapServiceInfos(businessInfos.getBusinessInfo().get(i).getServiceInfos()));
                        x.getDescription().addAll(MapDescription(businessInfos.getBusinessInfo().get(i).getDescription()));
                        x.getName().addAll(MapName(businessInfos.getBusinessInfo().get(i).getName()));
                        r.getBusinessInfo().add(x);
                }
               
                return r;
        }
View Full Code Here

                        r.setTruncated(Truncated.TRUE);
                } else {
                        r.setTruncated(Truncated.FALSE);
                }
                if (registeredInfo.getBusinessInfos() != null) {
                        r.setBusinessInfos(new BusinessInfos());
                        for (int i = 0; i < registeredInfo.getBusinessInfos().getBusinessInfo().size(); i++) {
                                BusinessInfo x = new BusinessInfo();
                                x.setBusinessKey(registeredInfo.getBusinessInfos().getBusinessInfo().get(i).getBusinessKey());
                                x.getName().addAll(MapName(registeredInfo.getBusinessInfos().getBusinessInfo().get(i).getName()));
                                x.getDescription().addAll(MapDescription(registeredInfo.getBusinessInfos().getBusinessInfo().get(i).getDescription()));
View Full Code Here

        public static BusinessList MapBusinessListEntity(org.uddi.api_v3.BusinessList findBusiness, String operator) {
               
                if (findBusiness == null) {
                        return null;
                }
                BusinessList r = new BusinessList();
                r.setGeneric(VERSION);
                r.setOperator(operator);
                r.setBusinessInfos(MapBusinessInfos(findBusiness.getBusinessInfos()));
                if (findBusiness.isTruncated() != null && findBusiness.isTruncated()) {
                        r.setTruncated(Truncated.TRUE);
                } else {
                        r.setTruncated(Truncated.FALSE);
                }
                return r;
        }
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.TModelBag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.