}
} catch (RegistryException e)
{
log.error("RegistryException::",e);
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.ORGANIZATION.equalsIgnoreCase(objectType))
{
//Get the Organization from the uddi registry
try
{
BusinessDetail orgdetail = registry.getBusinessDetail(keys);
Vector bizvect = orgdetail.getBusinessEntityVector();
for (int i = 0; bizvect != null && i < bizvect.size(); i++)
{
col.add(ScoutUddiJaxrHelper.getOrganization((BusinessEntity) bizvect.elementAt(i), lcm));
}
} catch (RegistryException e)
{
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.CONCEPT.equalsIgnoreCase(objectType))
{
try {
TModelDetail tmodeldetail = registry.getTModelDetail(keys);
Vector tmvect = tmodeldetail.getTModelVector();
for (int i = 0; tmvect != null && i < tmvect.size(); i++)
{
col.add(ScoutUddiJaxrHelper.getConcept((TModel) tmvect.elementAt(i), lcm));
}
}
catch (RegistryException e)
{
log.error("RegistryException::",e);
throw new JAXRException(e.getLocalizedMessage());
}
}
else if (LifeCycleManager.SERVICE.equalsIgnoreCase(objectType)) {
try {
ServiceDetail serviceDetail = registry.getServiceDetail(keys);
if (serviceDetail != null) {
Vector v = serviceDetail.getBusinessServiceVector();
for (int i=0; v != null && i < v.size(); i++) {
Service service = getServiceFromBusinessService(
(BusinessService) v.elementAt(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);