Examples of GetPublisherDetail


Examples of org.apache.juddi.api_v3.GetPublisherDetail

      Publisher pubIn = (Publisher)EntityCreator.buildFromDoc(publisherXML, "org.apache.juddi.api_v3");
      sp.getPublisher().add(pubIn);
      publisher.savePublisher(sp);
 
      // Now get the entity and check the values
      GetPublisherDetail gp = new GetPublisherDetail();
      gp.getPublisherId().add(publisherId);
      gp.setAuthInfo(authInfo);
      PublisherDetail pd = publisher.getPublisherDetail(gp);
      List<Publisher> pubOutList = pd.getPublisher();
      Publisher pubOut = pubOutList.get(0);

      assertEquals(pubIn.getAuthorizedName(), pubOut.getAuthorizedName());
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

      publisher.deletePublisher(dp);
     
      logger.info("Querying for publisher: " + publisherId + " after deletion.");
      //Querying for this publisher to make sure it's really gone
      //We're expecting a invalid Key exception at this point.
      GetPublisherDetail gp = new GetPublisherDetail();
      gp.getPublisherId().add(publisherId);
      gp.setAuthInfo(authInfo);
      PublisherDetail pdAfterDelete =null;
      try {
        pdAfterDelete = publisher.getPublisherDetail(gp);
        Assert.fail("We did not expect to find this publisher anymore.");
      } catch (InvalidKeyPassedException e) {
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

      Assert.fail("No exception should be thrown");
    }
  }
 
  private boolean isExistPublisher(String publisherId) {
    GetPublisherDetail gp = new GetPublisherDetail();
    gp.getPublisherId().add(publisherId);
    try {
      publisher.getPublisherDetail(gp);
      return true;
    } catch (Exception e) {
      return false;
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

      Publisher pubIn = (Publisher)EntityCreator.buildFromDoc(publisherXML, "org.apache.juddi.api_v3");
      sp.getPublisher().add(pubIn);
      publisher.savePublisher(sp);
 
      // Now get the entity and check the values
      GetPublisherDetail gp = new GetPublisherDetail();
      gp.getPublisherId().add(publisherId);
      gp.setAuthInfo(authInfo);
      PublisherDetail pd = publisher.getPublisherDetail(gp);
      List<Publisher> pubOutList = pd.getPublisher();
      Publisher pubOut = pubOutList.get(0);

      assertEquals(pubIn.getAuthorizedName(), pubOut.getAuthorizedName());
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

      publisher.deletePublisher(dp);
     
      logger.info("Querying for publisher: " + publisherId + " after deletion.");
      //Querying for this publisher to make sure it's really gone
      //We're expecting a invalid Key exception at this point.
      GetPublisherDetail gp = new GetPublisherDetail();
      gp.getPublisherId().add(publisherId);
      gp.setAuthInfo(authInfo);
      PublisherDetail pdAfterDelete =null;
      try {
        pdAfterDelete = publisher.getPublisherDetail(gp);
        Assert.fail("We did not expect to find this publisher anymore.");
        //don't think we really want a SOAPFaulException be thrown here.
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

      Assert.fail("No exception should be thrown");
    }
  }
 
  private boolean isExistPublisher(String publisherId) {
    GetPublisherDetail gp = new GetPublisherDetail();
    gp.setAuthInfo(authInfo);
    gp.getPublisherId().add(publisherId);
    try {
      publisher.getPublisherDetail(gp);
      return true;
    } catch (Exception e) {
      return false;
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

  public JUDDIApiResponse getPublishers(String authToken, String publisherId)
  { 
    HttpServletRequest request = this.getThreadLocalRequest();
    HttpSession session = request.getSession();
    GetPublisherDetail getPublisherDetail = new GetPublisherDetail();
    getPublisherDetail.setAuthInfo(authToken);
    getPublisherDetail.getPublisherId().add(publisherId);
    logger.debug("GetPublisherDetail " + getPublisherDetail + " sending get PublisherDetail request..");
   
    JUDDIApiResponse response = new JUDDIApiResponse();
    List<Publisher> publishers = new ArrayList<Publisher>();
    try {
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

      Principal user = request.getUserPrincipal();
      if (user!=null) {
        username = user.getName();
      }
    }
    GetPublisherDetail getPublisherDetail = new GetPublisherDetail();
    getPublisherDetail.setAuthInfo(authToken);
    getPublisherDetail.getPublisherId().add(username);
   
    try {
       Transport transport = WebHelper.getTransport(session.getServletContext());
           JUDDIApiPortType apiService = transport.getJUDDIApiService();
           PublisherDetail publisherDetail = apiService.getPublisherDetail(getPublisherDetail);
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

                        System.out.println("All " + stm.getPublisher().size() + " publishers saved!");
                }
        }

        private boolean PublisherExists(String authorizedName, String token) {
                GetPublisherDetail r = new GetPublisherDetail();
                r.setAuthInfo(token);
                r.getPublisherId().add(authorizedName);
                try {
                        PublisherDetail publisherDetail = juddi.getPublisherDetail(r);
                        if (publisherDetail != null && !publisherDetail.getPublisher().isEmpty()) {
                                return true;
                        }
View Full Code Here

Examples of org.apache.juddi.api_v3.GetPublisherDetail

                        Publisher pubIn = (Publisher) EntityCreator.buildFromDoc(publisherXML, EntityCreator.JUDDIv3_Package);
                        sp.getPublisher().add(pubIn);
                        publisher.savePublisher(sp);

                        // Now get the entity and check the values
                        GetPublisherDetail gp = new GetPublisherDetail();
                        gp.getPublisherId().add(publisherId);
                        gp.setAuthInfo(authInfo);
                        PublisherDetail pd = publisher.getPublisherDetail(gp);
                        List<Publisher> pubOutList = pd.getPublisher();
                        Publisher pubOut = pubOutList.get(0);

                        assertEquals(pubIn.getAuthorizedName(), pubOut.getAuthorizedName());
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.