Table of Contents

Class ContentPermissionHelper

Namespace
Dynamicweb.Content
Assembly
Dynamicweb.dll
[Obsolete("Do not use. This class exists for migration purposes only!")]
public class ContentPermissionHelper
Inheritance
ContentPermissionHelper
Inherited Members

Methods

HasAccessToArea(Area, PermissionLevel)

public static bool HasAccessToArea(Area area, PermissionLevel permission)

Parameters

area Area
permission PermissionLevel

Returns

bool

HasAccessToArea(int, PermissionLevel)

public static bool HasAccessToArea(int areaId, PermissionLevel permission)

Parameters

areaId int
permission PermissionLevel

Returns

bool

HasAccessToAreaRootPage(Area, PermissionLevel)

public static bool HasAccessToAreaRootPage(Area area, PermissionLevel permission)

Parameters

area Area
permission PermissionLevel

Returns

bool

HasAccessToAreaRootPage(int, PermissionLevel)

public static bool HasAccessToAreaRootPage(int areaId, PermissionLevel permission)

Parameters

areaId int
permission PermissionLevel

Returns

bool

HasAccessToPage(PageTreeItem, PermissionLevel)

public static bool HasAccessToPage(PageTreeItem pageTreeItem, PermissionLevel permission)

Parameters

pageTreeItem PageTreeItem
permission PermissionLevel

Returns

bool

HasAccessToPage(Page, PermissionLevel)

public static bool HasAccessToPage(Page page, PermissionLevel permission)

Parameters

page Page
permission PermissionLevel

Returns

bool

HasAccessToParagraph(Paragraph, PermissionLevel)

public static bool HasAccessToParagraph(Paragraph paragraph, PermissionLevel permission)

Parameters

paragraph Paragraph
permission PermissionLevel

Returns

bool

HasDefaultAreaAccess(PermissionLevel)

Checks permissions for the root of all websites (base area permissions).
public static bool HasDefaultAreaAccess(PermissionLevel permission)

Parameters

permission PermissionLevel
Permission level that should be checked

Returns

bool
hasAccess

LegacyHasDefaultAreaAccess(PermissionLevel)

public static bool LegacyHasDefaultAreaAccess(PermissionLevel permission)

Parameters

permission PermissionLevel

Returns

bool

UseNewPermission()

public static bool UseNewPermission()

Returns

bool
To top