lumis.doui.source.field.type
Class FileDataType.Data

Package class diagram package FileDataType.Data
java.lang.Object
  extended by lumis.doui.source.field.type.FileDataType.Data
All Implemented Interfaces:
IRenderable
Direct Known Subclasses:
DocumentDataType.Data, ImageDataType.Data
Enclosing class:
FileDataType

public static class FileDataType.Data
extends Object
implements IRenderable

Data object for a field with data type file.

Since:
4.0.4

Constructor Summary
FileDataType.Data()
           
FileDataType.Data(FileConfig fileConfig)
          Deprecated. Since 4.0.8 replaced by #Data(FileConfig, String) so icon value is also set.
FileDataType.Data(FileConfig fileConfig, FileMimeTypeConfig mimeTypeConfig)
          Creates a new Data for the given fileConfig with the given mimeType.
 
Method Summary
 String getContentType()
           
 String getDisplayString(IRenderer renderer)
          Returns the string to be displayed for representing this instance, when a short display is required.
 String getFileId()
           
 long getFileSize()
           
 String getFullPath()
           
 String getIcon()
           
 String getName()
           
 String getRenderData(IRenderer renderer)
          Returns the data of this object in a standard xml format.
 void setContentType(String contentType)
           
 void setFileId(String fileId)
           
 void setFileSize(long fileSize)
           
 void setFullPath(String fullPath)
           
 void setIcon(String icon)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataType.Data

public FileDataType.Data()

FileDataType.Data

@Deprecated
public FileDataType.Data(FileConfig fileConfig)
Deprecated. Since 4.0.8 replaced by #Data(FileConfig, String) so icon value is also set.


FileDataType.Data

public FileDataType.Data(FileConfig fileConfig,
                         FileMimeTypeConfig mimeTypeConfig)
Creates a new Data for the given fileConfig with the given mimeType.

Parameters:
fileConfig - the fileConfig.
mimeTypeConfig - the mimeType information.
Since:
4.0.8
Method Detail

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

getFileId

public String getFileId()

setFileId

public void setFileId(String fileId)

getFileSize

public long getFileSize()

setFileSize

public void setFileSize(long fileSize)

getFullPath

public String getFullPath()

setFullPath

public void setFullPath(String fullPath)

getIcon

public String getIcon()

setIcon

public void setIcon(String icon)

getName

public String getName()

setName

public void setName(String name)

getRenderData

public String getRenderData(IRenderer renderer)
                     throws PortalException
Description copied from interface: IRenderable
Returns the data of this object in a standard xml format.

Specified by:
getRenderData in interface IRenderable
Parameters:
renderer - the renderer object that will use the returned render data.
Returns:
the xml data for this object.
Throws:
PortalException

getDisplayString

public String getDisplayString(IRenderer renderer)
                        throws PortalException
Description copied from interface: IRenderable
Returns the string to be displayed for representing this instance, when a short display is required.

Specified by:
getDisplayString in interface IRenderable
Parameters:
renderer - the renderer object that will use the returned render data.
Returns:
the string to be used to friendly display this instance.
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.