public class File extends ContentNodeItem implements Serializable
ContentNodeItem.ItemType
Modifier and Type | Field and Description |
---|---|
protected boolean |
broken
True if the file is broken
|
protected Object |
channelId |
protected String |
description
Description of the file
|
protected Integer |
fileSize
Filesize of the file
|
protected String |
fileType
Mimetype of the File
|
protected Integer |
folderId
Id of the folder of the file
|
protected String |
folderName
the folder name
|
protected Boolean |
forceOnline
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 |
inherited
true when the file is inherited from a master channel, false if not
|
protected boolean |
online
True if the file is online (for the node it was fetched for)
|
protected Map<String,Tag> |
tags
Tags in the file (objecttags)
|
protected String |
url
URL to the file.
|
Constructor and Description |
---|
File()
Constructor used by JAXB
|
Modifier and Type | Method and Description |
---|---|
SortedSet<String> |
getAlternateUrls()
Alternate URLs (in alphabetical order)
|
Object |
getChannelId()
Channel ID
|
String |
getCls()
This is a file cls
|
String |
getDescription()
Description
|
Set<Node> |
getDisinheritedChannels()
the set of disinherited channels for this object
|
Integer |
getFileSize()
File size
|
String |
getFileType()
File type
|
Folder |
getFolder()
Folder of the file
|
Integer |
getFolderId()
Folder ID
|
String |
getFolderName()
Name of the folder of this file
|
String |
getIconCls()
Define attribute to select the appropriate class
|
String |
getInheritedFrom()
Name of the node, this file was inherited from
|
Integer |
getInheritedFromId()
Return id of the node, this file was inherited from.
|
boolean |
getLeaf()
This is a file so leaf is true
|
String |
getLiveUrl()
Live URL to the page
|
String |
getMasterNode()
Name of the node, the master object belongs to
|
Integer |
getMasterNodeId()
Id of the node, the master object belongs to.
|
String |
getNiceUrl()
Nice URL
|
String |
getPath()
Folder path of this file
|
String |
getPublishPath()
Publish path
|
Map<String,Tag> |
getTags()
Map of object tags of this file
|
String |
getText()
Name of the file
|
Integer |
getTypeId()
Type ID
|
String |
getUrl()
URL to the file
|
boolean |
isBroken()
True for broken files
|
Boolean |
isDisinheritDefault()
Whether this folder is disinherited by default in new channels.
|
Boolean |
isDisinherited()
True if the file is disinherited in some channels
|
Boolean |
isExcluded()
Whether this page is excluded from multichannelling.
|
Boolean |
isForceOnline()
True if the file shall be force to go online, even if nothing depends on it
(may be null if status is undetermined).
|
boolean |
isInherited() |
boolean |
isOnline()
True if the file is online, false if it is offline
|
void |
setAlternateUrls(SortedSet<String> alternateUrls)
Set the alternate URLs
|
void |
setBroken(boolean broken)
Set the broken status
|
void |
setChannelId(Object channelId) |
void |
setCls(String cls) |
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 disinherited
|
void |
setDisinheritedChannels(Set<Node> disinheritedChannels)
Set the disinherited channels for this object
|
void |
setExcluded(Boolean excluded)
Set wether the file is excluded from multichannelling
|
void |
setFileSize(Integer fileSize) |
void |
setFileType(String fileType) |
void |
setFolder(Folder folder)
Set the folder
|
void |
setFolderId(Integer folderId) |
void |
setFolderName(String folderName) |
void |
setForceOnline(boolean forceOnline)
Set the force online status
|
void |
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 page
|
void |
setMasterNode(String masterNode)
Set the name of the node, the master object belongs to
|
void |
setMasterNodeId(Integer masterNodeId)
Set the id of the node, the master object belongs to.
|
void |
setNiceUrl(String niceUrl)
Set the nice URL
|
void |
setOnline(boolean online)
Set the online status
|
void |
setPath(String path)
Set the path
|
void |
setPublishPath(String publishPath)
Set the publish path
|
void |
setTags(Map<String,Tag> tags) |
void |
setText(String text) |
void |
setTypeId(Integer typeId) |
void |
setUrl(String url) |
getCdate, getCreator, getDeleted, getEdate, getEditor, getFolderDeleted, getGlobalId, getId, getMasterDeleted, getName, getType, setCdate, setCreator, setDeleted, setEdate, setEditor, setFolderDeleted, setGlobalId, setId, setMasterDeleted, setName, setType
protected String fileType
protected String description
protected Integer folderId
protected String folderName
protected Integer fileSize
protected Object channelId
protected boolean inherited
protected String url
protected Boolean forceOnline
protected boolean online
protected boolean broken
public Integer getTypeId()
public void setTypeId(Integer typeId)
public String getInheritedFrom()
public void setInheritedFrom(String inheritedFrom)
inheritedFrom
- public Integer getInheritedFromId()
public void setInheritedFromId(Integer inheritedFromId)
inheritedFromId
- public String getMasterNode()
public void setMasterNode(String masterNode)
masterNode
- node namepublic Integer getMasterNodeId()
public void setMasterNodeId(Integer masterNodeId)
masterNodeId
- public String getFolderName()
public void setFolderName(String folderName)
public Object getChannelId()
public void setChannelId(Object channelId)
public String getText()
public void setText(String text)
public boolean getLeaf()
public void setLeaf(boolean leaf)
public String getCls()
public void setCls(String cls)
public String getIconCls()
public void setIconCls(String iconCls)
public String getFileType()
public String getDescription()
public Integer getFolderId()
public Integer getFileSize()
public String getUrl()
public void setLiveUrl(String liveUrl)
public String getLiveUrl()
public void setPublishPath(String publishPath)
publishPath
- publish pathpublic String getPublishPath()
public void setFileType(String fileType)
fileType
- the fileType to setpublic void setDescription(String description)
description
- the description to setpublic void setFolderId(Integer folderId)
folderId
- the folderId to setpublic void setFileSize(Integer fileSize)
fileSize
- the fileSize to setpublic void setUrl(String url)
url
- the url to the file.public boolean isInherited()
public void setInherited(boolean inherited)
public String getPath()
public void setPath(String path)
path
- the pathpublic Boolean isForceOnline()
public void setForceOnline(boolean forceOnline)
forceOnline
- new force online statuspublic boolean isOnline()
public void setOnline(boolean online)
online
- online statuspublic boolean isBroken()
public void setBroken(boolean broken)
broken
- true for brokenpublic Set<Node> getDisinheritedChannels()
public void setDisinheritedChannels(Set<Node> disinheritedChannels)
disinheritedChannels
- the set of disinherited channnelspublic Boolean isExcluded()
public void setExcluded(Boolean excluded)
excluded
- if true, the file will be excluded from multichannellingpublic Boolean isDisinheritDefault()
true
if the folder is disinherited in new channels,
false
otherwise.public void setDisinheritDefault(Boolean disinheritDefault)
disinheritDefault
- If set to true
this folder will be
disinherited by default in new channels.public Boolean isDisinherited()
public void setDisinherited(Boolean disinherited)
disinherited
- true if disinheritedpublic Folder getFolder()
public void setFolder(Folder folder)
folder
- folderpublic String getNiceUrl()
public void setNiceUrl(String niceUrl)
niceUrl
- nice URLpublic SortedSet<String> getAlternateUrls()
Copyright © 2024 Gentics Software. All rights reserved.