-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Segment definition and Segment folder to have identity in identity map
- Loading branch information
Showing
7 changed files
with
112 additions
and
18 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
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
18 changes: 18 additions & 0 deletions
18
extensions/adobe/experience/audiencemanager/segmentfolder.example.1.json
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,18 @@ | ||
{ | ||
"xdm:identityMap": { | ||
"AAMSegments": [ | ||
{ | ||
"xdm:id": "id123", | ||
"xdm:primary": true | ||
} | ||
] | ||
}, | ||
"https://ns.adobe.com/experience/audiencemanager/segmentFolderName": "User Folder", | ||
"https://ns.adobe.com/experience/audiencemanager/segmentFolderStatus": "ACTIVE", | ||
"https://ns.adobe.com/experience/audiencemanager/segmentParentFolderIdentity": { | ||
"@id": "id1111", | ||
"xdm:namespace": { | ||
"xdm:code": "AAMSegments" | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
extensions/adobe/experience/audiencemanager/segmentfolder.schema.json
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,58 @@ | ||
{ | ||
"meta:license": [ | ||
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.", | ||
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license", | ||
"you may not use this file except in compliance with the License. You may obtain a copy", | ||
"of the License at https://creativecommons.org/licenses/by/4.0/" | ||
], | ||
"$id": "https://ns.adobe.com/experience/audiencemanager/segmentfolder", | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"title": "Adobe Audience Manager Segment Folder Class", | ||
"type": "object", | ||
"description": "Adobe Audience Manager Segment Folder Class to define folder structure for segment defintions. This will help in organizing segments in customer preferred hierarchy.", | ||
"meta:extensible": true, | ||
"meta:abstract": true, | ||
"meta:extends": ["https://ns.adobe.com/xdm/data/record"], | ||
"definitions": { | ||
"segmentfolder": { | ||
"properties": { | ||
"https://ns.adobe.com/experience/audiencemanager/segmentFolderName": { | ||
"title": "Segment folder name", | ||
"type": "string", | ||
"description": "Name of the segment folder" | ||
}, | ||
"https://ns.adobe.com/experience/audiencemanager/segmentFolderStatus": { | ||
"type": "string", | ||
"title": "Segment folder status", | ||
"description": "Current status of segment folder", | ||
"meta:enum": { | ||
"ACTIVE": "Active", | ||
"INACTIVE": "Inactive", | ||
"DELETED": "Deleted" | ||
} | ||
}, | ||
"https://ns.adobe.com/experience/audiencemanager/segmentParentFolderIdentity": { | ||
"title": "Parent folder identity", | ||
"$ref": "https://ns.adobe.com/xdm/context/segmentidentity", | ||
"description": "Identity of the parent folder of current folder" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"xdm:identityMap", | ||
"https://ns.adobe.com/experience/audiencemanager/segmentFolderName" | ||
], | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/segmentfolder" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/context/identitymap" | ||
}, | ||
{ | ||
"$ref": "https://ns.adobe.com/xdm/data/record" | ||
} | ||
], | ||
"meta:status": "experimental" | ||
} |
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{ | ||
"xdm:segmentIdentity": { | ||
"@id": "id123", | ||
"xdm:namespace": { | ||
"xdm:code": "AAMSegments" | ||
} | ||
}, | ||
"xdm:segmentName": "Users with TV segment", | ||
"xdm:description": "Segment is about users who have TV", | ||
"xdm:segmentStatus": "ACTIVE", | ||
"repo:createDate":"2018-10-23T12:00:00-06:00", | ||
"repo:modifyDate":"2019-03-21T12:00:00-06:00" | ||
} | ||
"xdm:identityMap": { | ||
"AAMSegments": [ | ||
{ | ||
"xdm:id": "112233", | ||
"xdm:primary": true | ||
} | ||
] | ||
}, | ||
"xdm:segmentName": "Users with TV segment", | ||
"xdm:description": "Segment is about users who have TV", | ||
"xdm:segmentStatus": "ACTIVE", | ||
"repo:createDate":"2018-10-23T12:00:00-06:00", | ||
"repo:modifyDate":"2019-03-21T12:00:00-06:00" | ||
} |
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