Class IContentSecurityDescriptorExtensions
Extensions methods for IContent which support IContentSecurityDescriptor
Inheritance
System.Object
IContentSecurityDescriptorExtensions
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class IContentSecurityDescriptorExtensions : Object
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 |