ISecurityRepositoryService

ISecurityRepositoryService in assembly SanteDB.Core.Api version 3.0.1980.0

Summary

Security repository service is responsible for the maintenance of security entities

Operations

Operation
Response/Return
Input/Parameter
Description

ChangePassword

SecurityUser

Guid userId String password

Changes a user's password.

GetProviderEntity

Provider

IIdentity identity

Gets the specified provider entity from the specified identity

GetSid

Guid

IIdentity identity

Get the security identifier for the provided

ResolveName

String

Guid sid

Resolves the name from a security identifier

GetUser

SecurityUser

String userName

Get a user by user name

GetDevice

SecurityDevice

String deviceName

Get a device by name

GetApplication

SecurityApplication

String applicationName

Get a app by name

GetPolicy

SecurityPolicy

String policyOid

Get the specified security policy by OID

GetRole

SecurityRole

String roleName

Gets a specific role.

LockDevice

void

Guid key

Locks a device principal

LockApplication

void

Guid key

Locks an application

UnlockDevice

void

Guid key

Removes a lock from a device

UnlockApplication

void

Guid key

Removes a lock from an application

GetUser

SecurityUser

IIdentity identity

Get a user by user name

GetDevice

SecurityDevice

IIdentity identity

Get a device by name

GetApplication

SecurityApplication

IIdentity identity

Get a app by name

GetUserEntity

UserEntity

IIdentity identity

Get the user entity

LockUser

void

Guid userId

Locks a specific user.

UnlockUser

void

Guid userId

Unlocks a specific user.

GetProvenance

SecurityProvenance

Guid provenanceId

Get the provenance object

GetSecurityEntity

SecurityEntity

IPrincipal principal

Get the data object for the provided

GetCdrEntity

Entity

IPrincipal principal

Get the CDR entity which is assigned to the

FindProvenance

IQueryResultSet<SecurityProvenance>

Expression<Func<SecurityProvenance,Boolean>> query

Find provenance objects matching the specified object

Implementations

BridgedSecurityRepositoryService - (SanteDB.Client)

Represents a security repository service that will use local or upstream data based on the availibity of the services for upstream

Service Registration

UpstreamSecurityRepository - (SanteDB.Client)

A security repository that uses the upstream services to perform its duties

Service Registration

LocalSecurityRepositoryService - (SanteDB.Core.Api)

Represents a security repository service that uses the direct local services

Service Registration

Example Implementation

References

Last updated

Was this helpful?