Package org.apache.juddi.model

Examples of org.apache.juddi.model.UddiEntityPublisher


    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, authInfo);
 
      List<org.uddi.api_v3.AssertionStatusItem> result = PublicationHelper.getAssertionStatusItemList(publisher, completionStatus, em);
 
      tx.commit();
                        long procTime = System.currentTimeMillis() - startTime;
View Full Code Here


    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, authInfo);
     
      List<org.uddi.api_v3.PublisherAssertion> result = new ArrayList<org.uddi.api_v3.PublisherAssertion>(0);
 
      List<?> businessKeysFound = null;
      businessKeysFound = FindBusinessByPublisherQuery.select(em, null, publisher, businessKeysFound);
View Full Code Here

    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
     
      new ValidatePublish(publisher).validateRegisteredInfo(body);

      List<?> businessKeysFound = null;
      businessKeysFound = FindBusinessByPublisherQuery.select(em, null, publisher, businessKeysFound);
View Full Code Here

    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
     
      UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
     
      ValidatePublish validator = new ValidatePublish(publisher);
      validator.validateSaveBinding(em, body, null);
 
      BindingDetail result = new BindingDetail();
View Full Code Here

                EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
     
      UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
     
      ValidatePublish validator = new ValidatePublish(publisher);
      validator.validateSaveBusiness(em, body, null);
 
      BusinessDetail result = new BusinessDetail();
View Full Code Here

    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
     
      ValidatePublish validator = new ValidatePublish(publisher);
      validator.validateSaveService(em, body, null);
     
      ServiceDetail result = new ServiceDetail();
View Full Code Here

    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo());
 
      new ValidatePublish(publisher).validateSaveTModel(em, body, null);
 
      TModelDetail result = new TModelDetail();
 
View Full Code Here

    EntityManager em = PersistenceManager.getEntityManager();
    EntityTransaction tx = em.getTransaction();
    try {
      tx.begin();
 
      UddiEntityPublisher publisher = this.getEntityPublisher(em, authInfo);
     
      new ValidatePublish(publisher).validateSetPublisherAssertions(em, publisherAssertion);
     
      List<?> businessKeysFound = null;
      businessKeysFound = FindBusinessByPublisherQuery.select(em, null, publisher, businessKeysFound);
 
      // First, wipe out all previous assertions associated with this publisher
      DeletePublisherAssertionByBusinessQuery.delete(em, businessKeysFound);
     
      // Slate is clean for all assertions involving this publisher, now we simply need to add the new ones (and they will all be "new").
      List<org.uddi.api_v3.PublisherAssertion> apiPubAssertionList = publisherAssertion.value;
      for (org.uddi.api_v3.PublisherAssertion apiPubAssertion : apiPubAssertionList) {
       
        org.apache.juddi.model.PublisherAssertion modelPubAssertion = new org.apache.juddi.model.PublisherAssertion();
       
        MappingApiToModel.mapPublisherAssertion(apiPubAssertion, modelPubAssertion);
       
        org.apache.juddi.model.BusinessEntity beFrom = em.find(org.apache.juddi.model.BusinessEntity.class, modelPubAssertion.getId().getFromKey());
        org.apache.juddi.model.BusinessEntity beTo = em.find(org.apache.juddi.model.BusinessEntity.class, modelPubAssertion.getId().getToKey());
        modelPubAssertion.setBusinessEntityByFromKey(beFrom);
        modelPubAssertion.setBusinessEntityByToKey(beTo);
       
        modelPubAssertion.setFromCheck("false");
        modelPubAssertion.setToCheck("false");
       
        em.persist(modelPubAssertion);
 
        if (publisher.isOwner(modelPubAssertion.getBusinessEntityByFromKey()))
          modelPubAssertion.setFromCheck("true");
        if (publisher.isOwner(modelPubAssertion.getBusinessEntityByToKey()))
          modelPubAssertion.setToCheck("true");
       
      }
 
      tx.commit();
View Full Code Here

            Date notificationDate = new Date(scheduledExecutionTime());
            GetSubscriptionResults getSubscriptionResults =
              buildGetSubscriptionResults(subscription, notificationDate);
            if (getSubscriptionResults!=null) {
              getSubscriptionResults.setSubscriptionKey(subscription.getSubscriptionKey());
              UddiEntityPublisher publisher = new UddiEntityPublisher();
              publisher.setAuthorizedName(subscription.getAuthorizedName());
              SubscriptionResultsList resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
                                                        String token = resultList.getChunkToken();
              if (resultListContainsChanges(resultList)) {
                log.debug("We have a change and need to notify " + subscription.getSubscriptionKey());
                                                                resultList.setChunkToken(null);
View Full Code Here

              log.info("Sending out notification to " + bindingTemplate.getAccessPointUrl());
              notifier.notifySubscriptionListener(body);
              //there maybe more chunks we have to send
              String chunkToken=body.getSubscriptionResultsList().getChunkToken();
              while(chunkToken!=null) {
                UddiEntityPublisher publisher = new UddiEntityPublisher();
                publisher.setAuthorizedName(modelSubscription.getAuthorizedName());
                log.debug("Sending out next chunk: " + chunkToken + " to " + bindingTemplate.getAccessPointUrl());
                getSubscriptionResults.setChunkToken(chunkToken);
                resultList = subscriptionImpl.getSubscriptionResults(getSubscriptionResults, publisher);
                body.setSubscriptionResultsList(resultList);
                notifier.notifySubscriptionListener(body);
View Full Code Here

TOP

Related Classes of org.apache.juddi.model.UddiEntityPublisher

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.