File Data Type

File object, represents a File in GCN

Subtypes
Image
Properties
name data type constraints description
typeId number   Type ID
inheritedFrom string   Name of the node, this file was inherited from
inheritedFromId number   Return id of the node, this file was inherited from.
masterNode string   Name of the node, the master object belongs to
masterNodeId number   Id of the node, the master object belongs to.
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
tags 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)
Properties inherited from ContentNodeItem
id number   ID of the item
globalId string   Global ID of the item
name string   Name of the item
creator User   Creator of the item
cdate number required int Creation date of the item
editor User   Last editor of the item
edate number required int Last Edit Date of the item
type ItemType   Item type
deleted DeleteInfo   Deletion information, if object was deleted
masterDeleted DeleteInfo   Deletion information about the master (if the object is not a master itself).
folderDeleted DeleteInfo   Deletion information about the containing folder.

Example

{
  "typeId" : 12345,
  "inheritedFrom" : "...",
  "inheritedFromId" : 12345,
  "masterNode" : "...",
  "masterNodeId" : 12345,
  "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" : "...",
        "icon" : "...",
        "creator" : { },
        "cdate" : 12345,
        "editor" : { },
        "edate" : 12345,
        "editdo" : 12345,
        "category" : "...",
        "categorySortorder" : 12345,
        "newEditor" : true,
        "externalEditorUrl" : "...",
        "parts" : [ { }, { } ],
        "visibleInMenu" : true,
        "nameI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "descriptionI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "autoEnable" : true,
        "liveEditorTagName" : "...",
        "hopeditHook" : "...",
        "categoryId" : 12345
      },
      "active" : true,
      "properties" : {
        "property1" : {
          "type" : "DATASOURCE",
          "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" : "MULTISELECT",
          "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"
    },
    "property2" : {
      "id" : 12345,
      "name" : "...",
      "constructId" : 12345,
      "construct" : {
        "keyword" : "...",
        "mayBeSubtag" : true,
        "mayContainSubtags" : true,
        "id" : 12345,
        "globalId" : "...",
        "name" : "...",
        "description" : "...",
        "icon" : "...",
        "creator" : { },
        "cdate" : 12345,
        "editor" : { },
        "edate" : 12345,
        "editdo" : 12345,
        "category" : "...",
        "categorySortorder" : 12345,
        "newEditor" : true,
        "externalEditorUrl" : "...",
        "parts" : [ { }, { } ],
        "visibleInMenu" : true,
        "nameI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "descriptionI18n" : {
          "property1" : "...",
          "property2" : "..."
        },
        "autoEnable" : true,
        "liveEditorTagName" : "...",
        "hopeditHook" : "...",
        "categoryId" : 12345
      },
      "active" : true,
      "properties" : {
        "property1" : {
          "type" : "VELOCITY",
          "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" : "CONTENTTAG"
    }
  },
  "url" : "...",
  "liveUrl" : "...",
  "publishPath" : "...",
  "inherited" : true,
  "path" : "...",
  "forceOnline" : true,
  "online" : true,
  "broken" : true,
  "disinheritedChannels" : [ {
    "folderId" : 12345,
    "publishDir" : "...",
    "binaryPublishDir" : "...",
    "pubDirSegment" : true,
    "https" : true,
    "host" : "...",
    "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,
    "masterNodeId" : 12345,
    "urlRenderWayPages" : 12345,
    "urlRenderWayFiles" : 12345,
    "meshPreviewUrl" : "...",
    "insecurePreviewUrl" : true,
    "meshProject" : "...",
    "omitPageExtension" : true,
    "pageLanguageCode" : "FILENAME",
    "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" : "page",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  }, {
    "folderId" : 12345,
    "publishDir" : "...",
    "binaryPublishDir" : "...",
    "pubDirSegment" : true,
    "https" : true,
    "host" : "...",
    "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,
    "masterNodeId" : 12345,
    "urlRenderWayPages" : 12345,
    "urlRenderWayFiles" : 12345,
    "meshPreviewUrl" : "...",
    "insecurePreviewUrl" : true,
    "meshProject" : "...",
    "omitPageExtension" : true,
    "pageLanguageCode" : "NONE",
    "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" : "form",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  } ],
  "excluded" : true,
  "disinheritDefault" : true,
  "disinherited" : true,
  "folder" : {
    "inheritedFrom" : "...",
    "inheritedFromId" : 12345,
    "masterNode" : "...",
    "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" : "OBJECTTAG"
      },
      "property2" : {
        "id" : 12345,
        "name" : "...",
        "constructId" : 12345,
        "construct" : { },
        "active" : true,
        "properties" : {
          "property1" : { },
          "property2" : { }
        },
        "type" : "OBJECTTAG"
      }
    },
    "subfolders" : [ { }, { } ],
    "hasSubfolders" : true,
    "privileges" : [ "updatefile", "translatepage" ],
    "privilegeBits" : "...",
    "privilegeMap" : {
      "privileges" : {
        "property1" : true,
        "property2" : true
      },
      "languages" : [ { }, { } ]
    },
    "path" : "...",
    "masterId" : 12345,
    "channelsetId" : 12345,
    "channelId" : 12345,
    "isMaster" : true,
    "disinheritedChannels" : [ {
      "folderId" : 12345,
      "publishDir" : "...",
      "binaryPublishDir" : "...",
      "pubDirSegment" : true,
      "https" : true,
      "host" : "...",
      "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,
      "masterNodeId" : 12345,
      "urlRenderWayPages" : 12345,
      "urlRenderWayFiles" : 12345,
      "meshPreviewUrl" : "...",
      "insecurePreviewUrl" : true,
      "meshProject" : "...",
      "omitPageExtension" : true,
      "pageLanguageCode" : "FILENAME",
      "id" : 12345,
      "globalId" : "...",
      "name" : "...",
      "creator" : { },
      "cdate" : 12345,
      "editor" : { },
      "edate" : 12345,
      "type" : "form",
      "deleted" : { },
      "masterDeleted" : { },
      "folderDeleted" : { }
    }, {
      "folderId" : 12345,
      "publishDir" : "...",
      "binaryPublishDir" : "...",
      "pubDirSegment" : true,
      "https" : true,
      "host" : "...",
      "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,
      "masterNodeId" : 12345,
      "urlRenderWayPages" : 12345,
      "urlRenderWayFiles" : 12345,
      "meshPreviewUrl" : "...",
      "insecurePreviewUrl" : true,
      "meshProject" : "...",
      "omitPageExtension" : true,
      "pageLanguageCode" : "NONE",
      "id" : 12345,
      "globalId" : "...",
      "name" : "...",
      "creator" : { },
      "cdate" : 12345,
      "editor" : { },
      "edate" : 12345,
      "type" : "page",
      "deleted" : { },
      "masterDeleted" : { },
      "folderDeleted" : { }
    } ],
    "excluded" : true,
    "disinheritDefault" : true,
    "disinherited" : true,
    "meshProject" : "...",
    "breadcrumbs" : [ {
      "id" : 12345,
      "globalId" : "...",
      "name" : "..."
    }, {
      "id" : 12345,
      "globalId" : "...",
      "name" : "..."
    } ],
    "nameI18n" : {
      "property1" : "...",
      "property2" : "..."
    },
    "descriptionI18n" : {
      "property1" : "...",
      "property2" : "..."
    },
    "publishDirI18n" : {
      "property1" : "...",
      "property2" : "..."
    },
    "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" : "form",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  },
  "niceUrl" : "...",
  "alternateUrls" : [ "...", "..." ],
  "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" : "image",
  "deleted" : {
    "at" : 12345,
    "by" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    }
  },
  "masterDeleted" : {
    "at" : 12345,
    "by" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    }
  },
  "folderDeleted" : {
    "at" : 12345,
    "by" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    }
  }
}