ISecurityRepositoryService
ISecurityRepositoryService
in assembly SanteDB.Core.Api version 2.1.151.0
Summary
Security repository service is responsible for the maintenance of security entities
Operations
Implementations
LocalSecurityRepositoryService - (SanteDB.Server.Core)
Represents a security repository service that uses the direct local services
Service Registration
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
<serviceProviders>
...
<add type="SanteDB.Server.Core.Services.Impl.LocalSecurityRepositoryService, SanteDB.Server.Core, Version=2.1.151.0, Culture=neutral, PublicKeyToken=null" />
...
</serviceProviders>
Example Implementation
/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MySecurityRepositoryService : SanteDB.Core.Services.ISecurityRepositoryService {
public String ServiceName => "My own ISecurityRepositoryService service";
/// <summary>
/// Changes a user's password.
/// </summary>
public SecurityUser ChangePassword(Guid userId,String password){
throw new System.NotImplementedException();
}
/// <summary>
/// Gets the specified provider entity from the specified identity
/// </summary>
public Provider GetProviderEntity(IIdentity identity){
throw new System.NotImplementedException();
}
/// <summary>
/// Creates a user with a specified password.
/// </summary>
public SecurityUser CreateUser(SecurityUser userInfo,String password){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a user by user name
/// </summary>
public SecurityUser GetUser(String userName){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a device by name
/// </summary>
public SecurityDevice GetDevice(String deviceName){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a app by name
/// </summary>
public SecurityApplication GetApplication(String applicationName){
throw new System.NotImplementedException();
}
/// <summary>
/// Get the specified security policy by OID
/// </summary>
public SecurityPolicy GetPolicy(String policyOid){
throw new System.NotImplementedException();
}
/// <summary>
/// Gets a specific role.
/// </summary>
public SecurityRole GetRole(String roleName){
throw new System.NotImplementedException();
}
/// <summary>
/// Locks a device principal
/// </summary>
public void LockDevice(Guid key){
throw new System.NotImplementedException();
}
/// <summary>
/// Locks an application
/// </summary>
public void LockApplication(Guid key){
throw new System.NotImplementedException();
}
/// <summary>
/// Removes a lock from a device
/// </summary>
public void UnlockDevice(Guid key){
throw new System.NotImplementedException();
}
/// <summary>
/// Removes a lock from an application
/// </summary>
public void UnlockApplication(Guid key){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a user by user name
/// </summary>
public SecurityUser GetUser(IIdentity identity){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a device by name
/// </summary>
public SecurityDevice GetDevice(IIdentity identity){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a app by name
/// </summary>
public SecurityApplication GetApplication(IIdentity identity){
throw new System.NotImplementedException();
}
/// <summary>
/// Get the user entity
/// </summary>
public UserEntity GetUserEntity(IIdentity identity){
throw new System.NotImplementedException();
}
/// <summary>
/// Locks a specific user.
/// </summary>
public void LockUser(Guid userId){
throw new System.NotImplementedException();
}
/// <summary>
/// Unlocks a specific user.
/// </summary>
public void UnlockUser(Guid userId){
throw new System.NotImplementedException();
}
/// <summary>
/// Get the provenance object
/// </summary>
public SecurityProvenance GetProvenance(Guid provenanceId){
throw new System.NotImplementedException();
}
/// <summary>
/// Get the data object for the provided
/// </summary>
public SecurityEntity GetSecurityEntity(IPrincipal principal){
throw new System.NotImplementedException();
}
/// <summary>
/// Find provenance objects matching the specified object
/// </summary>
public IEnumerable<SecurityProvenance> FindProvenance(Expression<Func<SecurityProvenance,Boolean>> query,Int32 offset,Nullable<Int32> count,Int32& totalResults,Guid queryId,ModelSort`1[] orderBy){
throw new System.NotImplementedException();
}
}
References
Last updated