/** * Create an instance of {@link DeleteClientSubscriptionInfo } * */ public DeleteClientSubscriptionInfo createDeleteClientSubscriptionInfo() { return new DeleteClientSubscriptionInfo(); }
tx.begin(); UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo()); List<String> entityKeyList = body.getSubscriptionKey(); for (String entityKey : entityKeyList) { Object obj = em.find(org.apache.juddi.model.ClientSubscriptionInfo.class, entityKey);
public void validateDeleteClientSubscriptionInfo(EntityManager em, DeleteClientSubscriptionInfo body) throws DispositionReportFaultMessage { // No null input if (body == null) throw new FatalErrorException(new ErrorMessage("errors.NullInput")); // No null or empty list List<String> entityKeyList = body.getSubscriptionKey(); if (entityKeyList == null || entityKeyList.size() == 0) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.NoKeys")); HashSet<String> dupCheck = new HashSet<String>(); for (String entityKey : entityKeyList) { boolean inserted = dupCheck.add(entityKey); if (!inserted) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.DuplicateKey", entityKey)); Object obj = em.find(org.apache.juddi.model.ClientSubscriptionInfo.class, entityKey); if (obj == null) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.SubscriptionKeyNotFound", entityKey)); } }
tx.begin(); UddiEntityPublisher publisher = this.getEntityPublisher(em, body.getAuthInfo()); List<String> entityKeyList = body.getSubscriptionKey(); for (String entityKey : entityKeyList) { Object obj = em.find(org.apache.juddi.model.ClientSubscriptionInfo.class, entityKey);
public void validateDeleteClientSubscriptionInfo(EntityManager em, DeleteClientSubscriptionInfo body) throws DispositionReportFaultMessage { // No null input if (body == null) throw new FatalErrorException(new ErrorMessage("errors.NullInput")); // No null or empty list List<String> entityKeyList = body.getSubscriptionKey(); if (entityKeyList == null || entityKeyList.size() == 0) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.NoKeys")); HashSet<String> dupCheck = new HashSet<String>(); for (String entityKey : entityKeyList) { boolean inserted = dupCheck.add(entityKey); if (!inserted) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.DuplicateKey", entityKey)); Object obj = em.find(org.apache.juddi.model.ClientSubscriptionInfo.class, entityKey); if (obj == null) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.SubscriptionKeyNotFound", entityKey)); } }