tx.begin();
if (isAuthenticated())
this.getEntityPublisher(em, body.getAuthInfo());
OperationalInfos result = new OperationalInfos();
List<String> entityKeyList = body.getEntityKey();
for (String entityKey : entityKeyList) {
org.apache.juddi.model.UddiEntity modelUddiEntity = em.find(org.apache.juddi.model.UddiEntity.class, entityKey);
if (modelUddiEntity == null)
throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.EntityNotFound", entityKey));
org.uddi.api_v3.OperationalInfo apiOperationalInfo = new org.uddi.api_v3.OperationalInfo();
MappingModelToApi.mapOperationalInfo(modelUddiEntity, apiOperationalInfo);
result.getOperationalInfo().add(apiOperationalInfo);
}
tx.commit();
long procTime = System.nanoTime() - startTime;
serviceCounter.update(InquiryQuery.GET_OPERATIONALINFO, QueryStatus.SUCCESS, procTime);