info.magnolia.cms.beans.runtime
Class File

java.lang.Object
  extended by info.magnolia.cms.beans.runtime.File

public class File
extends Object

Wraps a NodeData and exposes it into a simple file-like bean.

Version:
1.1
Author:
Sameer Charles

Constructor Summary
File(javax.jcr.Node node)
           
File(NodeData data)
          Deprecated. Since 5.0 use File(Node)
 
Method Summary
 String getContentType()
           
 String getExtension()
           
 String getFileName()
           
 javax.jcr.Node getNode()
           
 NodeData getNodeData()
          Deprecated. Since 5.0 use getNode(Node) instead.
 String getNodeDataTemplate()
          Deprecated. Since 5.0.
 int getSize()
           
 InputStream getStream()
          Deprecated. Since 5.0, unsupported on Node API.
 void setContentType(String contentType)
           
 void setExtension(String extension)
           
 void setFileName(String fileName)
           
 void setNodeDataTemplate(String nodeDataTemplate)
          Deprecated. Since 5.0.
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File

public File(NodeData data)
Deprecated. Since 5.0 use File(Node)


File

public File(javax.jcr.Node node)
Method Detail

getExtension

public String getExtension()

setExtension

public void setExtension(String extension)

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

getNodeDataTemplate

public String getNodeDataTemplate()
Deprecated. Since 5.0.


setNodeDataTemplate

public void setNodeDataTemplate(String nodeDataTemplate)
Deprecated. Since 5.0.


getSize

public int getSize()

setSize

public void setSize(int size)

getNode

public javax.jcr.Node getNode()

getNodeData

public NodeData getNodeData()
Deprecated. Since 5.0 use getNode(Node) instead.


getStream

public InputStream getStream()
Deprecated. Since 5.0, unsupported on Node API.



Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.