Package org.apache.ws.scout.model.uddi.v2

Examples of org.apache.ws.scout.model.uddi.v2.PublisherAssertions


      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());
                                }
View Full Code Here


      request.setFindQualifiers(findQualifiers);
    }

    request.setMaxRows(maxRows);

        TModelList tml;
        JAXBElement<?> o = execute(this.objectFactory.createFindTModel(request),
            this.getInquiryURI());
        tml = (TModelList) o.getValue();

        return tml;
View Full Code Here

      return tokenstr;
   }

  private static URLType getURLType(String accessuri) {
       String acc = accessuri.toLowerCase();
    URLType uri = URLType.OTHER;
    if (acc.startsWith("http:"))
      uri = URLType.HTTP;
    else if (acc.startsWith("https:"))
      uri = URLType.HTTPS;
    else if (acc.startsWith("ftp:"))
View Full Code Here

       
        public static PublisherAssertions MapPublisherAssertions(List<org.uddi.api_v3.PublisherAssertion> publisherAssertions, String operator) {
                if (publisherAssertions == null) {
                        return null;
                }
                PublisherAssertions r = new PublisherAssertions();
                r.getPublisherAssertion().addAll(MapPublisherAssertion(publisherAssertions));
                r.setGeneric(VERSION);
                r.setOperator(operator);
                return r;
        }
View Full Code Here

   @Override
   public void setPublisherAssertions(String authInfo, Holder<List<PublisherAssertion>> publisherAssertion) throws DispositionReportFaultMessage, RemoteException {
      try {
         SetPublisherAssertions req = MapUDDIv3Tov2.MapSetPublisherAssertions(publisherAssertion.value);
         req.setAuthInfo(authInfo);
         PublisherAssertions setPublisherAssertions = publishService.setPublisherAssertions(req);
         publisherAssertion.value = MapUDDIv2Tov3.MapListPublisherAssertion(setPublisherAssertions);

      } catch (DispositionReport ex) {
         throw MapUDDIv2Tov3.MapException(ex);
      } catch (SOAPFaultException ex) {
View Full Code Here

                PublisherAssertion pa = ScoutJaxrUddiV3Helper.getPubAssertionFromJAXRAssociation(association);
                sarr[currLoc] = pa;
                currLoc++;
           
                // Save PublisherAssertion
                PublisherAssertions bd = null;
                try {
                    bd = (PublisherAssertions) executeOperation(sarr, "SAVE_ASSOCIATION");
                }
                catch (RegistryV3Exception e) {
                    exceptions.add(new SaveException(e));
                    bulk.setExceptions(exceptions);
                    bulk.setStatus(JAXRResponse.STATUS_FAILURE);
                    return bulk;
                }
                if(bd != null)
                {
                  List<PublisherAssertion> publisherAssertionList = bd.getPublisherAssertion();
                  PublisherAssertion[] keyarr = new PublisherAssertion[publisherAssertionList.size()];
                  publisherAssertionList.toArray(keyarr);
                 
                  for (int i = 0; keyarr != null && i < keyarr.length; i++) {
                    PublisherAssertion result = (PublisherAssertion) keyarr[i];
View Full Code Here

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

        PublisherAssertions pa = new PublisherAssertions();
        JAXBElement<?> o = execute(this.objectFactory.createGetPublisherAssertions(request),
            this.getPublishURI());
        if (o != null) {
            PublisherAssertionsResponse par = (PublisherAssertionsResponse) o.getValue();
            List<PublisherAssertion> assertions = par.getPublisherAssertion();
            for (int i = 0; i < assertions.size(); i++ ) {
              pa.getPublisherAssertion().add((PublisherAssertion)assertions.get(i));
            }
        }

        return pa;
  }
View Full Code Here

    if (assertionArray != null) {
      request.getPublisherAssertion().addAll(Arrays.asList(assertionArray));
    }

        PublisherAssertions pa = null;
        JAXBElement<?> o = execute(this.objectFactory.createSetPublisherAssertions(request),
            this.getPublishURI());
        if (o!=null) pa = (PublisherAssertions) o.getValue();

        return pa;
View Full Code Here

      } else if (operationClass.equals(SetPublisherAssertions.class)) {
          SetPublisherAssertions setPublisherAssertions = (SetPublisherAssertions) uddiReqObj;
          Method method = portType.getClass().getMethod(methodName, String.class, Holder.class);
          Holder<List<PublisherAssertion>> holder = new Holder<List<PublisherAssertion>>(setPublisherAssertions.getPublisherAssertion());
          result = method.invoke(portType, setPublisherAssertions.getAuthInfo(), holder);
          PublisherAssertions assertions = new PublisherAssertions();
          if (holder.value!=null) {
              assertions.getPublisherAssertion().addAll(holder.value);
          }
          result = assertions;
      } else if (operationClass.equals(GetPublisherAssertions.class)) {
          GetPublisherAssertions getPublisherAssertions = (GetPublisherAssertions) uddiReqObj;
          Method method = portType.getClass().getMethod(methodName, String.class);
View Full Code Here

                        } else if (operationClass.equals(SetPublisherAssertions.class)) {
                                SetPublisherAssertions setPublisherAssertions = (SetPublisherAssertions) uddiReqObj;
                                Method method = portType.getClass().getMethod(methodName, String.class, Holder.class);
                                Holder<List<PublisherAssertion>> holder = new Holder<List<PublisherAssertion>>(setPublisherAssertions.getPublisherAssertion());
                                result = method.invoke(portType, setPublisherAssertions.getAuthInfo(), holder);
                                PublisherAssertions assertions = new PublisherAssertions();
                                if (holder.value != null) {
                                        assertions.getPublisherAssertion().addAll(holder.value);
                                }
                                result = assertions;
                        } else if (operationClass.equals(GetPublisherAssertions.class)) {
                                GetPublisherAssertions getPublisherAssertions = (GetPublisherAssertions) uddiReqObj;
                                Method method = portType.getClass().getMethod(methodName, String.class);
View Full Code Here

TOP

Related Classes of org.apache.ws.scout.model.uddi.v2.PublisherAssertions

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.