Interface IContentSecurityRepository
A repository for Security info for IContent object
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public interface IContentSecurityRepository
Methods
Delete(String, SecurityEntityType)
Deletes the specified user or role name.
Declaration
void Delete(string userOrRoleName, SecurityEntityType entityUserRole)
Parameters
Type | Name | Description |
---|---|---|
System.String | userOrRoleName | Name of the user or role. |
SecurityEntityType | entityUserRole | The entity user role. |
Get(ContentReference)
Gets the specified content security descriptor object for the requested content link.
Declaration
IContentSecurityDescriptor Get(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
IContentSecurityDescriptor |
Save(ContentReference, IContentSecurityDescriptor, SecuritySaveType)
Saves the specified content security descriptor.
Declaration
void Save(ContentReference ContentLink, IContentSecurityDescriptor contentSecurityDescriptor, SecuritySaveType securitySaveType)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | ContentLink | The content link. |
IContentSecurityDescriptor | contentSecurityDescriptor | The content security descriptor. |
SecuritySaveType | securitySaveType | Type of the security save. |
Events
ContentSecuritySaved
Occurs when access rights for content item/items is changed
Declaration
event EventHandler<ContentSecurityEventArg> ContentSecuritySaved
Event Type
Type | Description |
---|---|
System.EventHandler<ContentSecurityEventArg> |
ContentSecuritySaving
Occurs before access rights for content item/items is changed
Declaration
event EventHandler<ContentSecurityCancellableEventArgs> ContentSecuritySaving
Event Type
Type | Description |
---|---|
System.EventHandler<ContentSecurityCancellableEventArgs> |
Remarks
An event handler can cancel the operation by setting CancelAction to true and giving an explanation in CancelReason.