• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 26773559161

01 Jun 2026 06:21PM UTC coverage: 63.376% (-0.01%) from 63.389%
26773559161

push

github

web-flow
TRUNK-6429: Create application events for service method calls and entity changes (#6084)

272 of 504 new or added lines in 27 files covered. (53.97%)

5 existing lines in 2 files now uncovered.

23598 of 37235 relevant lines covered (63.38%)

0.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

45.45
/api/src/main/java/org/openmrs/event/AggregatedEntityEvent.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs.event;
11

12
import java.util.HashSet;
13
import java.util.List;
14
import java.util.Set;
15

16
/**
17
 * Extend to create an event for your grouped entity events that you can listen to.
18
 * <p>
19
 * It needs to be used together with {@link TransactionalEventAggregator}.
20
 * 
21
 * @since 2.9.x
22
 */
23
public abstract class AggregatedEntityEvent extends BaseEvent {
24
        
25
        private List<EntityEvent<?>> events;
26
        
NEW
27
        public AggregatedEntityEvent() {
×
NEW
28
        }
×
29
        
30
        public AggregatedEntityEvent(List<EntityEvent<?>> events) {
31
                this(events, new HashSet<>());
1✔
32
        }
1✔
33
        
34
        public AggregatedEntityEvent(List<EntityEvent<?>> events, Set<String> tags) {
35
                super(events, tags);
1✔
36
                this.events = events;
1✔
37
        }
1✔
38

39
        public List<EntityEvent<?>> getEvents() {
NEW
40
                return events;
×
41
        }
42

43
        public void setEvents(List<EntityEvent<?>> events) {
NEW
44
                this.events = events;
×
NEW
45
                this.source = events;
×
NEW
46
        }
×
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc