Examples of PublisherAssertions


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

        IRegistry registry = (IRegistry) registryService.getRegistry();
        try
        {
            ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
            PublisherAssertions result = null;
            try {
                    result = registry.getPublisherAssertions(auth.getAuthInfo());
          } catch (RegistryException rve) {
            String username = getUsernameFromCredentials(con.getCredentials());
            if (AuthTokenSingleton.getToken(username) != null) {
              AuthTokenSingleton.deleteAuthToken(username);
            }
            auth = getAuthToken(con, registry);
                result = registry.getPublisherAssertions(auth.getAuthInfo());
          }

            List<PublisherAssertion> publisherAssertionList = result.getPublisherAssertion();
            LinkedHashSet<Association> col = new LinkedHashSet<Association>();
            for (PublisherAssertion pas : publisherAssertionList) {
                String sourceKey = pas.getFromKey();
                String targetKey = pas.getToKey();
       
View Full Code Here

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

                PublisherAssertion pa = ScoutJaxrUddiHelper.getPubAssertionFromJAXRAssociation(association);
                sarr[currLoc] = pa;
                currLoc++;
           
                // Save PublisherAssertion
                PublisherAssertions bd = null;
                try {
                    bd = (PublisherAssertions) executeOperation(sarr, "SAVE_ASSOCIATION");
                }
                catch (RegistryException 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

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

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

        PublisherAssertions pa;
        JAXBElement<?> o = execute(this.objectFactory.createGetPublisherAssertions(request),
            this.getPublishURI());
        pa = (PublisherAssertions) o.getValue();

        return pa;
View Full Code Here

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

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

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

        return pa;
View Full Code Here

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

        IRegistry registry = registryService.getRegistry();
        try
        {
            ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
            PublisherAssertions result =
                    registry.getPublisherAssertions(auth.getAuthInfo());
            List<PublisherAssertion> publisherAssertionList = result.getPublisherAssertion();
            LinkedHashSet<Association> col = new LinkedHashSet<Association>();
            for (PublisherAssertion pas : publisherAssertionList) {
                String sourceKey = pas.getFromKey();
                String targetKey = pas.getToKey();
                if ((sourceObjectId==null || sourceObjectId.equals(sourceKey))
View Full Code Here

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

                PublisherAssertion pa = ScoutJaxrUddiHelper.getPubAssertionFromJAXRAssociation(association);
                sarr[currLoc] = pa;
                currLoc++;
           
                // Save PublisherAssertion
                PublisherAssertions bd = null;
                try {
                    bd = (PublisherAssertions) executeOperation(sarr, "SAVE_ASSOCIATION");
                }
                catch (RegistryException 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

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

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

        PublisherAssertions pa;
        XmlObject o = execute(doc, this.getPublishURI()).changeType(
                PublisherAssertionsDocument.type);
        pa = ((PublisherAssertionsDocument) o).getPublisherAssertions();

        return pa;
View Full Code Here

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

    if (assertionArray != null) {
      request.setPublisherAssertionArray(assertionArray);
    }

        PublisherAssertions pa;
        XmlObject o = execute(doc, this.getPublishURI()).changeType(
                PublisherAssertionsDocument.type);
        pa = ((PublisherAssertionsDocument) o).getPublisherAssertions();

        return pa;
View Full Code Here

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

        IRegistry registry = registryService.getRegistry();
        try
        {
            ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
            PublisherAssertions result =
                    registry.getPublisherAssertions(auth.getAuthInfo());
            PublisherAssertion[] a = result.getPublisherAssertionArray();

            LinkedHashSet<Association> col = null;
            int len = 0;
            if (a != null)
            {
View Full Code Here

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

                PublisherAssertion pa = ScoutJaxrUddiHelper.getPubAssertionFromJAXRAssociation(association);
                sarr[currLoc] = pa;
                currLoc++;
           
                // Save PublisherAssertion
                PublisherAssertions bd = null;
                try {
                    bd = (PublisherAssertions) executeOperation(sarr, "SAVE_ASSOCIATION");
                }
                catch (RegistryException e) {
                    exceptions.add(new SaveException(e));
                    bulk.setExceptions(exceptions);
                    bulk.setStatus(JAXRResponse.STATUS_FAILURE);
                    return bulk;
                }
                if(bd != null)
                {
                  PublisherAssertion[] keyarr = bd.getPublisherAssertionArray();
                  for (int i = 0; keyarr != null && i < keyarr.length; i++) {
                    PublisherAssertion result = (PublisherAssertion) keyarr[i];
                        KeyedReference keyr = result.getKeyedReference();
                        Concept c = new ConceptImpl(getRegistryService().getBusinessLifeCycleManager());
                        c.setName(new InternationalStringImpl(keyr.getKeyName()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.