Class Folder
java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
com.gentics.contentnode.rest.model.Folder
- All Implemented Interfaces:
Serializable
Folder object, representing a Folder in GCN
- Author:
- norbert
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
ContentNodeItem.ItemType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPosition of the folder in the folder treeBreadcrums of the folder.Channel ID.Channelset ID.DescriptionMap of translated descriptions (keys are the language codes)the set of disinherited channels for this objectName of the node this folder is inherited fromId of the node this folder is inherited from.True if the folder is a master, false otherwise.Master ID.Name of the node, the master object belongs toReturn the id of the node, the master object belongs to.Mesh Project, this node publishes into.Mother id of the folderMap of translated names (keys are the language codes)Node idgetPath()Folder path of this folderPrivilege bitsMap representation of all privilegesFolder privilegesPublish directory of the folderMap of translated publish directories (keys are the language codes)ID of the startpageList of subfoldersgetTags()Map of object tags of the folderWhether this folder is disinherited by default in new channels.True if the folder is disinherited in some channelsWhether this folder is excluded from multichannelling.booleanTrue if the folder has subfolders (regardless of whether they have been fetched), false if notbooleanTrue if the folder is inherited, false if notvoidsetAtposidx(String atposidx) Set the position of the folder in the folder treevoidsetBreadcrumbs(List<BreadcrumbItem> breadcrumbs) Set the breadcrumbsvoidsetChannelId(Integer channelId) Sets the Channel IDvoidsetChannelsetId(Integer channelsetId) Sets the Chnanelset IDvoidsetDescription(String description) voidsetDescriptionI18n(Map<String, String> descriptionI18n) Set translated descriptionsvoidsetDisinheritDefault(Boolean disinheritDefault) Set whether this folder should be disinherited by default in new channels.voidsetDisinherited(Boolean disinherited) Set whether the folder is disinheritedvoidsetDisinheritedChannels(Set<Node> disinheritedChannels) Set the disinherited channels for this objectvoidsetExcluded(Boolean excluded) Set wether the folder is excluded from multichannellingvoidsetHasSubfolders(boolean hasSubfolders) Set whether the folder has subfoldersvoidsetInherited(boolean inherited) Set whether the folder is inheritedvoidsetInheritedFrom(String inheritedFrom) sets inherited fromvoidsetInheritedFromId(Integer inheritedFromId) Sets the id of the node from which the folder was inherited from.voidsetIsMaster(Boolean isMaster) Sets is_mastervoidsetMasterId(Integer masterId) Sets the Master IDvoidsetMasterNode(String masterNode) Set the name of the node, the master object belongs tovoidsetMasterNodeId(Integer masterNodeId) Set the id of the node the master object belongs to.voidsetMeshProject(String meshProject) Set the mesh projectvoidsetMotherId(Integer motherId) voidsetNameI18n(Map<String, String> nameI18n) Set translated namesvoidSet the node idvoidSet the pathvoidsetPrivilegeBits(String privilegeBits) Set the privilege bitsvoidsetPrivilegeMap(PrivilegeMap privilegeMap) Set the privilege mapvoidsetPrivileges(List<Privilege> privileges) Set the folder privilegesvoidsetPublishDir(String publishDir) voidsetPublishDirI18n(Map<String, String> publishDirI18n) Set translated publish directoriesvoidsetStartPageId(Object startPageId) set startpage idvoidsetSubfolders(List<Folder> subfolders) voidMethods inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
getCdate, getCreator, getDeleted, getEdate, getEditor, getFolderDeleted, getGlobalId, getId, getMasterDeleted, getName, getType, setCdate, setCreator, setDeleted, setEdate, setEditor, setFolderDeleted, setGlobalId, setId, setMasterDeleted, setName, setType
-
Constructor Details
-
Folder
public Folder()Constructor used by JAXB
-
-
Method Details
-
getInheritedFrom
Name of the node this folder is inherited from- Returns:
-
setInheritedFrom
sets inherited from- Parameters:
inheritedFrom-
-
getInheritedFromId
Id of the node this folder is inherited from.- Returns:
-
setInheritedFromId
Sets the id of the node from which the folder was inherited from.- Parameters:
inheritedFromId-
-
getMasterNode
Name of the node, the master object belongs to- Returns:
- node name
-
setMasterNode
Set the name of the node, the master object belongs to- Parameters:
masterNode- node name
-
getMasterNodeId
Return the id of the node, the master object belongs to.- Returns:
-
setMasterNodeId
Set the id of the node the master object belongs to.- Parameters:
masterNodeId-
-
getMotherId
Mother id of the folder- Returns:
- the motherId
-
getPublishDir
Publish directory of the folder- Returns:
- the publishDir
-
getDescription
Description- Returns:
- the description
-
getNodeId
Node id- Returns:
- node id
-
isInherited
public boolean isInherited()True if the folder is inherited, false if not- Returns:
- true if the folder is inherited, false if not
-
getAtposidx
Position of the folder in the folder tree- Returns:
- position of the folder in the folder tree
-
setMotherId
- Parameters:
motherId- the motherId to set
-
setPublishDir
- Parameters:
publishDir- the pubDir to set
-
setDescription
- Parameters:
description- the description to set
-
getStartPageId
ID of the startpage- Returns:
- startpage id
-
setStartPageId
set startpage id- Parameters:
startPageId-
-
getTags
Map of object tags of the folder- Returns:
- the tags
-
setTags
- Parameters:
tags- the tags to set
-
getSubfolders
List of subfolders- Returns:
- the subfolders
-
isHasSubfolders
public boolean isHasSubfolders()True if the folder has subfolders (regardless of whether they have been fetched), false if not- Returns:
- true for folders having subfolders
-
setSubfolders
- Parameters:
subfolders- the subfolders to set
-
setHasSubfolders
public void setHasSubfolders(boolean hasSubfolders) Set whether the folder has subfolders- Parameters:
hasSubfolders- true if the folder has subfolders, false if not
-
setNodeId
Set the node id- Parameters:
nodeId- node id
-
setInherited
public void setInherited(boolean inherited) Set whether the folder is inherited- Parameters:
inherited- true if the folder is inherited, false if not
-
getPrivileges
Folder privileges- Returns:
- the folder privileges
-
setPrivileges
Set the folder privileges- Parameters:
privileges- Folder privileges
-
getPrivilegeBits
Privilege bits- Returns:
- privilege bits
-
setPrivilegeBits
Set the privilege bits- Parameters:
privilegeBits-
-
getPrivilegeMap
Map representation of all privileges- Returns:
- privilege map
-
setPrivilegeMap
Set the privilege map- Parameters:
privilegeMap-
-
setAtposidx
Set the position of the folder in the folder tree- Parameters:
atposidx- position of the folder in the folder tree
-
getPath
Folder path of this folder- Returns:
- path
-
setPath
Set the path- Parameters:
path- the path
-
getMasterId
Master ID. The master is the next folder up in the channel hierarchy with the same Channelset ID. The Master ID is 0 if there is no master. Read only.- Returns:
- Master ID
-
setMasterId
Sets the Master ID- Parameters:
masterId- Master ID
-
getChannelsetId
Channelset ID. All copies of the same folder in different channels share the same Channelset ID. Read only.- Returns:
- Channelset ID
-
setChannelsetId
Sets the Chnanelset ID- Parameters:
channelsetId- Channelset ID
-
getChannelId
Channel ID. It identifies different versions of the same folder in different channels. Equals to the node id for which the folder is defined, or to 0 if it is defined in the topost node of the channel hierarchy. Read only.- Returns:
- Channel ID
-
setChannelId
Sets the Channel ID- Parameters:
channelId- Channel ID
-
getIsMaster
True if the folder is a master, false otherwise. A folder is a master if it isn't a localized copy of another folder. Read only.- Returns:
- is_master
-
setIsMaster
Sets is_master- Parameters:
isMaster- is_master
-
getDisinheritedChannels
the set of disinherited channels for this object- Returns:
- the set of disinherited channels
-
setDisinheritedChannels
Set the disinherited channels for this object- Parameters:
disinheritedChannels- the set of disinherited channnels
-
isExcluded
Whether this folder is excluded from multichannelling.- Returns:
- true iff the folder should be excluded from multichannelling
-
setExcluded
Set wether the folder is excluded from multichannelling- Parameters:
excluded- if true, the folder will be excluded from multichannelling
-
isDisinheritDefault
Whether this folder is disinherited by default in new channels.- Returns:
trueif the folder is disinherited in new channels,falseotherwise.
-
setDisinheritDefault
Set whether this folder should be disinherited by default in new channels.- Parameters:
disinheritDefault- If set totruethis folder will be disinherited by default in new channels.
-
isDisinherited
True if the folder is disinherited in some channels- Returns:
- true iff the folder is disinherited
-
setDisinherited
Set whether the folder is disinherited- Parameters:
disinherited- true if disinherited
-
getMeshProject
Mesh Project, this node publishes into. This will only be set for root folders- Returns:
- mesh project
-
setMeshProject
Set the mesh project- Parameters:
meshProject- mesh project
-
getBreadcrumbs
Breadcrums of the folder. The first item is the root folder and the last item the folder itself- Returns:
- list of breadcrumb items
-
setBreadcrumbs
Set the breadcrumbs- Parameters:
breadcrumbs-
-
getNameI18n
Map of translated names (keys are the language codes)- Returns:
- name map
-
setNameI18n
Set translated names- Parameters:
nameI18n- map of translations
-
getDescriptionI18n
Map of translated descriptions (keys are the language codes)- Returns:
- description map
-
setDescriptionI18n
Set translated descriptions- Parameters:
descriptionI18n- map of translations
-
getPublishDirI18n
Map of translated publish directories (keys are the language codes)- Returns:
- publish directory map
-
setPublishDirI18n
Set translated publish directories- Parameters:
publishDirI18n- map of translations
-