Package javax.xml.registry

Examples of javax.xml.registry.BulkResponse


        System.out.println("Deleting service with id " + id);

        Collection<Key> keys = new ArrayList<Key>();
        keys.add(key);
        BulkResponse response = blm.deleteServices(keys);
       
        Collection exceptions = response.getExceptions();
        if (exceptions == null) {
            Collection retKeys = response.getCollection();
            Iterator keyIter = retKeys.iterator();
            javax.xml.registry.infomodel.Key orgKey = null;
            if (keyIter.hasNext()) {
                orgKey =
                    (javax.xml.registry.infomodel.Key) keyIter.next();
View Full Code Here


        System.out.println("Deleting serviceBinding with id " + id);

        Collection<Key> keys = new ArrayList<Key>();
        keys.add(key);
        BulkResponse response = blm.deleteServiceBindings(keys);
       
        Collection exceptions = response.getExceptions();
        if (exceptions == null) {
            Collection retKeys = response.getCollection();
            Iterator keyIter = retKeys.iterator();
            javax.xml.registry.infomodel.Key orgKey = null;
            if (keyIter.hasNext()) {
                orgKey =
                    (javax.xml.registry.infomodel.Key) keyIter.next();
View Full Code Here

      } else {
        namePatterns.add("%" + queryStr + "%");
      }
      // Find based upon qualifier type and values
      System.out.println("\n-- searching the registry --\n");
        BulkResponse response =
        bqm.findOrganizations(findQualifiers,
            namePatterns,
            null,
            null,
            null,
            null);
     
      return response.getCollection();
    }
View Full Code Here

        } else {
          namePatterns.add("%" + queryStr + "%");
        }
        // Find based upon qualifier type and values
        System.out.println("\n-- searching the registry --\n");
        BulkResponse response =
            bqm.findClassificationSchemes(findQualifiers,
                    namePatterns,
                    null,
                    null);
       
        return response.getCollection();
    }
View Full Code Here

        Collection<String> namePatterns = new ArrayList<String>();
        namePatterns.add(queryStr);
       
        // Find based upon qualifier type and values
        System.out.println("\n-- searching the registry --\n");
        BulkResponse response =
            bqm.findClassificationSchemes(findQualifiers,
                    namePatterns,
                    null,
                    null);
        if ((response == null) || (response.getCollection() == null) || (response.getCollection().size() ==0) ) {
          return null;
        }
       
        return (ClassificationScheme) response.getCollection().iterator().next();
    }
View Full Code Here

              "category", category );
        classifications.add(classification);
        Collection<String> namePatterns = new ArrayList<String>();
        namePatterns.add(serviceName);
        //Find based upon qualifier type and values
        BulkResponse response = bqm.findServices(null, findQualifiers,
                namePatterns, classifications, null);
        if (response.getStatus()==JAXRResponse.STATUS_SUCCESS) {
            for (Iterator servIter = response.getCollection().iterator(); servIter.hasNext();)
            {
                Service service = (Service) servIter.next();
                return service;
            }
        }
View Full Code Here

    public Collection<ServiceBinding> findServiceBindings(Key serviceKey) throws JAXRException
    {
        Collection<ServiceBinding> serviceBindings=null;
        Collection<String> findQualifiers = new ArrayList<String>();
        findQualifiers.add(FindQualifier.SORT_BY_NAME_ASC);
        BulkResponse bulkResponse = bqm.findServiceBindings(serviceKey,findQualifiers,null,null);
        if (bulkResponse.getStatus()==JAXRResponse.STATUS_SUCCESS){
            serviceBindings = (Collection<ServiceBinding>) bulkResponse.getCollection();
        }
        return serviceBindings;
    }
View Full Code Here

        Collection<ServiceBinding> serviceBindings=null;
        Collection<String> findQualifiers = new ArrayList<String>();
        findQualifiers.add(FindQualifier.SORT_BY_NAME_ASC);
        Collection<Classification> classifications = new ArrayList<Classification>();
        classifications.add(classification);
        BulkResponse bulkResponse = bqm.findServiceBindings(serviceKey,findQualifiers,classifications,null);
        if (bulkResponse.getStatus()==JAXRResponse.STATUS_SUCCESS){
            serviceBindings = (Collection<ServiceBinding>) bulkResponse.getCollection();
        }
        return serviceBindings;
    }
View Full Code Here

        Collection<ServiceBinding> serviceBindings=null;
        Collection<String> findQualifiers = new ArrayList<String>();
        findQualifiers.add(FindQualifier.SORT_BY_NAME_ASC);
        Collection<SpecificationLink> specifications = new ArrayList<SpecificationLink>();
        specifications.add(specLink);
        BulkResponse bulkResponse = bqm.findServiceBindings(serviceKey,findQualifiers,null,specifications);
        if (bulkResponse.getStatus()==JAXRResponse.STATUS_SUCCESS){
            serviceBindings = (Collection<ServiceBinding>) bulkResponse.getCollection();
        }
        return serviceBindings;
    }
View Full Code Here

          RegistryService rs = connection.getRegistryService();

          BusinessQueryManager bqm = rs.getBusinessQueryManager();
          @SuppressWarnings("unused")
      BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
          @SuppressWarnings("unused")
      BulkResponse br = bqm.getRegistryObjects();
    } catch (JAXRException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of javax.xml.registry.BulkResponse

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.