• 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/BaseEvent.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 org.openmrs.event.outbox.OutboxableEvent;
13
import org.springframework.context.ApplicationEvent;
14

15
import java.util.HashSet;
16
import java.util.Set;
17

18
/**
19
 * <b>For internal use only.</b>
20
 * <p>
21
 * Extend {@link EntityEvent} or {@link AggregatedEntityEvent} instead.
22
 * 
23
 * @since 2.9.x
24
 */
25
class BaseEvent extends ApplicationEvent implements OutboxableEvent {
26

27
        protected final Set<String> tags;
28
        private String sessionId;
29
        
30
        public BaseEvent() {
NEW
31
                this(""); //empty for deserialization to work
×
NEW
32
        }
×
33

34
        public BaseEvent(Object source) {
NEW
35
                this(source, new HashSet<>());
×
NEW
36
        }
×
37
        
38
        public BaseEvent(Object source, Set<String> tags) {
39
                super(source);
1✔
40
                this.tags = tags;
1✔
41
        }
1✔
42

43

44
        public Set<String> getTags() {
NEW
45
                return tags;
×
46
        }
47

48
        public String getSessionId() {
NEW
49
                return sessionId;
×
50
        }
51

52
        public void setSessionId(String sessionId) {
53
                this.sessionId = sessionId;
1✔
54
        }
1✔
55
}
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