Package com.sun.xml.registry.common

Examples of com.sun.xml.registry.common.BulkResponseImpl


        */
       BulkResponse transformResponse(BusinessDetail detail,
                                             Collection keys, String type)
       throws JAXRException {

           BulkResponseImpl bResponse = null;
           if (detail != null) {
               bResponse = new BulkResponseImpl();
               Collection fbResponse = new ArrayList();
               Collection entities =
                       detail.getBusinessEntity();
               if (entities != null) {
                   Iterator iter = entities.iterator();
                   while (iter.hasNext()){
                       Organization org =
                               mapper.businessEntity2Organization((BusinessEntity)iter.next());
                       if (type.equalsIgnoreCase(mapper.FIND))
                           fbResponse.add(org);
                       else
                           fbResponse.add(org.getKey());
                   }
                   bResponse.setCollection(fbResponse);
               }
           }
           return bResponse;
       }
View Full Code Here


        *
        */
       BulkResponse transformResponse(ServiceDetail detail, Collection keys, String type)
       throws JAXRException {

           BulkResponseImpl bResponse = null;
           if (detail != null) {
               bResponse = new BulkResponseImpl();
               Collection fbResponse = new ArrayList();
               //todo - why is this commented out?
               //bResponse.setPartialResponse(detail.getTruncated());
               Collection services =
                       detail.getBusinessService();
               if (services != null) {
                   Iterator iter = services.iterator();
                   while (iter.hasNext()){
                       Service service =
                               mapper.businessService2Service((BusinessService)iter.next());
                       if (type.equals(mapper.FIND)) {
                           fbResponse.add(service);
                       } else {
                           fbResponse.add(service.getKey());
                       }
                   }
                   bResponse.setCollection(fbResponse);
               }
           }
           return bResponse;
       }
View Full Code Here

        */

       BulkResponse transformResponse(BindingDetail detail, Collection keys,
       String type) throws JAXRException {

           BulkResponseImpl bResponse = null;
           if (detail != null) {
               bResponse = new BulkResponseImpl();
               Collection fbResponse = new ArrayList();

               Collection templates =
                  detail.getBindingTemplate();
               Iterator iter = templates.iterator();
               while (iter.hasNext()){
                   ServiceBinding binding =
                   mapper.bindingTemplate2ServiceBinding((BindingTemplate)iter.next());
                   if (type.equals(mapper.FIND))
                       fbResponse.add(binding);
                   else
                       fbResponse.add(binding.getKey());
               }
               bResponse.setCollection(fbResponse);
           }
           return bResponse;
       }
View Full Code Here

TOP

Related Classes of com.sun.xml.registry.common.BulkResponseImpl

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.