Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.Service


                LinkedHashSet<Service> col = new LinkedHashSet<Service>();

                for (int i=0; a != null && i < a.length; i++) {
                    ServiceInfo si = (ServiceInfo) a[i];
          Service srv = (Service) getRegistryObject(si.getServiceKey(), LifeCycleManager.SERVICE);
                    col.add(srv);
                }

                blkRes.setCollection(col);
            }
View Full Code Here


                if (sd != null) {

                    BusinessService[] a = sd.getBusinessServiceArray();

                    if (a != null && a.length != 0) {
                        Service service = getServiceFromBusinessService(a[0], lcm);

                        return service;
                    }
                }
            }
View Full Code Here

                    BusinessService[] a = serviceDetail.getBusinessServiceArray();

                    for (int i=0; a != null && i < a.length; i++) {

                        Service service = getServiceFromBusinessService(a[i], lcm);
                       
                        col.add(service);
                    }
                }
            }
View Full Code Here

    public void addServices(Collection collection) throws JAXRException
    {
        // do this by hand to ensure all members are actually instances of Service
        for (Iterator iterator = collection.iterator(); iterator.hasNext();)
        {
            Service service = (Service) iterator.next();

            addService(service);
        }
    }
View Full Code Here

        post.setType(type);
        return post;
    }

    public Service createService(InternationalString name) throws JAXRException {
        Service ser = (Service) this.createObject(LifeCycleManager.SERVICE);
        ser.setName(name);
        return ser;
    }
View Full Code Here

                    BindingTemplate si = (BindingTemplate) bindvect.elementAt(i);
                    ServiceBinding sb =  ScoutUddiJaxrHelper.getServiceBinding(si,
                            registryService.getBusinessLifeCycleManager());
                    col.add(sb);
                   //Fill the Service object by making a call to registry
                   Service s = (Service)getRegistryObject(serviceKey.getId(), LifeCycleManager.SERVICE);
                   ((ServiceBindingImpl)sb).setService(s);
                }

                blkRes.setCollection(col);
            }
View Full Code Here

                if (sd != null) {

                    Vector v = sd.getBusinessServiceVector();

                    if (v.size() != 0) {
                        Service service = getServiceFromBusinessService(
                                (BusinessService) v.elementAt(0), lcm);

                        return service;
                    }
                }
View Full Code Here

     * @throws JAXRException
     */
    protected Service getServiceFromBusinessService(BusinessService bs, LifeCycleManager lcm)
        throws JAXRException {

        Service service  = ScoutUddiJaxrHelper.getService(bs, lcm);

        /*
         * now get the Organization if we can
         */

        String busKey = bs.getBusinessKey();

        if (busKey != null) {
            Organization o = (Organization) getRegistryObject(busKey,
                    LifeCycleManager.ORGANIZATION);
            service.setProvidingOrganization(o);
        }

        return service;
    }
View Full Code Here

                    Vector v = serviceDetail.getBusinessServiceVector();

                    for (int i=0; v != null && i < v.size(); i++) {

                        Service service = getServiceFromBusinessService(
                                (BusinessService) v.elementAt(i), lcm);

                        col.add(service);
                    }
                }
View Full Code Here

   {
      // Display service and binding information
      Collection services = org.getServices();
      for (Iterator svcIter = services.iterator(); svcIter.hasNext();)
      {
         Service svc = (Service)svcIter.next();
         log.debug(" Service name: " + getName(svc));
         log.debug(" Service description: " + getDescription(svc));

         assertEquals("JBOSS JAXR Service", getName(svc));
         assertEquals("Services of XML Registry", getDescription(svc));

         Collection serviceBindings = svc.getServiceBindings();
         for (Iterator sbIter = serviceBindings.iterator(); sbIter.hasNext();)
         {
            ServiceBinding sb = (ServiceBinding)sbIter.next();
            log.debug("  Binding Description: " + getDescription(sb));
            log.debug("  Access URI: " + sb.getAccessURI());
View Full Code Here

TOP

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

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.