Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Interface IContentSecurityRepository

A repository for Security info for IContent object This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
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 [content security saved].

Declaration
event EventHandler<ContentSecurityEventArg> ContentSecuritySaved
Event Type
Type Description
System.EventHandler<ContentSecurityEventArg>

Extension Methods