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

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


   *
   * @exception RegistryException;
   */
  public DispositionReport deleteBusiness(String authInfo,
      String[] businessKeyArray) throws RegistryException {
    DeleteBusiness request = this.objectFactory.createDeleteBusiness();
   
    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (businessKeyArray != null) {
      request.getBusinessKey().addAll(Arrays.asList(businessKeyArray));
    }

        DispositionReport dr;
        JAXBElement<?> o = execute(this.objectFactory.createDeleteBusiness(request), this.getPublishURI());
        dr = (DispositionReport) o.getValue();
View Full Code Here


   *
   * @exception RegistryException;
   */
  public DispositionReport deleteBusiness(String authInfo,
      String[] businessKeyArray) throws RegistryException {
    DeleteBusiness request = this.objectFactory.createDeleteBusiness();
   
    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (businessKeyArray != null) {
      request.getBusinessKey().addAll(Arrays.asList(businessKeyArray));
    }

        DispositionReport dr;
        JAXBElement<?> o = execute(this.objectFactory.createDeleteBusiness(request), this.getPublishURI());
        dr = (DispositionReport) o.getValue();
View Full Code Here

                return r;
               
        }
       
        public static DeleteBusiness MapDeleteBusiness(org.uddi.api_v3.DeleteBusiness body) {
                DeleteBusiness r = new DeleteBusiness();
                r.setGeneric(VERSION);
               
                r.setAuthInfo(body.getAuthInfo());
                r.getBusinessKey().addAll(body.getBusinessKey());
                return r;
        }
View Full Code Here

  public void deleteBusinesses(String authInfo, String businessXML, String businessKey, int numberOfCopies) {
    try {
      for (int i=0; i<numberOfCopies; i++) {
        // Delete the entity and make sure it is removed
        String key = businessKey + "-" + i;
        DeleteBusiness db = new DeleteBusiness();
        db.setAuthInfo(authInfo);
        db.getBusinessKey().add(key);
        publication.deleteBusiness(db);
        logger.debug("Deleted business with key " + key);
      }
     
    } catch(Exception e) {
View Full Code Here

 
 
  public void deleteBusiness(String authInfo, String businessXML, String businessKey) {
    try {
      // Delete the entity and make sure it is removed
      DeleteBusiness db = new DeleteBusiness();
      db.setAuthInfo(authInfo);
      db.getBusinessKey().add(businessKey);
      publication.deleteBusiness(db);
     
    } catch(Exception e) {
      logger.error(e.getMessage(),e);
      Assert.fail("No exception should be thrown");
View Full Code Here

        public static void DeleteBusiness(String key, String authInfo, UDDIPublicationPortType publish) {
                if (key == null) {
                        return;
                }
                try {
                        DeleteBusiness db = new DeleteBusiness();
                        db.setAuthInfo(authInfo);
                        db.getBusinessKey().add(key);
                        publish.deleteBusiness(db);
                } catch (Exception ex) {
                        logger.warn("failed to delete business " + key + " " + ex.getMessage());
                        logger.debug("failed to delete business " + key + " " + ex.getMessage(), ex);
                }
View Full Code Here

        }
        if (method.equalsIgnoreCase("deleteBinding")) {
            JAXB.marshal(new DeleteBinding(), sw);
        }
        if (method.equalsIgnoreCase("deleteBusiness")) {
            JAXB.marshal(new DeleteBusiness(), sw);
        }
        if (method.equalsIgnoreCase("deletePublisherAssertions")) {
            JAXB.marshal(new DeletePublisherAssertions(), sw);
        }
        if (method.equalsIgnoreCase("deleteService")) {
View Full Code Here

   */
  @Override
  protected void execute() throws Exception
  {
   
    DeleteBusiness deleteBusiness = new DeleteBusiness();
    deleteBusiness.setAuthInfo(authenticationToken.getAuthInfo());
    deleteBusiness.getBusinessKey().add(businessEntity.getBusinessKey());
   
    // execute the DeleteService operation.
    publishService.deleteBusiness(deleteBusiness);
  }
View Full Code Here

        public void deleteBusinesses(String authInfo, String businessXML, String businessKey, int numberOfCopies) {
                try {
                        for (int i = 0; i < numberOfCopies; i++) {
                                // Delete the entity and make sure it is removed
                                String key = businessKey + "-" + i;
                                DeleteBusiness db = new DeleteBusiness();
                                db.setAuthInfo(authInfo);
                                db.getBusinessKey().add(key);
                                publication.deleteBusiness(db);
                                logger.debug("Deleted business with key " + key);
                        }

                } catch (Exception e) {
View Full Code Here

        }

        public void deleteBusiness(String authInfo, String businessXML, String businessKey) {
                try {
                        // Delete the entity and make sure it is removed
                        DeleteBusiness db = new DeleteBusiness();
                        db.setAuthInfo(authInfo);
                        db.getBusinessKey().add(businessKey);
                        publication.deleteBusiness(db);

                } catch (Exception e) {
                        logger.error(e.getMessage(), e);
                        Assert.fail("No exception should be thrown");
View Full Code Here

TOP

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

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.