/** * Create an instance of {@link GetPublisherDetail } * */ public GetPublisherDetail createGetPublisherDetail() { return new GetPublisherDetail(); }
tx.begin(); this.getEntityPublisher(em, body.getAuthInfo()); List<String> publisherIdList = body.getPublisherId(); for (String publisherId : publisherIdList) { org.apache.juddi.model.Publisher modelPublisher = null;
public void validateGetPublisherDetail(GetPublisherDetail body) throws DispositionReportFaultMessage { // No null input if (body == null) throw new FatalErrorException(new ErrorMessage("errors.NullInput")); // No null or empty list List<String> publisherIdList = body.getPublisherId(); if (publisherIdList == null || publisherIdList.size() == 0) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.NoKeys")); HashSet<String> dupCheck = new HashSet<String>(); for (String publisherId : publisherIdList) { boolean inserted = dupCheck.add(publisherId); if (!inserted) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.DuplicateKey", publisherId)); } }
tx.begin(); this.getEntityPublisher(em, body.getAuthInfo()); List<String> publisherIdList = body.getPublisherId(); for (String publisherId : publisherIdList) { org.apache.juddi.model.Publisher modelPublisher = null;
public void validateGetPublisherDetail(GetPublisherDetail body) throws DispositionReportFaultMessage { // No null input if (body == null) throw new FatalErrorException(new ErrorMessage("errors.NullInput")); // No null or empty list List<String> publisherIdList = body.getPublisherId(); if (publisherIdList == null || publisherIdList.size() == 0) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.NoKeys")); HashSet<String> dupCheck = new HashSet<String>(); for (String publisherId : publisherIdList) { boolean inserted = dupCheck.add(publisherId); if (!inserted) throw new InvalidKeyPassedException(new ErrorMessage("errors.invalidkey.DuplicateKey", publisherId)); } }