Class File
java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
com.gentics.contentnode.rest.model.File
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Image
File object, represents a File in GCN
- Author:
- norbert
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
ContentNodeItem.ItemType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanTrue if the file is brokenprotected Objectprotected StringDescription of the fileprotected IntegerFilesize of the fileprotected StringMimetype of the Fileprotected IntegerId of the folder of the fileprotected Stringthe folder nameprotected BooleanTrue if the file shall be force to go online, even if nothing depends on it (may be null if status is undetermined).protected booleantrue when the file is inherited from a master channel, false if notprotected booleanTrue if the file is online (for the node it was fetched for)Tags in the file (objecttags)protected StringURL to the file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlternate URLs (in alphabetical order)Channel IDgetCls()This is a file clsCustom creation date of the page (set to 0 for clearing custom creation date and falling back to the real creation date)Custom edit date of the page (set to 0 for clearing custom edit date and falling back to the real edit date)Descriptionthe set of disinherited channels for this objectFile sizeFile typeFolder of the fileFolder IDName of the folder of this fileDefine attribute to select the appropriate className of the node, this file was inherited fromReturn id of the node, this file was inherited from.booleangetLeaf()This is a file so leaf is trueLive URL to the pageName of the node, the master object belongs toId of the node, the master object belongs to.Nice URLgetPath()Folder path of this filePublish pathgetTags()Map of object tags of this filegetText()Name of the fileType IDgetUrl()URL to the filebooleanisBroken()True for broken filesWhether this folder is disinherited by default in new channels.True if the file is disinherited in some channelsWhether this page is excluded from multichannelling.True if the file shall be force to go online, even if nothing depends on it (may be null if status is undetermined).booleanbooleanisOnline()True if the file is online, false if it is offlinevoidsetAlternateUrls(SortedSet<String> alternateUrls) Set the alternate URLsvoidsetBroken(boolean broken) Set the broken statusvoidsetChannelId(Object channelId) voidvoidsetCustomCdate(Integer customCdate) Set custom creation datevoidsetCustomEdate(Integer customEdate) Set custom edit datevoidsetDescription(String description) voidsetDisinheritDefault(Boolean disinheritDefault) Set whether this folder should be disinherited by default in new channels.voidsetDisinherited(Boolean disinherited) Set whether the file is disinheritedvoidsetDisinheritedChannels(Set<Node> disinheritedChannels) Set the disinherited channels for this objectvoidsetExcluded(Boolean excluded) Set wether the file is excluded from multichannellingvoidsetFileSize(Integer fileSize) voidsetFileType(String fileType) voidSet the foldervoidsetFolderId(Integer folderId) voidsetFolderName(String folderName) voidsetForceOnline(boolean forceOnline) Set the force online statusvoidsetIconCls(String iconCls) voidsetInherited(boolean inherited) voidsetInheritedFrom(String inheritedFrom) Sets the name of the node the file was inherited from.voidsetInheritedFromId(Integer inheritedFromId) Set the id of the node this file was inherited from.voidsetLeaf(boolean leaf) voidsetLiveUrl(String liveUrl) Set the live URL of the pagevoidsetMasterNode(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.voidsetNiceUrl(String niceUrl) Set the nice URLvoidsetOnline(boolean online) Set the online statusvoidSet the pathvoidsetPublishPath(String publishPath) Set the publish pathvoidvoidvoidvoidMethods 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
-
Field Details
-
fileType
Mimetype of the File -
description
Description of the file -
folderId
Id of the folder of the file -
folderName
the folder name -
fileSize
Filesize of the file -
channelId
-
inherited
protected boolean inheritedtrue when the file is inherited from a master channel, false if not -
tags
Tags in the file (objecttags) -
url
URL to the file. -
forceOnline
True if the file shall be force to go online, even if nothing depends on it (may be null if status is undetermined). -
online
protected boolean onlineTrue if the file is online (for the node it was fetched for) -
broken
protected boolean brokenTrue if the file is broken
-
-
Constructor Details
-
File
public File()Constructor used by JAXB
-
-
Method Details
-
getTypeId
Type ID- Returns:
- the typeId
-
setTypeId
-
getInheritedFrom
Name of the node, this file was inherited from- Returns:
-
setInheritedFrom
Sets the name of the node the file was inherited from.- Parameters:
inheritedFrom-
-
getInheritedFromId
Return id of the node, this file was inherited from.- Returns:
-
setInheritedFromId
Set the id of the node this file 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
Id of the node, the master object belongs to.- Returns:
-
setMasterNodeId
Set the id of the node, the master object belongs to.- Parameters:
masterNodeId-
-
getFolderName
Name of the folder of this file- Returns:
-
setFolderName
-
getChannelId
Channel ID- Returns:
-
setChannelId
-
getText
Name of the file- Returns:
-
setText
-
getLeaf
public boolean getLeaf()This is a file so leaf is true- Returns:
-
setLeaf
public void setLeaf(boolean leaf) -
getCls
This is a file cls -
setCls
-
getIconCls
Define attribute to select the appropriate class- Returns:
-
setIconCls
-
getFileType
File type- Returns:
- the fileType
-
getDescription
Description- Returns:
- the description
-
getFolderId
Folder ID- Returns:
- the folderId
-
getFileSize
File size- Returns:
- the fileSize
-
getTags
Map of object tags of this file- Returns:
-
getUrl
URL to the file- Returns:
- the url to the file
-
setLiveUrl
Set the live URL of the page -
getLiveUrl
Live URL to the page- Returns:
-
setPublishPath
Set the publish path- Parameters:
publishPath- publish path
-
getPublishPath
Publish path- Returns:
- publish path
-
setFileType
- Parameters:
fileType- the fileType to set
-
setDescription
- Parameters:
description- the description to set
-
setFolderId
- Parameters:
folderId- the folderId to set
-
setFileSize
- Parameters:
fileSize- the fileSize to set
-
setTags
-
setUrl
- Parameters:
url- the url to the file.
-
isInherited
public boolean isInherited() -
setInherited
public void setInherited(boolean inherited) -
getPath
Folder path of this file- Returns:
- path
-
setPath
Set the path- Parameters:
path- the path
-
isForceOnline
True if the file shall be force to go online, even if nothing depends on it (may be null if status is undetermined).- Returns:
- true to force the file online
-
setForceOnline
public void setForceOnline(boolean forceOnline) Set the force online status- Parameters:
forceOnline- new force online status
-
isOnline
public boolean isOnline()True if the file is online, false if it is offline- Returns:
- online status
-
setOnline
public void setOnline(boolean online) Set the online status- Parameters:
online- online status
-
isBroken
public boolean isBroken()True for broken files- Returns:
- true for broken
-
setBroken
public void setBroken(boolean broken) Set the broken status- Parameters:
broken- true for broken
-
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 page is excluded from multichannelling.- Returns:
- true iff the file should be excluded from multichannelling
-
setExcluded
Set wether the file is excluded from multichannelling- Parameters:
excluded- if true, the file 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 file is disinherited in some channels- Returns:
- true iff the file is disinherited
-
setDisinherited
Set whether the file is disinherited- Parameters:
disinherited- true if disinherited
-
getFolder
Folder of the file- Returns:
- folder
-
setFolder
Set the folder- Parameters:
folder- folder
-
getNiceUrl
Nice URL- Returns:
- nice URL
-
setNiceUrl
Set the nice URL- Parameters:
niceUrl- nice URL
-
getAlternateUrls
Alternate URLs (in alphabetical order)- Returns:
- sorted alternate URLs
-
setAlternateUrls
Set the alternate URLs- Parameters:
alternateUrls- alternate URLs
-
getCustomCdate
Custom creation date of the page (set to 0 for clearing custom creation date and falling back to the real creation date)- Returns:
- custom creation date
-
setCustomCdate
Set custom creation date- Parameters:
customCdate- custom creation date
-
getCustomEdate
Custom edit date of the page (set to 0 for clearing custom edit date and falling back to the real edit date)- Returns:
- custom edit date
-
setCustomEdate
Set custom edit date- Parameters:
customEdate- custom edit date
-