Package javax.xml.registry

Examples of javax.xml.registry.JAXRException


                tm.setCategoryBag(catBag);
            }
     
      // ToDO: overviewDoc
    } catch (Exception ud) {
            throw new JAXRException("Apache JAXR Impl:", ud);
        }
        return tm;
    }
View Full Code Here


                orgs.add(registryService.getLifeCycleManagerImpl().createOrganization(detail));
            }
            return new BulkResponseImpl(orgs);
        } catch (RegistryException e)
        {
            throw new JAXRException(e);
        }
    }
View Full Code Here

                col.add(asso);
            }
            return new BulkResponseImpl(col);
        } catch (RegistryException e)
        {
            throw new JAXRException(e);
        }
    }
View Full Code Here


            return new BulkResponseImpl(col);
        } catch (RegistryException e)
        {
            throw new JAXRException(e);
        }
    }
View Full Code Here

                    }

                } catch (RegistryException e)
                {
                    e.printStackTrace();
                    throw new JAXRException(e.getLocalizedMessage());
                }
            }
        }
        return scheme;
    }
View Full Code Here

                }

            } catch (RegistryException e)
            {
                e.printStackTrace();
                throw new JAXRException(e.getLocalizedMessage());
            }
        }

        return new BulkResponseImpl(col);
    }
View Full Code Here

                blkRes.setCollection(col);
            }
        }
        catch (RegistryException e) {
            e.printStackTrace();
            throw new JAXRException(e.getLocalizedMessage());
        }

        return blkRes;
    }
View Full Code Here

                blkRes.setCollection(col);
            }
        }
        catch (RegistryException e) {
            e.printStackTrace();
            throw new JAXRException(e.getLocalizedMessage());
        }

        return blkRes;
    }
View Full Code Here

                return scheme;
            }
            catch (RegistryException e) {
                e.printStackTrace();
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.ORGANIZATION.equalsIgnoreCase(objectType)) {         
            try
            {
                BusinessDetail orgdetail = registry.getBusinessDetail(id);
                return ScoutUddiJaxrHelper.getOrganization(orgdetail, lcm);
            }
            catch (RegistryException e) {
                e.printStackTrace();
                throw new JAXRException(e.getLocalizedMessage());
            }

        }
        else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType)) {

            try
            {
                TModelDetail tmodeldetail = registry.getTModelDetail(id);
                return ScoutUddiJaxrHelper.getConcept(tmodeldetail, lcm);
            }
            catch (RegistryException e) {
                e.printStackTrace();
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {

            try {
View Full Code Here

                }

            } catch (RegistryException e)
            {
                e.printStackTrace();
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.ORGANIZATION.equalsIgnoreCase(objectType))
        {
          ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
         
            try
            {
              RegisteredInfo ri = registry.getRegisteredInfo(auth.getAuthInfo());
              BusinessInfos infos = null;
              BusinessInfo[] biarr = null;
             
              if (ri != null) infos = ri.getBusinessInfos();
              if (infos != null) biarr = infos.getBusinessInfoArray();
                           
              for (int i = 0; i < biarr.length; i++) {
                BusinessInfo info = biarr[i];
                BusinessDetail detail = registry.getBusinessDetail(info.getBusinessKey());

                    col.add(registryService.getLifeCycleManagerImpl().createOrganization(detail));
              }
            } catch (RegistryException e) {
                    e.printStackTrace();
                    throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
        {
            try {
                TModelDetail tmodeldetail = registry.getTModelDetail(keys);
                TModel[] tmarr = tmodeldetail.getTModelArray();
                for (int i = 0; tmarr != null && i < tmarr.length; i++)
                {
                    col.add(ScoutUddiJaxrHelper.getConcept(tmarr[i], lcm));
                }

            }
            catch (RegistryException e)
            {
                e.printStackTrace();
                throw new JAXRException(e.getLocalizedMessage());
            }
        }
        else if (LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {

            try {
                ServiceDetail serviceDetail = registry.getServiceDetail(keys);

                if (serviceDetail != null) {

                    BusinessService[] a = serviceDetail.getBusinessServiceArray();

                    for (int i=0; a != null && i < a.length; i++) {

                        Service service = getServiceFromBusinessService(a[i], lcm);
                       
                        col.add(service);
                    }
                }
            }
            catch (RegistryException e) {
                throw new JAXRException(e);
            }
        }
        else {
            throw new JAXRException("Unsupported type " + objectType +
                    " for getRegistryObjects() in Apache Scout");
        }

        return new BulkResponseImpl(col);
View Full Code Here

TOP

Related Classes of javax.xml.registry.JAXRException

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.