File object, represents a File in GCN
| name | data type | constraints | description |
|---|---|---|---|
| typeId | number | Type ID | |
| id | number | ID of the item | |
| globalId | string | Global ID of the item | |
| name | string | Name of the item | |
| creator | User | read-only | Creator of the item |
| cdate | number | required int, read-only int | Creation date of the item as unix timestamp |
| editor | User | read-only | Last editor of the item |
| edate | number | required int, read-only int | Last Edit Date of the item as unix timestamp |
| type | ItemType | read-only | Item type |
| inheritedFrom | string | Name of the node, this file was inherited from | |
| inheritedFromId | number | Return id of the node, this file was inherited from. | |
| deleted | DeleteInfo | read-only | Deletion information, if object was deleted |
| masterNode | string | Name of the node, the master object belongs to | |
| masterDeleted | DeleteInfo | read-only | Deletion information about the master (if the object is not a master itself). |
| masterNodeId | number | Id of the node, the master object belongs to. | |
| folderDeleted | DeleteInfo | read-only | Deletion information about the containing folder. |
| folderName | string | Name of the folder of this file | |
| channelId | object | Channel ID | |
| text | string | Name of the file | |
| leaf | boolean | required boolean | This is a file so leaf is true |
| cls | string | This is a file cls | |
| iconCls | string | Define attribute to select the appropriate class | |
| fileType | string | File type | |
| description | string | Description | |
| folderId | number | Folder ID | |
| fileSize | number | File size | |
| map of Tag | Map of object tags of this file | ||
| url | string | URL to the file | |
| liveUrl | string | Live URL to the page | |
| publishPath | string | Publish path | |
| inherited | boolean | required boolean | |
| path | string | Folder path of this file | |
| forceOnline | boolean | True if the file shall be force to go online, even if nothing depends on it (may be null if status is undetermined). | |
| online | boolean | required boolean | True if the file is online, false if it is offline |
| broken | boolean | required boolean | True for broken files |
| disinheritedChannels | array of Node | the set of disinherited channels for this object | |
| excluded | boolean | Whether this page is excluded from multichannelling. | |
| disinheritDefault | boolean | Whether this folder is disinherited by default in new channels. | |
| disinherited | boolean | True if the file is disinherited in some channels | |
| folder | Folder | Folder of the file | |
| niceUrl | string | Nice URL | |
| alternateUrls | array of string | Alternate URLs (in alphabetical order) | |
| customCdate | number | Custom creation date of the page (set to 0 for clearing custom creation date and falling back to the real creation date) | |
| customEdate | number | Custom edit date of the page (set to 0 for clearing custom edit date and falling back to the real edit date) |
Example
{
"typeId" : 12345,
"id" : 12345,
"globalId" : "...",
"name" : "...",
"creator" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ {
"id" : 12345,
"name" : "...",
"description" : "...",
"children" : [ { }, { } ]
}, {
"id" : 12345,
"name" : "...",
"description" : "...",
"children" : [ { }, { } ]
} ],
"login" : "...",
"password" : "..."
},
"cdate" : 12345,
"editor" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ {
"id" : 12345,
"name" : "...",
"description" : "...",
"children" : [ { }, { } ]
}, {
"id" : 12345,
"name" : "...",
"description" : "...",
"children" : [ { }, { } ]
} ],
"login" : "...",
"password" : "..."
},
"edate" : 12345,
"type" : "folder",
"inheritedFrom" : "...",
"inheritedFromId" : 12345,
"deleted" : {
"at" : 12345,
"by" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
}
},
"masterNode" : "...",
"masterDeleted" : {
"at" : 12345,
"by" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
}
},
"masterNodeId" : 12345,
"folderDeleted" : {
"at" : 12345,
"by" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
}
},
"folderName" : "...",
"channelId" : { },
"text" : "...",
"leaf" : true,
"cls" : "...",
"iconCls" : "...",
"fileType" : "...",
"description" : "...",
"folderId" : 12345,
"fileSize" : 12345,
"tags" : {
"property1" : {
"id" : 12345,
"name" : "...",
"constructId" : 12345,
"construct" : {
"keyword" : "...",
"mayBeSubtag" : true,
"mayContainSubtags" : true,
"id" : 12345,
"globalId" : "...",
"name" : "...",
"description" : "...",
"creator" : { },
"cdate" : 12345,
"editor" : { },
"edate" : 12345,
"category" : { },
"externalEditorUrl" : "...",
"parts" : [ { }, { } ],
"visibleInMenu" : true,
"nameI18n" : {
"property1" : "...",
"property2" : "..."
},
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
},
"autoEnable" : true,
"liveEditorTagName" : "...",
"openEditorOnInsert" : true,
"editorControlStyle" : "ABOVE",
"editorControlsInside" : true,
"categoryId" : 12345
},
"active" : true,
"properties" : {
"property1" : {
"type" : "NODE",
"stringValue" : "...",
"booleanValue" : true,
"fileId" : 12345,
"imageId" : 12345,
"folderId" : 12345,
"pageId" : 12345,
"formId" : 12345,
"stringValues" : [ "...", "..." ],
"options" : [ { }, { } ],
"selectedOptions" : [ { }, { } ],
"datasourceId" : 12345,
"overview" : { },
"templateId" : 12345,
"contentTagId" : 12345,
"templateTagId" : 12345,
"nodeId" : 12345,
"partId" : 12345,
"id" : 12345,
"globalId" : "..."
},
"property2" : {
"type" : "LOCALFILE",
"stringValue" : "...",
"booleanValue" : true,
"fileId" : 12345,
"imageId" : 12345,
"folderId" : 12345,
"pageId" : 12345,
"formId" : 12345,
"stringValues" : [ "...", "..." ],
"options" : [ { }, { } ],
"selectedOptions" : [ { }, { } ],
"datasourceId" : 12345,
"overview" : { },
"templateId" : 12345,
"contentTagId" : 12345,
"templateTagId" : 12345,
"nodeId" : 12345,
"partId" : 12345,
"id" : 12345,
"globalId" : "..."
}
},
"type" : "OBJECTTAG"
},
"property2" : {
"id" : 12345,
"name" : "...",
"constructId" : 12345,
"construct" : {
"keyword" : "...",
"mayBeSubtag" : true,
"mayContainSubtags" : true,
"id" : 12345,
"globalId" : "...",
"name" : "...",
"description" : "...",
"creator" : { },
"cdate" : 12345,
"editor" : { },
"edate" : 12345,
"category" : { },
"externalEditorUrl" : "...",
"parts" : [ { }, { } ],
"visibleInMenu" : true,
"nameI18n" : {
"property1" : "...",
"property2" : "..."
},
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
},
"autoEnable" : true,
"liveEditorTagName" : "...",
"openEditorOnInsert" : true,
"editorControlStyle" : "ASIDE",
"editorControlsInside" : true,
"categoryId" : 12345
},
"active" : true,
"properties" : {
"property1" : {
"type" : "TABLE",
"stringValue" : "...",
"booleanValue" : true,
"fileId" : 12345,
"imageId" : 12345,
"folderId" : 12345,
"pageId" : 12345,
"formId" : 12345,
"stringValues" : [ "...", "..." ],
"options" : [ { }, { } ],
"selectedOptions" : [ { }, { } ],
"datasourceId" : 12345,
"overview" : { },
"templateId" : 12345,
"contentTagId" : 12345,
"templateTagId" : 12345,
"nodeId" : 12345,
"partId" : 12345,
"id" : 12345,
"globalId" : "..."
},
"property2" : {
"type" : "TEMPLATETAG",
"stringValue" : "...",
"booleanValue" : true,
"fileId" : 12345,
"imageId" : 12345,
"folderId" : 12345,
"pageId" : 12345,
"formId" : 12345,
"stringValues" : [ "...", "..." ],
"options" : [ { }, { } ],
"selectedOptions" : [ { }, { } ],
"datasourceId" : 12345,
"overview" : { },
"templateId" : 12345,
"contentTagId" : 12345,
"templateTagId" : 12345,
"nodeId" : 12345,
"partId" : 12345,
"id" : 12345,
"globalId" : "..."
}
},
"type" : "TEMPLATETAG"
}
},
"url" : "...",
"liveUrl" : "...",
"publishPath" : "...",
"inherited" : true,
"path" : "...",
"forceOnline" : true,
"online" : true,
"broken" : true,
"disinheritedChannels" : [ {
"id" : 12345,
"globalId" : "...",
"name" : "...",
"creator" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"folderId" : 12345,
"cdate" : 12345,
"editor" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"publishDir" : "...",
"edate" : 12345,
"type" : "channel",
"binaryPublishDir" : "...",
"pubDirSegment" : true,
"deleted" : {
"at" : 12345,
"by" : { }
},
"publishImageVariants" : true,
"host" : "...",
"masterDeleted" : {
"at" : 12345,
"by" : { }
},
"hostProperty" : "...",
"folderDeleted" : {
"at" : 12345,
"by" : { }
},
"publishFs" : true,
"publishFsPages" : true,
"publishFsFiles" : true,
"publishContentMap" : true,
"publishContentMapPages" : true,
"publishContentMapFiles" : true,
"publishContentMapFolders" : true,
"contentRepositoryId" : 12345,
"disablePublish" : true,
"editorVersion" : 12345,
"contentEditor" : "AlohaEditor",
"defaultFileFolderId" : 12345,
"defaultImageFolderId" : 12345,
"languagesId" : [ 12345, 12345 ],
"masterId" : 12345,
"inheritedFromId" : 12345,
"inheritedFromName" : "...",
"masterNodeId" : 12345,
"urlRenderWayPages" : 12345,
"urlRenderWayFiles" : 12345,
"meshPreviewUrl" : "...",
"meshPreviewUrlProperty" : "...",
"insecurePreviewUrl" : true,
"meshProject" : "...",
"meshProjectName" : "...",
"omitPageExtension" : true,
"pageLanguageCode" : "FILENAME",
"masterName" : "...",
"contentRepositoryName" : "..."
}, {
"id" : 12345,
"globalId" : "...",
"name" : "...",
"creator" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"folderId" : 12345,
"cdate" : 12345,
"editor" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"publishDir" : "...",
"edate" : 12345,
"type" : "file",
"binaryPublishDir" : "...",
"pubDirSegment" : true,
"deleted" : {
"at" : 12345,
"by" : { }
},
"publishImageVariants" : true,
"host" : "...",
"masterDeleted" : {
"at" : 12345,
"by" : { }
},
"hostProperty" : "...",
"folderDeleted" : {
"at" : 12345,
"by" : { }
},
"publishFs" : true,
"publishFsPages" : true,
"publishFsFiles" : true,
"publishContentMap" : true,
"publishContentMapPages" : true,
"publishContentMapFiles" : true,
"publishContentMapFolders" : true,
"contentRepositoryId" : 12345,
"disablePublish" : true,
"editorVersion" : 12345,
"contentEditor" : "LiveEditor",
"defaultFileFolderId" : 12345,
"defaultImageFolderId" : 12345,
"languagesId" : [ 12345, 12345 ],
"masterId" : 12345,
"inheritedFromId" : 12345,
"inheritedFromName" : "...",
"masterNodeId" : 12345,
"urlRenderWayPages" : 12345,
"urlRenderWayFiles" : 12345,
"meshPreviewUrl" : "...",
"meshPreviewUrlProperty" : "...",
"insecurePreviewUrl" : true,
"meshProject" : "...",
"meshProjectName" : "...",
"omitPageExtension" : true,
"pageLanguageCode" : "PATH",
"masterName" : "...",
"contentRepositoryName" : "..."
} ],
"excluded" : true,
"disinheritDefault" : true,
"disinherited" : true,
"folder" : {
"id" : 12345,
"globalId" : "...",
"name" : "...",
"creator" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"cdate" : 12345,
"editor" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"edate" : 12345,
"type" : "file",
"inheritedFrom" : "...",
"deleted" : {
"at" : 12345,
"by" : { }
},
"inheritedFromId" : 12345,
"masterDeleted" : {
"at" : 12345,
"by" : { }
},
"masterNode" : "...",
"folderDeleted" : {
"at" : 12345,
"by" : { }
},
"masterNodeId" : 12345,
"motherId" : 12345,
"publishDir" : "...",
"description" : "...",
"nodeId" : 12345,
"inherited" : true,
"atposidx" : "...",
"startPageId" : { },
"tags" : {
"property1" : {
"id" : 12345,
"name" : "...",
"constructId" : 12345,
"construct" : { },
"active" : true,
"properties" : {
"property1" : { },
"property2" : { }
},
"type" : "TEMPLATETAG"
},
"property2" : {
"id" : 12345,
"name" : "...",
"constructId" : 12345,
"construct" : { },
"active" : true,
"properties" : {
"property1" : { },
"property2" : { }
},
"type" : "CONTENTTAG"
}
},
"subfolders" : [ { }, { } ],
"hasSubfolders" : true,
"privileges" : [ "updatetagtypes", "translatepage" ],
"privilegeBits" : "...",
"privilegeMap" : {
"privileges" : {
"property1" : true,
"property2" : true
},
"languages" : [ { }, { } ]
},
"path" : "...",
"masterId" : 12345,
"channelsetId" : 12345,
"channelId" : 12345,
"isMaster" : true,
"disinheritedChannels" : [ {
"id" : 12345,
"globalId" : "...",
"name" : "...",
"creator" : { },
"folderId" : 12345,
"cdate" : 12345,
"editor" : { },
"publishDir" : "...",
"edate" : 12345,
"type" : "node",
"binaryPublishDir" : "...",
"pubDirSegment" : true,
"deleted" : { },
"publishImageVariants" : true,
"host" : "...",
"masterDeleted" : { },
"hostProperty" : "...",
"folderDeleted" : { },
"publishFs" : true,
"publishFsPages" : true,
"publishFsFiles" : true,
"publishContentMap" : true,
"publishContentMapPages" : true,
"publishContentMapFiles" : true,
"publishContentMapFolders" : true,
"contentRepositoryId" : 12345,
"disablePublish" : true,
"editorVersion" : 12345,
"contentEditor" : "AlohaEditor",
"defaultFileFolderId" : 12345,
"defaultImageFolderId" : 12345,
"languagesId" : [ 12345, 12345 ],
"masterId" : 12345,
"inheritedFromId" : 12345,
"inheritedFromName" : "...",
"masterNodeId" : 12345,
"urlRenderWayPages" : 12345,
"urlRenderWayFiles" : 12345,
"meshPreviewUrl" : "...",
"meshPreviewUrlProperty" : "...",
"insecurePreviewUrl" : true,
"meshProject" : "...",
"meshProjectName" : "...",
"omitPageExtension" : true,
"pageLanguageCode" : "FILENAME",
"masterName" : "...",
"contentRepositoryName" : "..."
}, {
"id" : 12345,
"globalId" : "...",
"name" : "...",
"creator" : { },
"folderId" : 12345,
"cdate" : 12345,
"editor" : { },
"publishDir" : "...",
"edate" : 12345,
"type" : "file",
"binaryPublishDir" : "...",
"pubDirSegment" : true,
"deleted" : { },
"publishImageVariants" : true,
"host" : "...",
"masterDeleted" : { },
"hostProperty" : "...",
"folderDeleted" : { },
"publishFs" : true,
"publishFsPages" : true,
"publishFsFiles" : true,
"publishContentMap" : true,
"publishContentMapPages" : true,
"publishContentMapFiles" : true,
"publishContentMapFolders" : true,
"contentRepositoryId" : 12345,
"disablePublish" : true,
"editorVersion" : 12345,
"contentEditor" : "LiveEditor",
"defaultFileFolderId" : 12345,
"defaultImageFolderId" : 12345,
"languagesId" : [ 12345, 12345 ],
"masterId" : 12345,
"inheritedFromId" : 12345,
"inheritedFromName" : "...",
"masterNodeId" : 12345,
"urlRenderWayPages" : 12345,
"urlRenderWayFiles" : 12345,
"meshPreviewUrl" : "...",
"meshPreviewUrlProperty" : "...",
"insecurePreviewUrl" : true,
"meshProject" : "...",
"meshProjectName" : "...",
"omitPageExtension" : true,
"pageLanguageCode" : "FILENAME",
"masterName" : "...",
"contentRepositoryName" : "..."
} ],
"excluded" : true,
"disinheritDefault" : true,
"disinherited" : true,
"meshProject" : "...",
"breadcrumbs" : [ {
"id" : 28,
"globalId" : "0737.1de1eecb-059c-11f0-ae44-482ae36fb1c5",
"name" : "Home"
}, {
"id" : 799,
"globalId" : "0737.c2b67126-0303-11f0-ae44-482ae36fb1c5",
"name" : "News"
} ],
"nameI18n" : {
"property1" : "...",
"property2" : "..."
},
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
},
"publishDirI18n" : {
"property1" : "...",
"property2" : "..."
}
},
"niceUrl" : "...",
"alternateUrls" : [ "...", "..." ],
"customCdate" : 12345,
"customEdate" : 12345
}