Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.SpecificationLink


            {
                conceptKey = (Key) iter.next();
            }

            testConcept = (Concept) bqm.getRegistryObject(conceptKey.getId(), LifeCycleManager.CONCEPT);
            SpecificationLink sl = blm.createSpecificationLink();
            sl.setSpecificationObject(testConcept);
            ServiceBinding sb = blm.createServiceBinding();
            sb.setDescription(blm.createInternationalString(sbDescription));
            sb.setAccessURI(accessURI);
            sb.addSpecificationLink(sl);
            service.addServiceBinding(sb);
View Full Code Here


            ServiceBinding serviceBinding = blm.createServiceBinding();
            String xml = EPRHelper.toXMLString(epr);
            serviceBinding.setAccessURI(xml);
           
            ArrayList<ServiceBinding> serviceBindings = new ArrayList<ServiceBinding>();
            SpecificationLink sl = new SpecificationLinkImpl(blm);
            sl.setSpecificationObject(jbossTModel);
            serviceBinding.getSpecificationLinks().add(sl);
            if ("3.0".equals(Configuration.getRegistryUDDIVersion())) {
               if ((eprDescription == null) || ("".equals(eprDescription))) {
                   serviceBinding.setDescription(blm.createInternationalString(JAXRRegistryImpl.REGISTERED_BY_JBOSSESB));
               }
View Full Code Here

            ServiceBinding serviceBinding = blm.createServiceBinding();
            String xml = EPRHelper.toXMLString(epr);
            serviceBinding.setAccessURI(xml);
           
            ArrayList<ServiceBinding> serviceBindings = new ArrayList<ServiceBinding>();
            SpecificationLink sl = new SpecificationLinkImpl(blm);
            sl.setSpecificationObject(jbossTModel);
            serviceBinding.getSpecificationLinks().add(sl);
            if (isV3 && ((eprDescription == null) || ("".equals(eprDescription)))) {
               serviceBinding.setDescription(blm.createInternationalString(REGISTERED_BY_JBOSSESB));
            } else {
               serviceBinding.setDescription(blm.createInternationalString(eprDescription));
View Full Code Here

            classifications.add(classification);
      Collection<String> namePatterns = new ArrayList<String>();
      namePatterns.add(serviceName);

            Collection<SpecificationLink> specifications = new ArrayList<SpecificationLink>();
            SpecificationLink sl = new SpecificationLinkImpl(blm);
            sl.setSpecificationObject(jbossTModel);
      specifications.add(sl);
           
          //Find based upon qualifier type and values
      Collection<String> findQualifiers = new ArrayList<String>();
      findQualifiers.add(FindQualifier.AND_ALL_KEYS);
View Full Code Here

      BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
      Collection<String> findQualifiers = null;
      //Collection<String> findQualifiers = new ArrayList<String>();
      //findQualifiers.add(FindQualifier.SORT_BY_DATE_ASC);
      ArrayList<SpecificationLink> specs = new ArrayList<SpecificationLink>();
            SpecificationLink sl = new SpecificationLinkImpl(blm);
            sl.setSpecificationObject(jbossTModel);

      specs.add(sl);
      BulkResponse bulkResponse = bqm.findServiceBindings(service.getKey(),findQualifiers,null,specs);
      if (bulkResponse.getStatus()==JAXRResponse.STATUS_SUCCESS){
        serviceBindings = (Collection<ServiceBinding>)bulkResponse.getCollection();
        for (Iterator bindIter = serviceBindings.iterator(); bindIter.hasNext();)
        {
          ServiceBinding binding = (ServiceBinding) bindIter.next();
          Collection<SpecificationLink> bindingSpecs = binding.getSpecificationLinks();         
                SpecificationLink slink = new SpecificationLinkImpl(blm);
                slink.setSpecificationObject(jbossTModel);

          bindingSpecs.add(slink);
        }
      }
      return serviceBindings;
View Full Code Here

      for (TModelInstanceInfo info: tmodelInstanceInfoList)
      {
        if (info!=null && info.getInstanceDetails()!=null) {
          InstanceDetails idetails = info.getInstanceDetails();
          Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lifeCycleManager);
          SpecificationLink slink = new SpecificationLinkImpl(lifeCycleManager);
          slink.addExternalLinks(elinks);
          serviceBinding.addSpecificationLink(slink);
 
          ConceptImpl c = new ConceptImpl(lifeCycleManager);
          c.setExternalLinks(elinks);
          c.setKey(lifeCycleManager.createKey(info.getTModelKey()));
          c.setName(lifeCycleManager.createInternationalString(idetails.getInstanceParms()));
          c.setValue(idetails.getInstanceParms());
 
          slink.setSpecificationObject(c);
        }
      }
    }
    HostingRedirector hr = businessTemplate.getHostingRedirector();
    if(hr != null)
View Full Code Here

    for (TModelInstanceInfo info: tmodelInstanceInfoList)
    {
      if (info!=null && info.getInstanceDetails()!=null) {
        InstanceDetails idetails = info.getInstanceDetails();
        Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lifeCycleManager);
        SpecificationLink slink = new SpecificationLinkImpl(lifeCycleManager);
        slink.addExternalLinks(elinks);
        serviceBinding.addSpecificationLink(slink);

        ConceptImpl c = new ConceptImpl(lifeCycleManager);
        c.setExternalLinks(elinks);
        c.setKey(lifeCycleManager.createKey(info.getTModelKey()));
        c.setName(lifeCycleManager.createInternationalString(idetails.getInstanceParms()));
        c.setValue(idetails.getInstanceParms());

        slink.setSpecificationObject(c);
      }
    }

    HostingRedirector hr = businessTemplate.getHostingRedirector();
    if(hr != null)
View Full Code Here

           Collection<SpecificationLink> slcol = serviceBinding.getSpecificationLinks();
      TModelInstanceDetails tid = objectFactory.createTModelInstanceDetails();
      if (slcol != null && !slcol.isEmpty()) {
              Iterator<SpecificationLink> iter = slcol.iterator();
        while (iter.hasNext()) {
          SpecificationLink slink = (SpecificationLink) iter.next();

          TModelInstanceInfo emptyTInfo = objectFactory.createTModelInstanceInfo();
          tid.getTModelInstanceInfo().add(emptyTInfo);

                    RegistryObject specificationObject = slink.getSpecificationObject();
          if (specificationObject.getKey() != null && specificationObject.getKey().getId() != null) {
            emptyTInfo.setTModelKey(specificationObject.getKey().getId());
                        if (specificationObject.getDescription()!=null) {
                            for (Object o : specificationObject.getDescription().getLocalizedStrings()) {
                                LocalizedString locDesc = (LocalizedString) o;
                                Description description = objectFactory.createDescription();
                                emptyTInfo.getDescription().add(description);
                                description.setValue(locDesc.getValue());
                                description.setLang(locDesc.getLocale().getLanguage());
                            }
                        }
                        Collection<ExternalLink> externalLinks = slink.getExternalLinks();
                        if (externalLinks!=null && externalLinks.size()>0) {
                            for (ExternalLink link : externalLinks) {
                                InstanceDetails ids = objectFactory.createInstanceDetails();
                                emptyTInfo.setInstanceDetails(ids);
                                if (link.getDescription()!=null) {
View Full Code Here

           Collection<SpecificationLink> slcol = serviceBinding.getSpecificationLinks();
      TModelInstanceDetails tid = objectFactory.createTModelInstanceDetails();
      if (slcol != null && !slcol.isEmpty()) {
              Iterator<SpecificationLink> iter = slcol.iterator();
        while (iter.hasNext()) {
          SpecificationLink slink = (SpecificationLink) iter.next();

          TModelInstanceInfo emptyTInfo = objectFactory.createTModelInstanceInfo();
          tid.getTModelInstanceInfo().add(emptyTInfo);

                    RegistryObject specificationObject = slink.getSpecificationObject();
          if (specificationObject.getKey() != null && specificationObject.getKey().getId() != null) {
            emptyTInfo.setTModelKey(specificationObject.getKey().getId());
                        if (specificationObject.getDescription()!=null) {
                            for (Object o : specificationObject.getDescription().getLocalizedStrings()) {
                                LocalizedString locDesc = (LocalizedString) o;
                                Description description = objectFactory.createDescription();
                                emptyTInfo.getDescription().add(description);
                                description.setValue(locDesc.getValue());
                                description.setLang(locDesc.getLocale().getLanguage());
                            }
                        }
                        Collection<ExternalLink> externalLinks = slink.getExternalLinks();
                        if (externalLinks!=null && externalLinks.size()>0) {
                            for (ExternalLink link : externalLinks) {
                                InstanceDetails ids = objectFactory.createInstanceDetails();
                                emptyTInfo.setInstanceDetails(ids);
                                if (link.getDescription()!=null) {
                                    Description description = objectFactory.createDescription();
                                    ids.getDescription().add(description);
                                    description.setValue(link.getDescription().getValue());
                                }
                                if (link.getExternalURI()!=null) {
                                    OverviewDoc overviewDoc = objectFactory.createOverviewDoc();
                                    ids.getOverviewDoc().add(overviewDoc);
                                    org.uddi.api_v3.OverviewURL ourl = new org.uddi.api_v3.OverviewURL();
                                    ourl.setValue(link.getExternalURI());
                                    overviewDoc.setOverviewURL(ourl);
                                }
                                if (slink.getUsageParameters() != null) {
                                    StringBuffer buffer = new StringBuffer();
                                    for (Object o : slink.getUsageParameters()) {
                                        String s = (String) o;
                                        buffer.append(s + " ");
                                    }
                                    ids.setInstanceParms(buffer.toString().trim());
                                }
View Full Code Here

           
            System.out.println("\nCreating service binding...\n");
            Key sbKey = createServiceBinding(tmpSvc);
                      
           
            SpecificationLink specLink = blm.createSpecificationLink();           
            Concept concept = null;
            if ("3.0".equals(uddiversion)) {
              concept = (Concept)bqm.getRegistryObject("uddi:uddi.org:findqualifier:orlikekeys", BusinessLifeCycleManager.CONCEPT);
            } else {
              concept = (Concept)bqm.getRegistryObject("uuid:AD61DE98-4DB8-31B2-A299-A2373DC97212",BusinessLifeCycleManager.CONCEPT);
            }
            specLink.setSpecificationObject(concept);
           
            //find serviceBinding
            Collection<ServiceBinding> serviceBindings2 = finder.findServiceBindings(tmpSvcKey, specLink);
            @SuppressWarnings("unused")
      ServiceBinding serviceBinding2 = serviceBindings2.iterator().next();
View Full Code Here

TOP

Related Classes of javax.xml.registry.infomodel.SpecificationLink

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.