Class RoleContentExtensions
Extensions for role content.
Inheritance
RoleContentExtensions
Namespace: BiExcellence.OpenBi.Api.Commands.RoleContents
Assembly: BiExcellence.OpenBi.Api.Role.dll
Syntax
public static class RoleContentExtensions
Methods
GetCmsContent(IRoleContentElement)
Returns the cms content of an Area role content element or null
.
Declaration
public static IRoleContentElementCmsContent? GetCmsContent(this IRoleContentElement roleContentElement)
Parameters
Type | Name | Description |
---|---|---|
IRoleContentElement | roleContentElement | The role content element. |
Returns
Type | Description |
---|---|
IRoleContentElementCmsContent |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when |
InvalidOperationException | Thrown when |
SetCmsContent(IRoleContentElement, IRoleContentElementCmsContent)
Sets the cms content of an Area role content element.
Declaration
public static void SetCmsContent(this IRoleContentElement roleContentElement, IRoleContentElementCmsContent cms)
Parameters
Type | Name | Description |
---|---|---|
IRoleContentElement | roleContentElement | The role content element. |
IRoleContentElementCmsContent | cms | The cms content. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when |
InvalidOperationException | Thrown when |
ToHierarchy(IEnumerable<IRoleContent>)
Converts a list of role content to a hierarchy.
Declaration
public static HierarchyNode<IRoleContent> ToHierarchy(this IEnumerable<IRoleContent> rolecontents)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IRoleContent> | rolecontents | The role contents. |
Returns
Type | Description |
---|---|
HierarchyNode<IRoleContent> | A hierarchy of role content. |