Package org.uddi.api_v2

Examples of org.uddi.api_v2.TModelDetail


        tm.getName().setLang("en");

        tm.setTModelKey("uddi:uddi.joepublisher.com:nokeygenerator:customkey");
        st.getTModel().add(tm);
        try {
          @SuppressWarnings("unused")
            TModelDetail saveTModel = publication.saveTModel(st);
            Assert.fail("request should have been rejected");
        } catch (ValueNotAllowedException ex) {
            HandleException(ex);
            throw ex;
View Full Code Here


                                        clerk.unRegisterService(serviceKey);
                                        if (bindingTemplate.getTModelInstanceDetails() != null
                                                && bindingTemplate.getTModelInstanceDetails().getTModelInstanceInfo() != null) {
                                                for (TModelInstanceInfo tModelInstanceInfo : bindingTemplate.getTModelInstanceDetails().getTModelInstanceInfo()) {
                                                        String tModelKey = tModelInstanceInfo.getTModelKey();
                                                        TModelDetail tModelDetail = clerk.getTModelDetail(tModelKey);
                                                        //delete all tModels assuming they are the portType and Binding tModels.
                                                        if (tModelDetail.getTModel() != null && tModelDetail.getTModel().size() > 0) {
                                                                for (TModel tModel : tModelDetail.getTModel()) {
                                                                        if (!tModel.getTModelKey().startsWith("uddi:uddi.org:")) {
                                                                                clerk.unRegisterTModel(tModel.getTModelKey());
                                                                        } else {
                                                                                log.info("Skipping the removal of " + tModel.getTModelKey() + " because it starts with uddi.org");
                                                                        }
View Full Code Here

            TModelInfo tModelInfo = tModelList.getTModelInfos().getTModelInfo().get(0);
            String bpel4WSTModelKey = tModelInfo.getTModelKey();
            clerk.unRegisterTModel(bpel4WSTModelKey);
            // now use this key to find the portType TModels
            GetTModelDetail findAllPortTypesForProcess = createFindAllPortTypesForProcess_1(bpel4WSTModelKey);
            TModelDetail tModelDetail = clerk.getTModelDetail(findAllPortTypesForProcess);
            if (tModelDetail!=null) {
              List<TModel> tModelPortTypeList = tModelDetail.getTModel();
              if (tModelPortTypeList!=null && tModelPortTypeList.size()>0) {
                TModel bpel4WSTModel = tModelPortTypeList.get(0);
                CategoryBag categoryBag = bpel4WSTModel.getCategoryBag();
                if (categoryBag!=null && categoryBag.getKeyedReference()!=null) {
                  List<KeyedReference> portTypeTModelKeys = new ArrayList<KeyedReference>();
View Full Code Here

                Assert.assertNotNull(tModelList.getTModelInfos());

                tckTModelJoe.deleteJoePublisherTmodel(authInfoJoe);

                //Even if it deleted you should still be able to access it through a getTModelDetail
                TModelDetail detail = tckTModelJoe.getJoePublisherTmodel(authInfoJoe);
                Assert.assertNotNull(detail.getTModel());

                //However if we use a finder it should not be found.
                TModelList tModelList2 = tckTModelJoe.findJoeTModelDetail();
                Assert.assertNull(tModelList2.getTModelInfos());
View Full Code Here

         * @param tModel
         * @param node
         * @return a tModel object or null if registration failed
         */
        public TModelDetail register(TModel tModel, Node node) {
                TModelDetail tModelDetail = null;
                log.info("Registering tModel with key " + tModel.getTModelKey());
                try {
                        SaveTModel saveTModel = new SaveTModel();
                        saveTModel.setAuthInfo(getAuthToken(node.getSecurityUrl()));
                        saveTModel.getTModel().add(tModel);
View Full Code Here

        public TModelDetail getTModelDetail(GetTModelDetail getTModelDetail, Node node) throws RemoteException,
                TransportException, ConfigurationException {

                getTModelDetail.setAuthInfo(getAuthToken(node.getSecurityUrl()));
                try {
                        TModelDetail tModelDetail = getUDDINode().getTransport().getUDDIInquiryService(node.getInquiryUrl()).getTModelDetail(getTModelDetail);
                        return tModelDetail;
                } catch (DispositionReportFaultMessage dr) {
                        DispositionReport report = DispositionReportFaultMessage.getDispositionReport(dr);
                        checkForErrorInDispositionReport(report, null, null);
                } catch (SOAPFaultException sfe) {
View Full Code Here

                kr.setKeyValue("keyGenerator");
                tm.getCategoryBag().getKeyedReference().add(kr);
                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

                kr.setKeyValue("keyGenerator");
                tm.getCategoryBag().getKeyedReference().add(kr);
                tm.setTModelKey(validTmodelKeyGenTooLong);
                st.getTModel().add(tm);
                try {
                        @SuppressWarnings("unused")
                        TModelDetail saveTModel = publicationJoe.saveTModel(st);
                        Assert.fail("request should have been rejected");
                } catch (SOAPFaultException ex) {
                        HandleException(ex);
                        throw ex;
View Full Code Here

                kr.setKeyValue("keyGenerator");
                tm.getCategoryBag().getKeyedReference().add(kr);
                tm.setTModelKey("uddi:uddi.joepublisher.com:mycustomkey");
                st.getTModel().add(tm);
                try {
                        @SuppressWarnings("unused")
                        TModelDetail saveTModel = publicationJoe.saveTModel(st);
                        Assert.fail("request should have been rejected");
                } catch (SOAPFaultException ex) {
                        HandleException(ex);
                        throw ex;
View Full Code Here

                tm.getCategoryBag().getKeyedReference().add(kr);
                String key = UUID.randomUUID().toString();
                tm.setTModelKey(key);
                st.getTModel().add(tm);
                try {
                        @SuppressWarnings("unused")
                        TModelDetail saveTModel = publicationJoe.saveTModel(st);
                        Assert.fail("request should have been rejected");
                } catch (SOAPFaultException ex) {
                        HandleException(ex);
                        throw ex;
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.TModelDetail

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.