File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
api/src/main/java/org/openmrs/module/muzima/handler Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ package org .openmrs .module .muzima .handler ;
2+
3+ import org .apache .commons .lang .StringUtils ;
4+ import org .apache .commons .logging .Log ;
5+ import org .apache .commons .logging .LogFactory ;
6+ import org .openmrs .annotation .Handler ;
7+ import org .openmrs .module .muzima .exception .QueueProcessorException ;
8+ import org .openmrs .module .muzima .model .QueueData ;
9+ import org .openmrs .module .muzima .model .handler .QueueDataHandler ;
10+ import org .springframework .stereotype .Component ;
11+
12+ @ Component
13+ @ Handler (supports = QueueData .class , order = 7 )
14+ public class ReportTemplateDummyHandler implements QueueDataHandler {
15+ public static final String DISCRIMINATOR_VALUE = "provider-report" ;
16+
17+ /**
18+ *
19+ * @param queueData - QueueData
20+ * @throws QueueProcessorException
21+ */
22+ @ Override
23+ public void process (final QueueData queueData ) throws QueueProcessorException {}
24+
25+ /**
26+ *
27+ * @param queueData - QueueData
28+ * @return boolean
29+ */
30+ @ Override
31+ public boolean accept (final QueueData queueData ) {
32+ return StringUtils .equals (DISCRIMINATOR_VALUE , queueData .getDiscriminator ());
33+ }
34+
35+ /**
36+ *
37+ * @param queueData - QueueDate
38+ * @return boolean
39+ */
40+ @ Override
41+ public boolean validate (QueueData queueData ) {
42+ return false ;
43+ }
44+
45+ /**
46+ *
47+ * @return String
48+ */
49+ @ Override
50+ public String getDiscriminator () {
51+ return DISCRIMINATOR_VALUE ;
52+ }
53+ }
You can’t perform that action at this time.
0 commit comments