generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Kentico/xperience-by-kentic…
…o-universal-migration-tool into feat/github-actions-pipeline
- Loading branch information
Showing
4 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!-- generated file with tool "Kentico.Xperience.UMT.DocUtils" - edited through template "UmtModel.cshtml" --> | ||
## WorkspaceModel | ||
Model represents XbyK WorkspaceInfo | ||
|
||
Model [discriminator](../UmtModel.md#discriminator): `Workspace` | ||
|
||
|PropertyName|Summary|.NET Type|Notes| | ||
|---|---|---|---| | ||
|WorkspaceGUID\*||System.Guid?|[UniqueId](../UmtModel.md#UniqueId)| | ||
|WorkspaceDisplayName\*||string?|| | ||
|WorkspaceName\*||string?|| | ||
|[customPropertyName]|custom property defined by created [DataClass](./DataClassModel.md)|.NET type defined by data class field|| | ||
|
||
<p>*) value is required</p> | ||
|
||
|
||
### Workspace sample | ||
|
||
```json | ||
{ | ||
"$type": "Workspace", | ||
"WorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", | ||
"WorkspaceDisplayName": "Sample Workspace", | ||
"WorkspaceName": "SampleWorkspace" | ||
} | ||
``` | ||
|
||
### Reusable content item sample in non-default workspace | ||
This sample describes how to import reusable content item into non-default workspace | ||
```json | ||
{ | ||
"$type": "ContentItemSimplified", | ||
"ContentItemGUID": "2867f7b2-2db4-429a-b1b7-7596a502b089", | ||
"ContentItemWorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", | ||
"IsSecured": false, | ||
"ContentTypeName": "UMT.Event", | ||
"Name": "EventInSampleWorkspace", | ||
"IsReusable": true, | ||
"LanguageData": [ | ||
{ | ||
"LanguageName": "en-US", | ||
"DisplayName": "Sample workspace Event - en-US", | ||
"VersionStatus": 2, | ||
"IsLatest": true, | ||
"UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", | ||
"ContentItemData": { | ||
"EventTitle": "en-US Sample workspace Event", | ||
"EventText": "en-US Sample workspace Event (reusable)", | ||
"EventDate": "2024-01-01T00:00:00Z", | ||
"EventRecurrentYearly": true, | ||
"EventTeaser": { | ||
"$assetType": "AssetData", | ||
"Data": "iVBORw0KGgoAAAANSUhEUgAAARsAAABlCAYAAAB9ckckAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABAESURBVHhe7d0JkBxVHQbw/xw7u5sN4b4hXEFABQRBQBOSgAYLVOQMkOIyaFQKTdDiUCCJHBZggaCoIVYlqOG\u002BFBFEQxLuMwY5lAgkHJEjkSvJXnM53\u002Bx7tZ2X1zPdMz1vjv1\u002BVZ3t1zPztnuy75vXr4\u002BJ5QuEiKjG4uonEVFNMWyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETjBsiMgJhg0ROcGwISInGDZE5ERLXfWdfWWJZJe/INk3/yO5d5dL7n9vS371\u002B5LvWSOSSRe2Ni6xVIfEhm8osY02l/hm20l8m10kMXJ3SYzaW\u002BKbbK1qIqKoNXXY5D9aJelnHpDMkoWSefExyff1qEcqk9h2lCT3HCPJfQ\u002BV5KcOUkuJKApNGTbpxQ9K\u002BqHbJf30X9WS6MW32F7aRh8lqXHHS3xT9niIqtVUYZN\u002B5C7pu29OYVfpRbXEjdQhJ0j74ZMlvvXOagkRhdUUYZN5bpH03vkLyb7yD7WkPtoPP0Paj50qsfZOtYSIgmrosMHAbu\u002B8y6R/wS1qSf3FN9lKOk48V9o\u002B/zW1hIiCaNiwwaBvz5yLJLdqhVrSWLBr1fmNiwvvIM8eIAqiIcOm755Z0nvzFarUuBI77ymdU66UxHa7qiVE5KfhwqZn7nTp/9sf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7jGF99JYXPzH62Uvnt/qx6NVvsR35SOkyrfRSRqVXUPG8i8/LSsveyUwky/WtKcUmOOls5vX6lKRORV190oLbnb/tJ19qziwHGzwmF2Bg2Rv4Zp3cm9D5auc\u002BcO7Oo0GfRobOfzENGghtiN8souf1G6r5tW/JqWZoDD2x0nnqtKROSn4cIG8N1RPbPPl/RT96slDSgWk87Jl0lqfHX36CEaKhoybDQcMeq98aeq1DjwXeQ4jyYxsjY3cidqRQ0dNpB9c6n03XqlpBc/qJbUUVu7dBw3rXh4m4jCafiw0dJP3Sd998yS7GvPqyVupb50srQf\u002BV2Jb7yFWkJEYTRN2GjpJ\u002B6V/vk3rnNT81qJdXRJavzEYtDEtxyplhJRJZoubDRcipB\u002B/B5JP/1A8SzkKOGM47YDDpcUbuWZTKmlRFSNpg0bLwRP5qXHi9/ggN2s3PvvqEcCiCeK39iJyxnwvU74upVY14bqQSKKSkuEjSm/\u002BoPiFd8Infzq9yXfs0Ykky5sbVwk1VEIkxES32jz4s2x4jX8HnIiGtSSYUNEjad5L0YioqbCsCEiJxg2ROQEw4aInGDYEJETDBsicoJhQ0ROMGyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETsTefmsF72dDRDUXu0v6GTZN5P3E2/JO2zLpj/WoJUTNgbtRTYRBQ81L5P9tTCaxUJPzFgAAAABJRU5ErkJggg==", | ||
"ContentItemGuid": "2867f7b2-2db4-429a-b1b7-7596a502b089", | ||
"Identifier": "57c26660-ef2f-4288-8f30-886135c2c8fb", | ||
"Name": "byteArraySample.jpg", | ||
"Extension": ".jpg" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using CMS.ContentEngine; | ||
using Kentico.Xperience.UMT.Attributes; | ||
// ReSharper disable InconsistentNaming | ||
|
||
namespace Kentico.Xperience.UMT.Model; | ||
|
||
/// <summary> | ||
/// Model represents XbyK WorkspaceInfo | ||
/// </summary> | ||
/// <sample>WorkspaceModel.Sample</sample> | ||
/// <sample>ContentItemSimplifiedModel.Sample.EventInSampleWorkspace</sample> | ||
[UmtModel(DISCRIMINATOR)] | ||
public class WorkspaceModel : UmtModel | ||
{ | ||
public const string DISCRIMINATOR = "Workspace"; | ||
|
||
[Map] | ||
[Required] | ||
[UniqueIdProperty] | ||
public Guid? WorkspaceGUID { get; set; } | ||
|
||
[Map] | ||
[Required] | ||
public string? WorkspaceDisplayName { get; set; } | ||
|
||
[Map] | ||
[Required] | ||
public string? WorkspaceName { get; set; } | ||
|
||
protected override (Guid? uniqueId, string? name, string? displayName) GetPrintArgs() => (WorkspaceGUID, NOT_AVAILABLE, NOT_AVAILABLE); | ||
} |