/// 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>
/// Get the security identifier for the provided
/// </summary>
public Guid GetSid(IIdentity identity){
throw new System.NotImplementedException();
}
/// <summary>
/// Resolves the name from a security identifier
/// </summary>
public String ResolveName(Guid sid){
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>
/// Get the CDR entity which is assigned to the
/// </summary>
public Entity GetCdrEntity(IPrincipal principal){
throw new System.NotImplementedException();
}
/// <summary>
/// Find provenance objects matching the specified object
/// </summary>
public IQueryResultSet<SecurityProvenance> FindProvenance(Expression<Func<SecurityProvenance,Boolean>> query){
throw new System.NotImplementedException();
}
}