Class Folder
Class representing a folder for organizing content assets in Commerce Cloud Digital.
Property Summary
Property Description ID : String (read-only)Returns the ID of the folder. content : Collection (read-only)Returns the content objects for this folder, sorted by position. description : String (read-only)Returns the description for the folder as known in the current locale or null if it cannot be found. displayName : String (read-only)Returns the display name for the folder as known in the current locale or null if it cannot be found. online : Boolean (read-only)Indicates if the folder is set online or offline. onlineContent : Collection (read-only)Returns the online content objects for this folder, sorted by position. onlineSubFolders : Collection (read-only)Returns the online subfolders of this folder, sorted by position. pageDescription : String (read-only)Returns the page description for this folder using the value in the current locale, or returns null if no value was found. pageKeywords : String (read-only)Returns the page keywords for this folder using the value in the current locale, or returns null if no value was found. pageTitle : String (read-only)Returns the page title for this folder using the value in the current locale, or returns null if no value was found. pageURL : String (read-only)Returns the page URL for this folder using the value in the current locale, or returns null if no value was found. parent : Folder (read-only)Returns the parent folder of this folder. root : Boolean (read-only)Indicates if this is the root folder. siteMapChangeFrequency : String (read-only)Returns the folder’s sitemap change frequency. siteMapIncluded : Number (read-only)Returns the folder’s sitemap inclusion. siteMapPriority : Number (read-only)Returns the folder’s sitemap priority. subFolders : Collection (read-only)Returns the subfolders of this folder, sorted by position. template : String (read-only)Returns the name of the template used to render the folder in the store front.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
Method Description getContent ()Returns the content objects for this folder, sorted by position. getDescription ()Returns the description for the folder as known in the current locale or null if it cannot be found. getDisplayName ()Returns the display name for the folder as known in the current locale or null if it cannot be found. getID ()Returns the ID of the folder. getOnlineContent ()Returns the online content objects for this folder, sorted by position. getOnlineSubFolders ()Returns the online subfolders of this folder, sorted by position. getPageDescription ()Returns the page description for this folder using the value in the current locale, or returns null if no value was found. getPageKeywords ()Returns the page keywords for this folder using the value in the current locale, or returns null if no value was found. getPageTitle ()Returns the page title for this folder using the value in the current locale, or returns null if no value was found. getPageURL ()Returns the page URL for this folder using the value in the current locale, or returns null if no value was found. getParent ()Returns the parent folder of this folder. getSiteMapChangeFrequency ()Returns the folder’s sitemap change frequency. getSiteMapIncluded ()Returns the folder’s sitemap inclusion. getSiteMapPriority ()Returns the folder’s sitemap priority. getSubFolders ()Returns the subfolders of this folder, sorted by position. getTemplate ()Returns the name of the template used to render the folder in the store front. isOnline ()Indicates if the folder is set online or offline. isRoot ()Indicates if this is the root folder.
Methods inherited from class ExtensibleObject
describe , getCustom
Methods inherited from class PersistentObject
getCreationDate , getLastModified , getUUID
Methods inherited from class Object
assign , create , create , defineProperties , defineProperty , entries , freeze , fromEntries , getOwnPropertyDescriptor , getOwnPropertyNames , getOwnPropertySymbols , getPrototypeOf , hasOwnProperty , is , isExtensible , isFrozen , isPrototypeOf , isSealed , keys , preventExtensions , propertyIsEnumerable , seal , setPrototypeOf , toLocaleString , toString , valueOf , values
Property Details
ID
ID: String (read-only)
Returns the ID of the folder. The ID can be used to uniquely
identify a folder within any given library. This folder ID provides
an alternative lookup mechanism for folders frequently used in
the storefront.
content
content: Collection (read-only)
Returns the content objects for this folder, sorted by position.
description
description: String (read-only)
Returns the description for the folder as known in the current
locale or null if it cannot be found.
displayName
displayName: String (read-only)
Returns the display name for the folder as known in the current
locale or null if it cannot be found.
online
online: Boolean (read-only)
Indicates if the folder is set online or
offline. Initially, all folders are set online.
onlineContent
onlineContent: Collection (read-only)
Returns the online content objects for this folder, sorted by position.
onlineSubFolders
onlineSubFolders: Collection (read-only)
Returns the online subfolders of this folder, sorted by position.
pageDescription
pageDescription: String (read-only)
Returns the page description for this folder using the value in
the current locale, or returns null if no value was found.
pageKeywords
pageKeywords: String (read-only)
Returns the page keywords for this folder using the value in
the current locale, or returns null if no value was found.
pageTitle
pageTitle: String (read-only)
Returns the page title for this folder using the value in
the current locale, or returns null if no value was found.
pageURL
pageURL: String (read-only)
Returns the page URL for this folder using the value in
the current locale, or returns null if no value was found.
parent
parent: Folder (read-only)
Returns the parent folder of this folder.
root
root: Boolean (read-only)
Indicates if this is the root folder.
siteMapChangeFrequency
siteMapChangeFrequency: String (read-only)
Returns the folder's sitemap change frequency.
siteMapIncluded
siteMapIncluded: Number (read-only)
Returns the folder's sitemap inclusion.
siteMapPriority
siteMapPriority: Number (read-only)
Returns the folder's sitemap priority.
subFolders
subFolders: Collection (read-only)
Returns the subfolders of this folder, sorted by position.
template
template: String (read-only)
Returns the name of the template used to render the folder
in the store front.
Method Details
getContent()
getContent(): Collection
Returns the content objects for this folder, sorted by position.
Returns:
the content objects for this folder, sorted by position.
getDescription()
getDescription(): String
Returns the description for the folder as known in the current
locale or null if it cannot be found.
Returns:
the description for the folder as known in the current
locale or null if it cannot be found.
getDisplayName()
getDisplayName(): String
Returns the display name for the folder as known in the current
locale or null if it cannot be found.
Returns:
the display name for the folder as known in the current
locale or null if it cannot be found.
getID()
getID(): String
Returns the ID of the folder. The ID can be used to uniquely
identify a folder within any given library. This folder ID provides
an alternative lookup mechanism for folders frequently used in
the storefront.
Returns:
getOnlineContent()
getOnlineContent(): Collection
Returns the online content objects for this folder, sorted by position.
Returns:
the online content objects for this folder, sorted by position.
getOnlineSubFolders()
getOnlineSubFolders(): Collection
Returns the online subfolders of this folder, sorted by position.
Returns:
the online subfolders of this folder, sorted by position.
getPageDescription()
getPageDescription(): String
Returns the page description for this folder using the value in
the current locale, or returns null if no value was found.
Returns:
the page description for this folder using the value in
the current locale, or returns null if no value was found.
getPageKeywords()
getPageKeywords(): String
Returns the page keywords for this folder using the value in
the current locale, or returns null if no value was found.
Returns:
the page keywords for this folder using the value in
the current locale, or returns null if no value was found.
getPageTitle()
getPageTitle(): String
Returns the page title for this folder using the value in
the current locale, or returns null if no value was found.
Returns:
the page title for this folder using the value in
the current locale, or returns null if no value was found.
getPageURL()
getPageURL(): String
Returns the page URL for this folder using the value in
the current locale, or returns null if no value was found.
Returns:
the page URL for this folder using the value in
the current locale, or returns null if no value was found.
getParent()
getParent(): Folder
Returns the parent folder of this folder.
Returns:
the parent folder of this folder.
getSiteMapChangeFrequency()
getSiteMapChangeFrequency(): String
Returns the folder's sitemap change frequency.
Returns:
the value of the attribute 'siteMapChangeFrequency'.
getSiteMapIncluded()
getSiteMapIncluded(): Number
Returns the folder's sitemap inclusion.
Returns:
the value of the attribute 'siteMapIncluded'.
getSiteMapPriority()
getSiteMapPriority(): Number
Returns the folder's sitemap priority.
Returns:
the value of the attribute 'siteMapPriority'.
getSubFolders()
getSubFolders(): Collection
Returns the subfolders of this folder, sorted by position.
Returns:
the subfolders of this folder, sorted by position.
getTemplate()
getTemplate(): String
Returns the name of the template used to render the folder
in the store front.
Returns:
the name of the template used to render the folder.
isOnline()
isOnline(): Boolean
Indicates if the folder is set online or
offline. Initially, all folders are set online.
Returns:
true if the folder is online, false otherwise.
isRoot()
isRoot(): Boolean
Indicates if this is the root folder.
Returns:
true if this is the root folder, false otherwise.