Role Provider

IRoleProviderService in assembly SanteDB.Core.Api version 3.0.1980.0

Summary

Represents a service which is capableof retrieving roles

Operations

Operation
Response/Return
Input/Parameter
Description

CreateRole

void

String roleName IPrincipal principal

Creates a role

AddUsersToRoles

void

String[] users String[] roles IPrincipal principal

Add users to roles

RemoveUsersFromRoles

void

String[] users String[] roles IPrincipal principal

Remove users from specified roles

FindUsersInRole

String[]

String role

Find all users in a specified role

GetAllRoles

String[]

none

Get all roles

GetAllRoles

String[]

String userName

Get all roles

IsUserInRole

Boolean

String userName String roleName

User user in the specified role

Implementations

BridgedRoleProvider - (SanteDB.Client)

The bridged role provider is the preferred service for the role provider and is just a wrapper for ILocalServiceProvider`1 for the dCDR

Service Registration

UpstreamRoleProviderService - (SanteDB.Client)

A IRoleProviderService which manages upstream roles

Service Registration

AdoRoleProvider - (SanteDB.Persistence.Data)

A role provider which uses the ADO.NET classes

Service Registration

Example Implementation

References

Last updated

Was this helpful?