Package org.uddi.api_v2

Examples of org.uddi.api_v2.TModel


                        UDDISubscriptionListenerImpl.notificationCount = 0;
                        String before = TckCommon.DumpAllTModels(authInfoJoe, inquiryJoe);

                        tckTModelJoe.saveJoePublisherTmodel(authInfoJoe);
                        tckTModelJoe.saveTModels(authInfoJoe, TckTModel.JOE_PUBLISHER_TMODEL_XML_SUBSCRIPTION3);
                        TModel saveMaryPublisherTmodel = tckTModelMary.saveMaryPublisherTmodel(authInfoMary);
                       
                        tckBusinessJoe.saveJoePublisherBusiness(authInfoJoe);
                        tckBusinessServiceJoe.saveJoePublisherService(authInfoJoe);
                        //Saving the Listener Service
                        tckSubscriptionListenerJoe.saveService(authInfoJoe, TckSubscriptionListener.LISTENER_HTTP_SERVICE_XML, httpPort, hostname);
View Full Code Here


                }
                if (!partitionName.endsWith(":keygenerator")) {
                        //throw new IllegalArgumentException("partitionName must have a ':keygenerator' postfix");
                        partitionName = partitionName + ":keygenerator";
                }
                TModel tm = new TModel();
                tm.setName(new Name());
                tm.getName().setValue(DescriptiveName);
                tm.getName().setLang(DescriptiveNameLanguage);
                tm.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setTModelKey(UDDIConstants.KEY_GENERATOR_TMODEL);
                kr.setKeyName(UDDIConstants.KEY_GENERATOR);
                kr.setKeyValue(UDDIConstants.KEY_GENERATOR_VALUE);
                tm.getCategoryBag().getKeyedReference().add(kr);
                OverviewDoc overviewDoc = new OverviewDoc();
                OverviewURL overviewUrl = new OverviewURL();
                overviewUrl.setUseType("text");
                overviewUrl.setValue("http://uddi.org/pubs/uddi_v3.htm#keyGen");
                overviewDoc.setOverviewURL(overviewUrl);
                tm.getOverviewDoc().add(overviewDoc);
                tm.setTModelKey(partitionName.toLowerCase());
                return tm;
        }
View Full Code Here

                        UDDISubscriptionListenerImpl.notificationCount = 0;
                        String before = TckCommon.DumpAllTModels(authInfoJoe, inquiryJoe);

                        tckTModelJoe.saveJoePublisherTmodel(authInfoJoe);
                        tckTModelJoe.saveTModels(authInfoJoe, TckTModel.JOE_PUBLISHER_TMODEL_XML_SUBSCRIPTION3);
                        TModel saveMaryPublisherTmodel = tckTModelMary.saveMaryPublisherTmodel(authInfoMary);

                        tckBusinessJoe.saveJoePublisherBusiness(authInfoJoe);
                        tckBusinessServiceJoe.saveJoePublisherService(authInfoJoe);
                        //Saving the Listener Service
                        tckSubscriptionListenerJoe.saveService(authInfoJoe, TckSubscriptionListener.LISTENER_HTTP_SERVICE_XML, httpPort, hostname);
View Full Code Here

                        UDDISubscriptionListenerImpl.notificationCount = 0;
                        String before = TckCommon.DumpAllTModels(authInfoJoe, inquiryJoe);

                        tckTModelJoe.saveJoePublisherTmodel(authInfoJoe);
                        tckTModelJoe.saveTModels(authInfoJoe, TckTModel.JOE_PUBLISHER_TMODEL_XML_SUBSCRIPTION3);
                        TModel saveMaryPublisherTmodel = tckTModelMary.saveMaryPublisherTmodel(authInfoMary);

                        tckBusinessJoe.saveJoePublisherBusiness(authInfoJoe);
                        tckBusinessServiceJoe.saveJoePublisherService(authInfoJoe);
                        //Saving the Listener Service
                        tckSubscriptionListenerJoe.saveService(authInfoJoe, TckSubscriptionListener.LISTENER_SMTP_SERVICE_EXTERNAL_XML, 0, email);
View Full Code Here

                BusinessDetail saveBusiness = publication.saveBusiness(sb);
                return saveBusiness.getBusinessEntity().get(0);
        }
       
        private void SaveCheckedTModel(String key, String binding) throws Exception {
                TModel tm = new TModel();
                tm.setTModelKey(key);
                tm.setCategoryBag(new CategoryBag());
                tm.setName(new Name("My Custom validated key", "en"));
                tm.getDescription().add(new Description("valid values include 'one', 'two', 'three'", "en"));
                tm.getCategoryBag().getKeyedReference().add(
                        new KeyedReference(UDDIConstants.IS_VALIDATED_BY, UDDIConstants.IS_VALIDATED_BY_KEY_NAME, binding));
                SaveTModel stm = new SaveTModel();
                stm.setAuthInfo(authInfoJoe);
                stm.getTModel().add(tm);
                publication.saveTModel(stm);
View Full Code Here

        public void CreateKeyGenMaxLengthTest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("CreateKeyGenMaxLengthTest");

                SaveTModel st = new SaveTModel();
                st.setAuthInfo(authInfoJoe);
                TModel tm = new TModel();
                tm.setName(new Name());
                tm.getName().setValue("CreateKeyGenMaxLengthTest My Cool Company Keymodel generator");
                tm.getName().setLang("en");
                tm.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setTModelKey("uddi:uddi.org:categorization:types");
                kr.setKeyName("uddi-org:keyGenerator");
                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();
View Full Code Here

        public void CreateKeyGenTooLongTest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("CreateKeyGenTooLongTest");

                SaveTModel st = new SaveTModel();
                st.setAuthInfo(authInfoJoe);
                TModel tm = new TModel();
                tm.setName(new Name());
                tm.getName().setValue("CreateKeyGenTooLongTest My Cool Company Keymodel generator");
                tm.getName().setLang("en");
                tm.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setTModelKey("uddi:uddi.org:categorization:types");
                kr.setKeyName("uddi-org:keyGenerator");
                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");
View Full Code Here

        public void CreateKeyGenKeyDescriptionTooLongTest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("CreateKeyGenKeyDescriptionTooLongTest");

                SaveTModel st = new SaveTModel();
                st.setAuthInfo(authInfoJoe);
                TModel tm = new TModel();
                tm.setName(new Name());
                tm.getName().setValue("CreateKeyGenKeyDescriptionTooLongTest Key gen name");
                tm.getName().setLang("en");
                Description d = new Description();
                d.setValue(str256);
                tm.getDescription().add(d);
                tm.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setTModelKey("uddi:uddi.org:categorization:types");
                kr.setKeyName("uddi-org:keyGenerator");
                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");
View Full Code Here

        public void CreateKeyGenKeyDescriptionLangTooLongTest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("CreateKeyGenKeyDescriptionTooLongTest");

                SaveTModel st = new SaveTModel();
                st.setAuthInfo(authInfoJoe);
                TModel tm = new TModel();
                tm.setName(new Name());
                tm.getName().setValue("CreateKeyGenKeyDescriptionTooLongTest Key gen name");
                tm.getName().setLang("en");
                Description d = new Description();
                d.setValue("A description");
                d.setLang(str256);
                tm.getDescription().add(d);
                tm.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setTModelKey("uddi:uddi.org:categorization:types");
                kr.setKeyName("uddi-org:keyGenerator");
                kr.setKeyValue("keyGenerator");
                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");
View Full Code Here

        public void CreateKeyGenNameLangTooLongTest() throws DispositionReportFaultMessage, RemoteException {
                System.out.println("CreateKeyGenNameLangTooLongTest");

                SaveTModel st = new SaveTModel();
                st.setAuthInfo(authInfoJoe);
                TModel tm = new TModel();
                tm.setName(new Name());
                tm.getName().setValue("CreateKeyGenNameLangTooLongTest hello world");
                tm.getName().setLang(str27);
                tm.setCategoryBag(new CategoryBag());
                KeyedReference kr = new KeyedReference();
                kr.setTModelKey("uddi:uddi.org:categorization:types");
                kr.setKeyName("uddi-org:keyGenerator");
                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");
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.TModel

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.