com.gentics.contentnode.rest.model
Class File

java.lang.Object
  extended by com.gentics.contentnode.rest.model.ContentNodeItem
      extended by com.gentics.contentnode.rest.model.File
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Image

public class File
extends ContentNodeItem
implements Serializable

File object, represents a File in GCN

Author:
norbert
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
ContentNodeItem.ItemType
 
Field Summary
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
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 Summary
File()
          Constructor used by JAXB
 
Method Summary
 Object getChannelId()
          Channel ID
 String getCls()
          This is a file cls
 String getDescription()
          Description
 Integer getFileSize()
          File size
 String getFileType()
          File type
 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
 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
 String getPath()
          Folder path of this file
 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 isForceOnline()
          Get the force online status (may be null if status is not determined)
 boolean isInherited()
           
 boolean isOnline()
          Get the online status
 void setChannelId(Object channelId)
           
 void setCls(String cls)
           
 void setDescription(String description)
           
 void setFileSize(Integer fileSize)
           
 void setFileType(String fileType)
           
 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 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 setOnline(boolean online)
          Set the online status
 void setPath(String path)
          Set the path
 void setTags(Map<String,Tag> tags)
           
 void setText(String text)
           
 void setTypeId(Integer typeId)
           
 void setUrl(String url)
           
 
Methods inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
getCdate, getCreator, getEdate, getEditor, getId, getName, getType, setCdate, setCreator, setEdate, setEditor, setId, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileType

protected String fileType
Mimetype of the File


description

protected String description
Description of the file


folderId

protected Integer folderId
Id of the folder of the file


folderName

protected String folderName
the folder name


fileSize

protected Integer fileSize
Filesize of the file


channelId

protected Object channelId

inherited

protected boolean inherited
true when the file is inherited from a master channel, false if not


tags

protected Map<String,Tag> tags
Tags in the file (objecttags)


url

protected String url
URL to the file.


forceOnline

protected Boolean forceOnline
True if the file shall be force to go online, even if nothing depends on it


online

protected boolean online
True if the file is online (for the node it was fetched for)

Constructor Detail

File

public File()
Constructor used by JAXB

Method Detail

getTypeId

public Integer getTypeId()
Type ID

Returns:
the typeId

setTypeId

public void setTypeId(Integer typeId)

getInheritedFrom

public String getInheritedFrom()
Name of the node, this file was inherited from

Returns:

setInheritedFrom

public void setInheritedFrom(String inheritedFrom)
sets inherited from

Parameters:
inheritedFrom -

getMasterNode

public String getMasterNode()
Name of the node, the master object belongs to

Returns:
node name

setMasterNode

public void setMasterNode(String masterNode)
Set the name of the node, the master object belongs to

Parameters:
masterNode - node name

getFolderName

public String getFolderName()
Name of the folder of this file

Returns:

setFolderName

public void setFolderName(String folderName)

getChannelId

public Object getChannelId()
Channel ID

Returns:

setChannelId

public void setChannelId(Object channelId)

getText

public String getText()
Name of the file

Returns:

setText

public void setText(String text)

getLeaf

public boolean getLeaf()
This is a file so leaf is true

Returns:

setLeaf

public void setLeaf(boolean leaf)

getCls

public String getCls()
This is a file cls


setCls

public void setCls(String cls)

getIconCls

public String getIconCls()
Define attribute to select the appropriate class

Returns:

setIconCls

public void setIconCls(String iconCls)

getFileType

public String getFileType()
File type

Returns:
the fileType

getDescription

public String getDescription()
Description

Returns:
the description

getFolderId

public Integer getFolderId()
Folder ID

Returns:
the folderId

getFileSize

public Integer getFileSize()
File size

Returns:
the fileSize

getTags

public Map<String,Tag> getTags()
Map of object tags of this file

Returns:

getUrl

public String getUrl()
URL to the file

Returns:
the url to the file

setLiveUrl

public void setLiveUrl(String liveUrl)
Set the live URL of the page


getLiveUrl

public String getLiveUrl()
Live URL to the page

Returns:

setFileType

public void setFileType(String fileType)
Parameters:
fileType - the fileType to set

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

setFolderId

public void setFolderId(Integer folderId)
Parameters:
folderId - the folderId to set

setFileSize

public void setFileSize(Integer fileSize)
Parameters:
fileSize - the fileSize to set

setTags

public void setTags(Map<String,Tag> tags)

setUrl

public void setUrl(String url)
Parameters:
url - the url to the file.

isInherited

public boolean isInherited()

setInherited

public void setInherited(boolean inherited)

getPath

public String getPath()
Folder path of this file

Returns:
path

setPath

public void setPath(String path)
Set the path

Parameters:
path - the path

isForceOnline

public Boolean isForceOnline()
Get the force online status (may be null if status is not determined)

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()
Get the online status

Returns:
online status

setOnline

public void setOnline(boolean online)
Set the online status

Parameters:
online - online status


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.