Package org.uddi.api_v2

Examples of org.uddi.api_v2.DeleteTModel


   *
   * @exception RegistryV3Exception;
   */
  public DispositionReport deleteTModel(String authInfo,
      String[] tModelKeyArray) throws RegistryV3Exception {
    DeleteTModel request = this.objectFactory.createDeleteTModel();

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

    if (tModelKeyArray != null) {
      request.getTModelKey().addAll(Arrays.asList(tModelKeyArray));
    }

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


  public void deleteTModel(String authInfo, String tModelXml, String tModelKey) {
   
    try {
      //Now deleting the TModel
      // Delete the entity and make sure it is removed
      DeleteTModel dt = new DeleteTModel();
      dt.setAuthInfo(authInfo);
     
      dt.getTModelKey().add(tModelKey);
      publication.deleteTModel(dt);
     
    } catch(Exception e) {
      logger.error(e.getMessage(),e);
      Assert.fail("No exception should be thrown");
View Full Code Here

   */
  public void unRegisterTModel(String tModelKey, Node node) {
    log.info("UnRegistering tModel key " + tModelKey);
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      DeleteTModel deleteTModel = new DeleteTModel();
      deleteTModel.setAuthInfo(authToken);
      deleteTModel.getTModelKey().add(tModelKey);
      getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteTModel(deleteTModel);
    } catch (Exception e) {
      log.error("Unable to unregister tModelkey " + tModelKey
          + " ." + e.getMessage(),e);
    }
View Full Code Here

         */
        public void unRegisterTModel(String tModelKey, Node node) {
                log.info("UnRegistering tModel key " + tModelKey);
                try {
                        String authToken = getAuthToken(node.getSecurityUrl());
                        DeleteTModel deleteTModel = new DeleteTModel();
                        deleteTModel.setAuthInfo(authToken);
                        deleteTModel.getTModelKey().add(tModelKey);
                        getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteTModel(deleteTModel);
                } catch (Exception e) {
                        log.error("Unable to unregister tModelkey " + tModelKey
                                + " ." + e.getMessage(), e);
                }
View Full Code Here

        tm.setTModelKey(validTmodelKeyGenMax);
        st.getTModel().add(tm);
       
        @SuppressWarnings("unused")
    TModelDetail saveTModel = publication.saveTModel(st);
        DeleteTModel dm = new DeleteTModel();
        dm.setAuthInfo(authInfoJoe);
        dm.getTModelKey().add(validTmodelKeyGenMax);
        publication.deleteTModel(dm);

    }
View Full Code Here

    private void DeleteTModels(List<String> businesskeysToDelete) {

        //cleanup
        try {
            DeleteTModel db = new DeleteTModel();
            db.setAuthInfo(authInfoJoe);
            db.getTModelKey().addAll(businesskeysToDelete);
            publication.deleteTModel(db);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here

                tm.setTModelKey(validTmodelKeyGenMax);
                st.getTModel().add(tm);

                @SuppressWarnings("unused")
                TModelDetail saveTModel = publicationJoe.saveTModel(st);
                DeleteTModel dm = new DeleteTModel();
                dm.setAuthInfo(authInfoJoe);
                dm.getTModelKey().add(validTmodelKeyGenMax);
                publicationJoe.deleteTModel(dm);

        }
View Full Code Here

        public static DeleteTModel MapDeleteTModel(org.uddi.api_v2.DeleteTModel body) {
                if (body == null) {
                        return null;
                }
                DeleteTModel r = new DeleteTModel();
                r.setAuthInfo(body.getAuthInfo());
                r.getTModelKey().addAll(body.getTModelKey());
                return r;
        }
View Full Code Here

               
                return publication.saveBusiness(sb).getBusinessEntity().get(0);
        }
       
        private void DeleteCheckedTModel(String string) throws Exception {
                DeleteTModel db = new DeleteTModel();
                db.setAuthInfo(authInfoJoe);
                db.getTModelKey().add(string);
                publication.deleteTModel(db);
        }
View Full Code Here

                }
                return "Success";
        }

        private String adminDelete_tmodel(HttpServletRequest parameters) {
                DeleteTModel sb = new DeleteTModel();
                sb.getTModelKey().add(parameters.getParameter("adminDelete_tmodelKEY"));
                sb.setAuthInfo(GetToken());
                try {
                        juddi.adminDeleteTModel(sb);
                } catch (Exception ex) {
                        if (isExceptionExpiration(ex)) {
                                token = null;
                                sb.setAuthInfo(GetToken());
                                try {
                                        juddi.adminDeleteTModel(sb);
                                } catch (Exception ex1) {
                                        return HandleException(ex);
                                }
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.DeleteTModel

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.