Interface ISecurityRepository

ISecurityRepository

Namespace: Mediachase.Commerce.Customers.Security
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public interface ISecurityRepository

Methods

AddRolePermission(SecurityRole, SecurityPermission)

Declaration
SecurityRole AddRolePermission(SecurityRole role, SecurityPermission permission)
Parameters
Type Name Description
SecurityRole role
SecurityPermission permission
Returns
Type Description
SecurityRole

CreateRole(String, IEnumerable<SecurityPermission>)

Declaration
SecurityRole CreateRole(string roleName, IEnumerable<SecurityPermission> permissions)
Parameters
Type Name Description
System.String roleName
System.Collections.Generic.IEnumerable<SecurityPermission> permissions
Returns
Type Description
SecurityRole

DeleteRole(String)

Declaration
void DeleteRole(string roleName)
Parameters
Type Name Description
System.String roleName

InsertSecurityRoleAssignments(SecurityRoleAssignment)

Declaration
void InsertSecurityRoleAssignments(SecurityRoleAssignment roleAssignment)
Parameters
Type Name Description
SecurityRoleAssignment roleAssignment

ListAllRegisteredRoles()

Declaration
IEnumerable<SecurityRole> ListAllRegisteredRoles()
Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityRole>

ListUserSecurityRoleAssignments(Principal)

Declaration
IEnumerable<SecurityRoleAssignment> ListUserSecurityRoleAssignments(Principal principal)
Parameters
Type Name Description
Principal principal
Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityRoleAssignment>

LoadRole(String)

Declaration
SecurityRole LoadRole(string roleName)
Parameters
Type Name Description
System.String roleName
Returns
Type Description
SecurityRole

RemoveRolePermission(SecurityRole, SecurityPermission)

Declaration
SecurityRole RemoveRolePermission(SecurityRole role, SecurityPermission permission)
Parameters
Type Name Description
SecurityRole role
SecurityPermission permission
Returns
Type Description
SecurityRole

RemoveSecurityRoleAssignments(SecurityRoleAssignment)

Declaration
void RemoveSecurityRoleAssignments(SecurityRoleAssignment roleAssignment)
Parameters
Type Name Description
SecurityRoleAssignment roleAssignment

RoleHaveAssignments(String)

Declaration
bool RoleHaveAssignments(string roleName)
Parameters
Type Name Description
System.String roleName
Returns
Type Description
System.Boolean