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
Modifier and TypeFieldDescriptionprotected boolean
True if the file is brokenprotected Object
protected String
Description of the fileprotected Integer
Filesize of the fileprotected String
Mimetype of the Fileprotected Integer
Id of the folder of the fileprotected String
the folder nameprotected Boolean
True if the file shall be force to go online, even if nothing depends on it (may be null if status is undetermined).protected boolean
true when the file is inherited from a master channel, false if notprotected boolean
True if the file is online (for the node it was fetched for)Tags in the file (objecttags)protected String
URL to the file. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAlternate URLs (in alphabetical order)Channel IDgetCls()
This is a file clsDescriptionthe 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.boolean
getLeaf()
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 fileboolean
isBroken()
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).boolean
boolean
isOnline()
True if the file is online, false if it is offlinevoid
setAlternateUrls
(SortedSet<String> alternateUrls) Set the alternate URLsvoid
setBroken
(boolean broken) Set the broken statusvoid
setChannelId
(Object channelId) void
void
setDescription
(String description) void
setDisinheritDefault
(Boolean disinheritDefault) Set whether this folder should be disinherited by default in new channels.void
setDisinherited
(Boolean disinherited) Set whether the file is disinheritedvoid
setDisinheritedChannels
(Set<Node> disinheritedChannels) Set the disinherited channels for this objectvoid
setExcluded
(Boolean excluded) Set wether the file is excluded from multichannellingvoid
setFileSize
(Integer fileSize) void
setFileType
(String fileType) void
Set the foldervoid
setFolderId
(Integer folderId) void
setFolderName
(String folderName) void
setForceOnline
(boolean forceOnline) Set the force online statusvoid
setIconCls
(String iconCls) void
setInherited
(boolean inherited) void
setInheritedFrom
(String inheritedFrom) Sets the name of the node the file was inherited from.void
setInheritedFromId
(Integer inheritedFromId) Set the id of the node this file was inherited from.void
setLeaf
(boolean leaf) void
setLiveUrl
(String liveUrl) Set the live URL of the pagevoid
setMasterNode
(String masterNode) Set the name of the node, the master object belongs tovoid
setMasterNodeId
(Integer masterNodeId) Set the id of the node, the master object belongs to.void
setNiceUrl
(String niceUrl) Set the nice URLvoid
setOnline
(boolean online) Set the online statusvoid
Set the pathvoid
setPublishPath
(String publishPath) Set the publish pathvoid
void
void
void
Methods 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:
true
if the folder is disinherited in new channels,false
otherwise.
-
setDisinheritDefault
Set whether this folder should be disinherited by default in new channels.- Parameters:
disinheritDefault
- If set totrue
this 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
-