User Notification Template Repository

INotificationTemplateRepository in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents a service which takes / provides structured templates into structured message objects

Operations

OperationResponse/ReturnInput/ParameterDescription

Insert

NotificationTemplate

NotificationTemplate template

Insert the specified template

Update

NotificationTemplate

NotificationTemplate template

Updates the specified template

Get

NotificationTemplate

String id String lang

Gets the specified template

Find

IEnumerable<NotificationTemplate>

Expression<Func<NotificationTemplate,Boolean>> filter

Find the specified template

Implementations

File System based Notification Template Repository - (SanteDB.Server.Core)

File notification template service

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Server.Core.Services.Impl.FileNotificationTemplateRepository, SanteDB.Server.Core, Version=2.1.151.0, Culture=neutral, PublicKeyToken=null" />
		...
	</serviceProviders>

Example Implementation

/// Example Implementation
using SanteDB.Core.Notifications;
/// Other usings here
public class MyNotificationTemplateRepository : SanteDB.Core.Notifications.INotificationTemplateRepository { 
	public String ServiceName => "My own INotificationTemplateRepository service";
	/// <summary>
	/// Insert the specified template
	/// </summary>
	public NotificationTemplate Insert(NotificationTemplate template){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Updates the specified template
	/// </summary>
	public NotificationTemplate Update(NotificationTemplate template){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Gets the specified template
	/// </summary>
	public NotificationTemplate Get(String id,String lang){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Find the specified template
	/// </summary>
	public IEnumerable<NotificationTemplate> Find(Expression<Func<NotificationTemplate,Boolean>> filter){
		throw new System.NotImplementedException();
	}
}

References

Last updated