Class RoleContentAssignment
A content element assigned into a role's content tree (a folder or a leaf), combining the element and its placement.
public sealed record RoleContentAssignment : IRoleContentAssignment
- Inheritance
-
objectRoleContentAssignment
- Implements
Properties
Changed
When the element was last changed.
[JsonPropertyName("changed")]
public DateTimeOffset Changed { get; init; }
Property Value
- DateTimeOffset
Content
The element's content: its text, or for a file element the path of the stored file relative to the server's content root. Not filled in by SearchRoleContentAsync(IOpenBiApiClient, string?, string?, string?, string?, string?, string?, CancellationToken).
[JsonPropertyName("content")]
public string? Content { get; init; }
Property Value
- string
Created
When the element was created.
[JsonPropertyName("created")]
public DateTimeOffset Created { get; init; }
Property Value
- DateTimeOffset
ElementId
The id of the content element (see Id).
[JsonPropertyName("elementId")]
public string? ElementId { get; init; }
Property Value
- string
Extension
The file extension of a file element, without the leading dot.
[JsonPropertyName("extension")]
public string? Extension { get; init; }
Property Value
- string
Filename
Deprecated: the legacy file name or path of a file element; Content is used first.
[JsonPropertyName("filename")]
public string? Filename { get; init; }
Property Value
- string
IsFolder
Whether the placement is a folder that other elements of the role can be placed under.
[JsonPropertyName("isFolder")]
public bool IsFolder { get; init; }
Property Value
- bool
Language
The element's language; an empty string for the default language.
[JsonPropertyName("language")]
public string? Language { get; init; }
Property Value
- string
Name
The element's name.
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
- string
ParentElementId
The element id of the parent folder within the same role; the all-zero GUID
00000000-0000-0000-0000-000000000000 for the top level.
[JsonPropertyName("parentElementId")]
public string? ParentElementId { get; init; }
Property Value
- string
Position
The sort order of the placement among its siblings.
[JsonPropertyName("position")]
public int Position { get; init; }
Property Value
- int
RoleId
The id of the role the element is placed in.
[JsonPropertyName("roleId")]
public string? RoleId { get; init; }
Property Value
- string
Type
The element's type, as the numeric code of the legacy content type (for example 26 for a file).
[JsonPropertyName("type")]
public int Type { get; init; }
Property Value
- int
UserId
The username of whoever created or last saved the element.
[JsonPropertyName("userId")]
public string? UserId { get; init; }
Property Value
- string
UsergroupIds
The ids of the usergroups the element is restricted to; empty when it is not restricted. Not filled in by SearchRoleContentAsync(IOpenBiApiClient, string?, string?, string?, string?, string?, string?, CancellationToken).
[JsonPropertyName("usergroupIds")]
public string[]? UsergroupIds { get; init; }
Property Value
- string[]