Class SecurityProviderUpgradeProxy
Inheritance
System.Object
SecurityProviderUpgradeProxy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
public class SecurityProviderUpgradeProxy : ISecurityProvider, ISecurityCheck, IRoleManagement
Constructors
Declaration
public SecurityProviderUpgradeProxy(ISecurityCheck securityCheck, IRoleManagement roleManagement)
Parameters
Exceptions
Type |
Condition |
System.ArgumentNullException |
securityCheck or roleManagement is null.
|
Declaration
public SecurityProviderUpgradeProxy(object securityProvider)
Parameters
Type |
Name |
Description |
System.Object |
securityProvider |
The provider to wrap.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
securityProvider is null.
|
System.InvalidCastException |
securityProvider does not implement ISecurityCheck or
IRoleManagement.
|
Properties
Declaration
public bool PermissionCheckEnable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public IRoleManagement RoleManagementProvider { get; }
Property Value
Declaration
public ISecurityCheck SecurityCheckProvider { get; }
Property Value
Methods
Declaration
public bool CheckPermission(MembershipUser user, string permission, object securityObj)
Parameters
Type |
Name |
Description |
System.Web.Security.MembershipUser |
user |
|
System.String |
permission |
|
System.Object |
securityObj |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public SecurityRole CreateRole(string roleName, IEnumerable<SecurityPermission> permissions)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
System.Collections.Generic.IEnumerable<SecurityPermission> |
permissions |
|
Returns
Declaration
public void CreateUserRoleAssignments(SecurityRoleAssignment roleAssignment)
Parameters
Declaration
public void DeleteRole(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Declaration
public IEnumerable<Principal> DeployPrincipalByUser(MembershipUser user)
Parameters
Type |
Name |
Description |
System.Web.Security.MembershipUser |
user |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Principal> |
|
Declaration
public IEnumerable<SecurityRole> GetAllRegisteredRoles()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<SecurityRole> |
|
Declaration
public Principal GetPrincipalByUser(MembershipUser user)
Parameters
Type |
Name |
Description |
System.Web.Security.MembershipUser |
user |
|
Returns
Declaration
public SecurityRole GetRoleByName(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
Declaration
public IEnumerable<SecurityRoleAssignment> ListUserRoleAssigments(MembershipUser user)
Parameters
Type |
Name |
Description |
System.Web.Security.MembershipUser |
user |
|
Returns
Declaration
public void RemoveUserRoleAssignments(SecurityRoleAssignment roleAssignment)
Parameters
Declaration
public SecurityRole UpdateRole(SecurityRole role)
Parameters
Returns
Implements