/** * Create an instance of {@link GetFailedReplicationChangeRecordsMessageRequest } * */ public GetFailedReplicationChangeRecordsMessageRequest createGetFailedReplicationChangeRecordsMessageRequest() { return new GetFailedReplicationChangeRecordsMessageRequest(); }
try { tx.begin(); UddiEntityPublisher requestor = this.getEntityPublisher(em, body.getAuthInfo()); if (!((Publisher) requestor).isAdmin()) { throw new UserMismatchException(new ErrorMessage("errors.AdminReqd")); if (body.getMaxRecords() <= 0) { body.setMaxRecords(20); if (body.getOffset() < 0) { body.setOffset(0); createQuery.setMaxResults((int) body.getMaxRecords()); createQuery.setFirstResult((int) body.getOffset()); List<ChangeRecord> resultList = createQuery.getResultList(); GetFailedReplicationChangeRecordsMessageResponse res = new GetFailedReplicationChangeRecordsMessageResponse();
try { tx.begin(); UddiEntityPublisher requestor = this.getEntityPublisher(em, body.getAuthInfo()); if (!((Publisher) requestor).isAdmin()) { throw new UserMismatchException(new ErrorMessage("errors.AdminReqd")); if (body.getMaxRecords() <= 0) { body.setMaxRecords(20); if (body.getOffset() < 0) { body.setOffset(0); createQuery.setMaxResults((int) body.getMaxRecords()); createQuery.setFirstResult((int) body.getOffset()); List<ChangeRecord> resultList = createQuery.getResultList(); GetFailedReplicationChangeRecordsMessageResponse res = new GetFailedReplicationChangeRecordsMessageResponse();