/
AdminList.java
52 lines (42 loc) · 1.62 KB
/
AdminList.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/
package org.openmrs.module.sync2.extension.html;
import org.openmrs.module.Extension;
import org.openmrs.module.web.extension.AdministrationSectionExt;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* This class defines the links that will appear on the administration page under the "sync2.title"
* heading. This extension is enabled by defining (uncommenting) it in the config.xml file.
*/
public class AdminList extends AdministrationSectionExt {
/**
* @see org.openmrs.module.web.extension.AdministrationSectionExt#getMediaType()
*/
public Extension.MEDIA_TYPE getMediaType() {
return Extension.MEDIA_TYPE.html;
}
/**
* @see org.openmrs.module.web.extension.AdministrationSectionExt#getTitle()
*/
public String getTitle() {
return "sync2.title";
}
/**
* @see org.openmrs.module.web.extension.AdministrationSectionExt#getLinks()
*/
public Map<String, String> getLinks() {
Map<String, String> map = new LinkedHashMap<String, String>();
map.put("module/sync2/sync2.form", "sync2.title");
map.put("module/sync2/configuration.form", "sync2.configuration.label");
map.put("module/sync2/auditList.form", "sync2.audit.label");
return map;
}
}