Resource Pointer Service

IResourcePointerService in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents a service which is tasked with generating verified pointers to data

Operations

OperationResponse/ReturnInput/ParameterDescription

GeneratePointer

String

IEnumerable<IdentifierBase<TEntity>> identifer

Generate a structured pointer for the identified object

ResolveResource

IdentifiedData

String pointerData Boolean validate

Resolve the specified resource

Implementations

JWS Resource Pointer - (SanteDB.Core.Api)

Represents a record pointer service using JWS

Service Registration

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

Example Implementation

/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyResourcePointerService : SanteDB.Core.Services.IResourcePointerService { 
	public String ServiceName => "My own IResourcePointerService service";
	/// <summary>
	/// Generate a structured pointer for the identified object
	/// </summary>
	public String GeneratePointer<TEntity>(IEnumerable<IdentifierBase<TEntity>> identifer){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Resolve the specified resource
	/// </summary>
	public IdentifiedData ResolveResource(String pointerData,Boolean validate){
		throw new System.NotImplementedException();
	}
}

References

Last updated