Package org.apache.juddi.api_v3

Examples of org.apache.juddi.api_v3.ObjectFactory


   
    Node node = new Node();
    node.setSecurityUrl("http://localhost:8080/services/securityUrl");
    node.setName("default");
   
    Clerk clerk = new Clerk();
    clerk.setName("default");
    clerk.setPublisher("root");
    clerk.setNode(node);
 
                Clerk toClerk = new Clerk();
                toClerk.setName("medroot");
                toClerk.setPublisher("root");
                toClerk.setNode(node);
 
    clientSubscriptionInfo.setFromClerk(clerk);
    clientSubscriptionInfo.setToClerk(toClerk);
   
    clientSubscriptionInfo.setSubscriptionKey("mykey");
View Full Code Here


    node.setManagerName("defaultManager");
    SaveNode saveNode = new SaveNode();
    saveNode.setAuthInfo(authInfoJoe);
    saveNode.getNode().add(node);
   
    Clerk clerk = new Clerk();
    clerk.setName("clerkName");
    clerk.setPublisher("root");
    clerk.setNode(node);
    SaveClerk saveClerk = new SaveClerk();
    saveClerk.setAuthInfo(authInfoJoe);
    saveClerk.getClerk().add(clerk);
   
    clientSubscriptionInfo.setFromClerk(clerk);
   
    Node node2 = new Node();
    node2.setSecurityUrl("http://localhost:8080/services/securityUrl2");
    node2.setCustodyTransferUrl("https://localhost:8080/services/securityUrl2");
    node2.setDescription("description2");
    node2.setInquiryUrl("http://localhost:8080/services/securityUrl2");
    node2.setPublishUrl("http://localhost:8080/services/securityUrl2");
    node2.setProxyTransport("class2");
    node2.setSubscriptionUrl("http://localhost:8080/services/securityUrl2");
    node2.setName("default2");
    node2.setManagerName("default2Manager");
    saveNode.getNode().add(node2);
   
    Clerk clerk2 = new Clerk();
    clerk2.setName("clerkName2");
    clerk2.setPublisher("root");
    clerk2.setNode(node2);
    saveClerk.getClerk().add(clerk2);
   
    clientSubscriptionInfo.setFromClerk(clerk);
   
    clientSubscriptionInfo.setSubscriptionKey("mykey");
View Full Code Here

    }
    return clerkDetail;
  }
 
  public Clerk getApiClerk() {
    Clerk apiClerk = new Clerk();
    apiClerk.setName(name);
    apiClerk.setNode(uddiNode.getApiNode());
    apiClerk.setPassword(password);
    apiClerk.setPublisher(publisher);
    return apiClerk;
  }
View Full Code Here

    }
   
    for (GetSubscriptionResults getSubscriptionResult : body.getGetSubscriptionResultsList()) {
      try {
        String subscriptionKey = getSubscriptionResult.getSubscriptionKey();
        Clerk fromClerk = clientSubscriptionInfoMap.get(subscriptionKey).getFromClerk();
        Clerk toClerk = clientSubscriptionInfoMap.get(subscriptionKey).getToClerk();
        String clazz = fromClerk.getNode().getProxyTransport();
        Class<?> transportClass = Loader.loadClass(clazz);
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(fromClerk.getNode().getName());
        UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService(fromClerk.getNode().getSubscriptionUrl());
        SubscriptionResultsList list = subscriptionService.getSubscriptionResults(getSubscriptionResult);
View Full Code Here

    }
   
    for (GetSubscriptionResults getSubscriptionResult : body.getGetSubscriptionResultsList()) {
      try {
        String subscriptionKey = getSubscriptionResult.getSubscriptionKey();
        Clerk fromClerk = clientSubscriptionInfoMap.get(subscriptionKey).getFromClerk();
        Clerk toClerk = clientSubscriptionInfoMap.get(subscriptionKey).getToClerk();
        String clazz = fromClerk.getNode().getProxyTransport();
        Class<?> transportClass = ClassUtil.forName(clazz, this.getClass());
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(fromClerk.getNode().getName());
        UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService(fromClerk.getNode().getSubscriptionUrl());
        SubscriptionResultsList list = subscriptionService.getSubscriptionResults(getSubscriptionResult);
View Full Code Here

    }
   
    for (GetSubscriptionResults getSubscriptionResult : body.getGetSubscriptionResultsList()) {
      try {
        String subscriptionKey = getSubscriptionResult.getSubscriptionKey();
        Clerk fromClerk = clientSubscriptionInfoMap.get(subscriptionKey).getFromClerk();
        Clerk toClerk = clientSubscriptionInfoMap.get(subscriptionKey).getToClerk();
        String clazz = fromClerk.getNode().getProxyTransport();
        Class<?> transportClass = Loader.loadClass(clazz);
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(fromClerk.getNode().getName());
        UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService(fromClerk.getNode().getSubscriptionUrl());
        SubscriptionResultsList list = subscriptionService.getSubscriptionResults(getSubscriptionResult);
View Full Code Here

                }

                for (GetSubscriptionResults getSubscriptionResult : body.getGetSubscriptionResultsList()) {
                        try {
                                String subscriptionKey = getSubscriptionResult.getSubscriptionKey();
                                Clerk fromClerk = clientSubscriptionInfoMap.get(subscriptionKey).getFromClerk();
                                Clerk toClerk = clientSubscriptionInfoMap.get(subscriptionKey).getToClerk();
                                String clazz = fromClerk.getNode().getProxyTransport();
                                Class<?> transportClass = ClassUtil.forName(clazz, this.getClass());
                                Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(fromClerk.getNode().getName());
                                UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService(fromClerk.getNode().getSubscriptionUrl());
                                SubscriptionResultsList list = subscriptionService.getSubscriptionResults(getSubscriptionResult);
View Full Code Here

    saveClientSubscriptionInfo.getClientSubscriptionInfo().add(clientSubscriptionInfo2);
   
    try {

      NodeDetail nodeDetail = publisher.saveNode(saveNode);
      ClerkDetail clerkDetail = publisher.saveClerk(saveClerk);
      Assert.assertEquals(2,nodeDetail.getNode().size());
      Assert.assertEquals(2,clerkDetail.getClerk().size());
     
      ClientSubscriptionInfoDetail detail = publisher.saveClientSubscriptionInfo(saveClientSubscriptionInfo);
      Assert.assertEquals("mykey", detail.getClientSubscriptionInfo().get(0).getSubscriptionKey());
     
      GetClientSubscriptionInfoDetail getDetail = new GetClientSubscriptionInfoDetail();
View Full Code Here

    }
    return nodeDetail;
  }
 
  public ClerkDetail saveClerk(UDDIClerk senderClerk)  {
    ClerkDetail clerkDetail = null;
    try {
      log.info("Sending Clerk " + senderClerk.getName() + " info to jUDDI " + getUDDINode().getName());
      SaveClerk saveClerk = new SaveClerk();
      saveClerk.setAuthInfo(getAuthToken(senderClerk.getUDDINode().getSecurityUrl()));
      saveClerk.getClerk().add(getApiClerk());
View Full Code Here

 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
     
      new ValidateClerk(publisher).validateSaveClerk(em, body);
     
      ClerkDetail result = new ClerkDetail();
 
      List<org.apache.juddi.api_v3.Clerk> apiClerkList = body.getClerk();;
      for (org.apache.juddi.api_v3.Clerk apiClerk : apiClerkList) {
       
        org.apache.juddi.model.Clerk modelClerk = new org.apache.juddi.model.Clerk();
       
        MappingApiToModel.mapClerk(apiClerk, modelClerk);
       
        Object existingUddiEntity = em.find(modelClerk.getClass(), modelClerk.getClerkName());
        if (existingUddiEntity != null) {
          em.merge(modelClerk);
        } else {
          em.persist(modelClerk);
        }
       
        result.getClerk().add(apiClerk);
      }
 
      tx.commit();
      return result;
    } finally {
View Full Code Here

TOP

Related Classes of org.apache.juddi.api_v3.ObjectFactory

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.