| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<!DOCTYPE module PUBLIC "-//OpenMRS//DTD OpenMRS Config 1.0//EN" "http://resources.openmrs.org/doctype/config-1.0.dtd"> |
|---|
| 3 |
|
|---|
| 4 |
<module configVersion="1.0"> |
|---|
| 5 |
|
|---|
| 6 |
<!-- Base Module Properties --> |
|---|
| 7 |
<id>logicws</id> |
|---|
| 8 |
<name>Logic Web Service</name> |
|---|
| 9 |
<version>1.1</version> |
|---|
| 10 |
<package>org.openmrs.module.@MODULE_ID@</package> |
|---|
| 11 |
<author>Kevin Peters</author> |
|---|
| 12 |
<description> |
|---|
| 13 |
Provides access to parts of the Logic Service in a web service |
|---|
| 14 |
interface via REST. |
|---|
| 15 |
</description> |
|---|
| 16 |
|
|---|
| 17 |
<activator>@MODULE_PACKAGE@.LogicWebServiceActivator</activator> |
|---|
| 18 |
|
|---|
| 19 |
<updateURL>https://dev.openmrs.org/modules/download/@MODULE_ID@/update.rdf</updateURL> |
|---|
| 20 |
<!-- /Base Module Properties --> |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
<!-- Extensions |
|---|
| 24 |
<extension> |
|---|
| 25 |
<point>org.openmrs.admin.list</point> |
|---|
| 26 |
<class>@MODULE_PACKAGE@.extension.html.AdminList</class> |
|---|
| 27 |
</extension> |
|---|
| 28 |
/Extensions --> |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
<!-- AOP --> |
|---|
| 32 |
<advice> |
|---|
| 33 |
<point>org.openmrs.api.AdministrationService</point> |
|---|
| 34 |
<class>@MODULE_PACKAGE@.advice.LogicWSAdministrationAdvisor</class> |
|---|
| 35 |
</advice> |
|---|
| 36 |
|
|---|
| 37 |
<!-- /AOP --> |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
<!-- Required Privileges --> |
|---|
| 41 |
<privilege> |
|---|
| 42 |
<name>Access Logic Web Service API</name> |
|---|
| 43 |
<description>Allows user to access the API of the Logic Web Service</description> |
|---|
| 44 |
</privilege> |
|---|
| 45 |
<!-- /Required Privileges --> |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
<!-- Required Global Properties --> |
|---|
| 49 |
<globalProperty> |
|---|
| 50 |
<property>@MODULE_ID@.allowed_ip_list</property> |
|---|
| 51 |
<defaultValue>127.0.0.1</defaultValue> |
|---|
| 52 |
<description>Whitespace-separated list of remote IP addresses allowed to access the RestModule API. Each entry should be four numbers (0-255) separated with periods, using "*" for wildcards - e.g., "192.168.1.* 192.168.2.50" allows all clients with IP addresses beginning with 192.168.1 plus the IP address 192.168.2.50.</description> |
|---|
| 53 |
</globalProperty> |
|---|
| 54 |
<globalProperty> |
|---|
| 55 |
<property>@MODULE_ID@.max_results</property> |
|---|
| 56 |
<defaultValue>0</defaultValue> |
|---|
| 57 |
<description>The maximum number of results to return from any query to the RestModule API. Should be a whole number. If blank or zero, then no maximum number of results is imposed.</description> |
|---|
| 58 |
</globalProperty> |
|---|
| 59 |
<!-- /Required Global Properties --> |
|---|
| 60 |
|
|---|
| 61 |
<!-- |
|---|
| 62 |
<dwr> |
|---|
| 63 |
<allow> |
|---|
| 64 |
<create creator="new" javascript="DWRPatientService"> |
|---|
| 65 |
<param name="class" value="@MODULE_PACKAGE@.web.DWRPatientService"/> |
|---|
| 66 |
<include method="foobar"/> |
|---|
| 67 |
</create> |
|---|
| 68 |
</allow> |
|---|
| 69 |
|
|---|
| 70 |
<signatures> |
|---|
| 71 |
<![CDATA[ |
|---|
| 72 |
import @MODULE_PACKAGE@.web.DWRPatientService; |
|---|
| 73 |
DWRPatientService.foobar(Integer patientId); |
|---|
| 74 |
]]> |
|---|
| 75 |
</signatures> |
|---|
| 76 |
</dwr> |
|---|
| 77 |
--> |
|---|
| 78 |
|
|---|
| 79 |
<!-- Servlets --> |
|---|
| 80 |
<!-- Accessed through the url /pageContext()/moduleServlet/<moduleId>/<servlet-name> --> |
|---|
| 81 |
<servlet> |
|---|
| 82 |
<servlet-name>api</servlet-name> |
|---|
| 83 |
<servlet-class>@MODULE_PACKAGE@.web.RestServlet</servlet-class> |
|---|
| 84 |
</servlet> |
|---|
| 85 |
<!-- /Servlets --> |
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 |
<!-- Internationalization --> |
|---|
| 89 |
<!-- All message codes should start with moduleId.* --> |
|---|
| 90 |
<messages> |
|---|
| 91 |
<lang>en</lang> |
|---|
| 92 |
<file>messages.properties</file> |
|---|
| 93 |
</messages> |
|---|
| 94 |
<!-- /Internationalization --> |
|---|
| 95 |
|
|---|
| 96 |
</module> |
|---|
| 97 |
|
|---|