lumis.service.document.field
Class DocumentDataType.Data

Package class diagram package DocumentDataType.Data
java.lang.Object
  extended by lumis.doui.source.field.type.FileDataType.Data
      extended by lumis.service.document.field.DocumentDataType.Data
All Implemented Interfaces:
IRenderable, ISearchable
Enclosing class:
DocumentDataType

public static class DocumentDataType.Data
extends FileDataType.Data

Data object for a field with data type document.

Since:
4.0.4

Constructor Summary
DocumentDataType.Data()
           
 
Method Summary
 String getDescription()
          The document description.
 String getDisplayString(IRenderer renderer)
          Returns the string to be displayed for representing this instance, when a short display is required.
 String getDocumentId()
           
protected  Map<String,Object> getJSONData()
          Returns the render data in JSON format.
 String getRenderData(IRenderer renderer)
          Returns the data of this object in a standard xml format.
 Collection<SearchContentAttachment> getSearchContentAttachments()
          Returns the search content attachments to be used for indexing this object.
 List<SearchContentField> getSearchContentFields()
          Returns the search content fields to be used for indexing this object.
 String getTitle()
           
protected  String getXMLFragmentData(boolean generateWithAbsoluteUrls)
          Returns the render data XML fragment.
 void setDescription(String description)
          The document description.
 void setDocumentId(String documentId)
           
 void setTitle(String title)
           
 
Methods inherited from class lumis.doui.source.field.type.FileDataType.Data
getContentType, getFileId, getFileSize, getFullPath, getIcon, getMetadata, getName, setContentType, setFileId, setFileSize, setFullPath, setIcon, setMetadata, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentDataType.Data

public DocumentDataType.Data()
Method Detail

getDocumentId

public String getDocumentId()

setDocumentId

public void setDocumentId(String documentId)

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getDescription

public String getDescription()
The document description.

Returns:
description.
Since:
4.2.2

setDescription

public void setDescription(String description)
The document description.

Parameters:
description. -
Since:
4.2.2

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
Overrides:
getRenderData in class FileDataType.Data
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
Overrides:
getDisplayString in class FileDataType.Data
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

getSearchContentFields

public List<SearchContentField> getSearchContentFields()
Description copied from interface: ISearchable
Returns the search content fields to be used for indexing this object.

Note that the actual search content fields used are decided by the ISourceSearchContentFiller implementation used in the source. It may or may not use the fields returned by this method. This method provides only the default recommended search fields for this data.

Specified by:
getSearchContentFields in interface ISearchable
Overrides:
getSearchContentFields in class FileDataType.Data
Returns:
the search content fields. Never returns null. May return an empty collection if no field is to be used for indexing this object.

getSearchContentAttachments

public Collection<SearchContentAttachment> getSearchContentAttachments()
Description copied from interface: ISearchable
Returns the search content attachments to be used for indexing this object.

Must never return null. May return an empty collection if no attachment is to be used for indexing this object.

Specified by:
getSearchContentAttachments in interface ISearchable
Overrides:
getSearchContentAttachments in class FileDataType.Data
Returns:
the search content attachments.

getXMLFragmentData

protected String getXMLFragmentData(boolean generateWithAbsoluteUrls)
                             throws PortalException
Returns the render data XML fragment.

Overrides:
getXMLFragmentData in class FileDataType.Data
Returns:
the XML fragment.
Throws:
PortalException
Since:
6.1.0

getJSONData

protected Map<String,Object> getJSONData()
                                  throws PortalException
Returns the render data in JSON format.

Overrides:
getJSONData in class FileDataType.Data
Returns:
the Map with render data information about the file.
Throws:
PortalException
Since:
6.1.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.