Interface ISecurityRepository
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
public interface ISecurityRepository
Methods
Declaration
SecurityRole AddRolePermission(SecurityRole role, SecurityPermission permission)
Parameters
Returns
Declaration
SecurityRole CreateRole(string roleName, IEnumerable<SecurityPermission> permissions)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
System.Collections.Generic.IEnumerable<SecurityPermission> |
permissions |
|
Returns
Declaration
void DeleteRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Declaration
void InsertSecurityRoleAssignments(SecurityRoleAssignment roleAssignment)
Parameters
Declaration
IEnumerable<SecurityRole> ListAllRegisteredRoles()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<SecurityRole> |
|
Declaration
IEnumerable<SecurityRoleAssignment> ListUserSecurityRoleAssignments(Principal principal)
Parameters
Returns
Declaration
SecurityRole LoadRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
Declaration
SecurityRole RemoveRolePermission(SecurityRole role, SecurityPermission permission)
Parameters
Returns
Declaration
void RemoveSecurityRoleAssignments(SecurityRoleAssignment roleAssignment)
Parameters
Declaration
bool RoleHaveAssignments(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
Type |
Description |
System.Boolean |
|