Class IContentSecurityDescriptorExtensions
Extensions methods for IContent which support IContentSecurityDescriptor
Inheritance
System.Object
IContentSecurityDescriptorExtensions
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.Security
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public static class IContentSecurityDescriptorExtensions
Methods
SaveSecurityInfo(IContent, IContentSecurityRepository, AccessControlList, SecuritySaveType)
Helper method to replace the ACL on any IContent using IContentSecurityRepository
Declaration
public static bool SaveSecurityInfo(this IContent content, IContentSecurityRepository contentSecurityRepository, AccessControlList accessControlList, SecuritySaveType securitySaveType)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content to save ACL for |
IContentSecurityRepository | contentSecurityRepository | The content security repository to used for saving the ACL |
AccessControlList | accessControlList | The access control list to be saved |
SecuritySaveType | securitySaveType | Type of the security save. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ToRawACEArray(IContent)
Declaration
public static RawACE[] ToRawACEArray(this IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content. |
Returns
Type | Description |
---|---|
RawACE[] | An array of security entries if the type implements IContentSecurable; otherwise an empty array |