Interface IRoleManagement

IRoleManagement

Namespace: Mediachase.Commerce.Security
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("Security is now managed in EPiServer.Security.  Will remain at least until October 2016.")]
public interface IRoleManagement

Methods

CreateRole(String, IEnumerable<SecurityPermission>)

Creates the role.

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

Name of the role.

System.Collections.Generic.IEnumerable<SecurityPermission> permissions

The permissions.

Returns
Type Description
SecurityRole

CreateUserRoleAssignments(SecurityRoleAssignment)

Creates the user role assignments.

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

The role assignment.

DeleteRole(String)

Deletes the role.

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

Name of the role.

DeployPrincipalByUser(MembershipUser)

Deploys the principal by user.

Declaration
IEnumerable<Principal> DeployPrincipalByUser(MembershipUser user)
Parameters
Type Name Description
System.Web.Security.MembershipUser user

The user.

Returns
Type Description
System.Collections.Generic.IEnumerable<Principal>

GetAllRegisteredRoles()

Gets all roles.

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

GetPrincipalByUser(MembershipUser)

Gets the principal by user.

Declaration
Principal GetPrincipalByUser(MembershipUser user)
Parameters
Type Name Description
System.Web.Security.MembershipUser user

The user.

Returns
Type Description
Principal

GetRoleByName(String)

Loads the role.

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

Name of the role.

Returns
Type Description
SecurityRole

ListUserRoleAssigments(MembershipUser)

Gets all role assignment.

Declaration
IEnumerable<SecurityRoleAssignment> ListUserRoleAssigments(MembershipUser user)
Parameters
Type Name Description
System.Web.Security.MembershipUser user

The user.

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityRoleAssignment>

RemoveUserRoleAssignments(SecurityRoleAssignment)

Removes the user role assignments.

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

The role assignment.

UpdateRole(SecurityRole)

Updates the role.

Declaration
SecurityRole UpdateRole(SecurityRole role)
Parameters
Type Name Description
SecurityRole role

The role.

Returns
Type Description
SecurityRole