Class PermissionData
Permissions for functions used by EPiServer
Inheritance
System.Object
PermissionData
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()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[Obsolete("Class has been devided into PermissionRepository and PermisionType, system defined permissions can be found in SystemPermissions.Xyz")]
public class PermissionData
Constructors
PermissionData()
Initializes a new instance of the PermissionData class.
Declaration
public PermissionData()
Methods
ClearPermissionListForMembership(String, SecurityEntityType)
Clears the permission list for a given membership.
Declaration
[Obsolete("Use PermissionRepository.DeletePermissions(SystemPermissions.Xyz)")]
public void ClearPermissionListForMembership(string userOrRoleName, SecurityEntityType securityEntityType)
Parameters
Type | Name | Description |
---|---|---|
System.String | userOrRoleName | Name of the user or role. |
SecurityEntityType | securityEntityType | The SecurityEntityType of the user/role. |
RolesForPermission(Permission)
Gets all roles/users that have the specified permission.
Declaration
[Obsolete("Use PermissionRepository.GetPermissions(SystemPermissions.Xyz)")]
public static PermissionList RolesForPermission(Permission permission)
Parameters
Type | Name | Description |
---|---|---|
Permission | permission | The permission to check. |
Returns
Type | Description |
---|---|
PermissionList | A PermissionList with all the roles/users. |
SaveRolesForPermission(PermissionList)
Saves the roles for the specified permission.
Declaration
[Obsolete("Use PermissionRepository.SavePermissions(SystemPermissions.Xyz, Enumerable<SecurityEntity>)")]
public static void SaveRolesForPermission(PermissionList list)
Parameters
Type | Name | Description |
---|---|---|
PermissionList | list | The list or roles/users. |