Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void setServerSettings(@Param("settings") @RequestBody(description = "The
@Path("/property")
@Produces(MediaType.TEXT_PLAIN)
@Operation(summary = "Returns a property from the configuration table.")
@MirthOperation(name = "getProperty", display = "Get property", auditable = false)
@MirthOperation(name = "getProperty", display = "Get property", permission = Permissions.SERVER_SETTINGS_VIEW, auditable = false)
public String getProperty(
@Param("group") @Parameter(description = "The property group.", required = true, schema = @Schema(type = "string")) @QueryParam("group") String group,
@Param("name") @Parameter(description = "The name of the property.", required = true, schema = @Schema(type = "string")) @QueryParam("name") String name
Expand Down Expand Up @@ -242,7 +242,7 @@ public ConnectionTestResponse sendTestEmail(@Param("properties") @RequestBody(de
@PUT
@Path("/updateSettings")
@Operation(summary = "Updates the update settings.")
@MirthOperation(name = "setUpdateSettings", display = "Set update settings", auditable = false)
@MirthOperation(name = "setUpdateSettings", display = "Set update settings", permission = Permissions.SERVER_SETTINGS_EDIT, auditable = false)
public void setUpdateSettings(@Param("settings") @RequestBody(description = "The UpdateSettings object containing all of the settings to update.", required = true, content = {
@Content(mediaType = MediaType.APPLICATION_XML, examples = {
@ExampleObject(name = "updateSetings", ref = "../apiexamples/update_settings_xml") }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -47,7 +48,7 @@ public interface DocumentConnectorServletInterface extends BaseServletInterface
@ExampleObject(name = "connection_test_response_file", ref = "../apiexamples/connection_test_response_file_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "connection_test_response_file", ref = "../apiexamples/connection_test_response_file_json") }) })
@MirthOperation(name = "testWrite", display = "Test Write", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "testWrite", display = "Test Write", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public ConnectionTestResponse testWrite(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -46,7 +47,7 @@ public interface FileConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "connection_test_response_file", ref = "../apiexamples/connection_test_response_file_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "connection_test_response_file", ref = "../apiexamples/connection_test_response_file_json") }) })
@MirthOperation(name = "testRead", display = "Test Read", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "testRead", display = "Test Read", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public ConnectionTestResponse testRead(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand All @@ -66,7 +67,7 @@ public ConnectionTestResponse testRead(// @formatter:off
@ExampleObject(name = "connection_test_response_file", ref = "../apiexamples/connection_test_response_file_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "connection_test_response_file", ref = "../apiexamples/connection_test_response_file_json") }) })
@MirthOperation(name = "testWrite", display = "Test Write", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "testWrite", display = "Test Write", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public ConnectionTestResponse testWrite(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -46,7 +47,7 @@ public interface HttpConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "connection_test_response_http", ref = "../apiexamples/connection_test_response_http_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "connection_test_response_http", ref = "../apiexamples/connection_test_response_http_json") }) })
@MirthOperation(name = "testConnection", display = "Test HTTP Connection", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "testConnection", display = "Test HTTP Connection", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public ConnectionTestResponse testConnection(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -50,7 +51,7 @@ public interface DatabaseConnectorServletInterface extends BaseServletInterface
@ExampleObject(name = "table_set", ref = "../apiexamples/table_set_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "table_set", ref = "../apiexamples/table_set_json") }) })
@MirthOperation(name = "getTables", display = "Get Tables", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "getTables", display = "Get Tables", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public SortedSet<Table> getTables(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -52,7 +53,7 @@ public interface JmsConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "jms_connector_properties_map", ref = "../apiexamples/jms_connector_properties_map_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "jms_connector_properties_map", ref = "../apiexamples/jms_connector_properties_map_json") }) })
@MirthOperation(name = "getTemplates", display = "Get JMS Templates", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "getTemplates", display = "Get JMS Templates", permission = Permissions.CHANNELS_VIEW, type = ExecuteType.ASYNC, auditable = false)
public LinkedHashMap<String, JmsConnectorProperties> getTemplates() throws ClientException;

@GET
Expand All @@ -63,7 +64,7 @@ public interface JmsConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "jms_connector_properties", ref = "../apiexamples/jms_connector_properties_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "jms_connector_properties", ref = "../apiexamples/jms_connector_properties_json") }) })
@MirthOperation(name = "getTemplate", display = "Get JMS Template", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "getTemplate", display = "Get JMS Template", permission = Permissions.CHANNELS_VIEW, type = ExecuteType.ASYNC, auditable = false)
public JmsConnectorProperties getTemplate(@Param("templateName") @Parameter(description = "The name of the template.", required = true) @PathParam("templateName") String templateName) throws ClientException;

@PUT
Expand All @@ -74,7 +75,7 @@ public interface JmsConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "jms_template_name_set", ref = "../apiexamples/jms_template_name_set_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "jms_template_name_set", ref = "../apiexamples/jms_template_name_set_json") }) })
@MirthOperation(name = "saveTemplate", display = "Save JMS Template", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "saveTemplate", display = "Save JMS Template", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public Set<String> saveTemplate(// @formatter:off
@Param("templateName") @Parameter(description = "The name of the template.", required = true) @PathParam("templateName") String templateName,
@Param("properties")
Expand All @@ -88,12 +89,12 @@ public Set<String> saveTemplate(// @formatter:off

@DELETE
@Path("/templates/{templateName}")
@Operation(summary="Creates or updates a JMS connector settings template.")
@Operation(summary="Deletes a JMS connector settings template.")
@ApiResponse(content = {
@Content(mediaType = MediaType.APPLICATION_XML, examples = {
@ExampleObject(name = "jms_template_name_set", ref = "../apiexamples/jms_template_name_set_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "jms_template_name_set", ref = "../apiexamples/jms_template_name_set_json") }) })
@MirthOperation(name = "saveTemplate", display = "Save JMS Template", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "deleteTemplate", display = "Delete JMS Template", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public Set<String> deleteTemplate(@Param("templateName") @Parameter(description = "The name of the template.", required = true) @PathParam("templateName") String templateName) throws ClientException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -46,7 +47,7 @@ public interface SmtpConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "connection_test_response_smtp", ref = "../apiexamples/connection_test_response_smtp_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "connection_test_response_smtp", ref = "../apiexamples/connection_test_response_smtp_json") }) })
@MirthOperation(name = "sendTestEmail", display = "Send Test Email", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "sendTestEmail", display = "Send Test Email", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public ConnectionTestResponse sendTestEmail(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import com.mirth.connect.client.core.ClientException;
import com.mirth.connect.client.core.Operation.ExecuteType;
import com.mirth.connect.client.core.Permissions;
import com.mirth.connect.client.core.api.BaseServletInterface;
import com.mirth.connect.client.core.api.MirthOperation;
import com.mirth.connect.client.core.api.Param;
Expand All @@ -46,7 +47,7 @@ public interface TcpConnectorServletInterface extends BaseServletInterface {
@ExampleObject(name = "connection_test_response_tcp", ref = "../apiexamples/connection_test_response_tcp_xml") }),
@Content(mediaType = MediaType.APPLICATION_JSON, examples = {
@ExampleObject(name = "connection_test_response_tcp", ref = "../apiexamples/connection_test_response_tcp_json") }) })
@MirthOperation(name = "testConnection", display = "Test TCP Connection", type = ExecuteType.ASYNC, auditable = false)
@MirthOperation(name = "testConnection", display = "Test TCP Connection", permission = Permissions.CHANNELS_MANAGE, type = ExecuteType.ASYNC, auditable = false)
public ConnectionTestResponse testConnection(// @formatter:off
@Param("channelId") @Parameter(description = "The ID of the channel.", required = true) @QueryParam("channelId") String channelId,
@Param("channelName") @Parameter(description = "The name of the channel.", required = true) @QueryParam("channelName") String channelName,
Expand Down
Loading
Loading