|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.source.field.type.FileDataType.Data
public static class FileDataType.Data
Data object for a field with data type file.
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. |
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. |
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 |
---|
public FileDataType.Data()
@Deprecated public FileDataType.Data(FileConfig fileConfig)
#Data(FileConfig, String)
so icon value is also set.
public FileDataType.Data(FileConfig fileConfig, FileMimeTypeConfig mimeTypeConfig)
fileConfig
- the fileConfig.mimeTypeConfig
- the mimeType information.Method Detail |
---|
public String getContentType()
public void setContentType(String contentType)
public String getFileId()
public void setFileId(String fileId)
public long getFileSize()
public void setFileSize(long fileSize)
public String getFullPath()
public void setFullPath(String fullPath)
public String getIcon()
public void setIcon(String icon)
public String getName()
public void setName(String name)
public String getRenderData(IRenderer renderer) throws PortalException
IRenderable
getRenderData
in interface IRenderable
renderer
- the renderer object that will use the returned render data.
PortalException
public String getDisplayString(IRenderer renderer) throws PortalException
IRenderable
getDisplayString
in interface IRenderable
renderer
- the renderer object that will use the returned render data.
PortalException
public Collection<SearchContentAttachment> getSearchContentAttachments()
ISearchable
Must never return null
. May return an empty collection if
no attachment is to be used for indexing this object.
getSearchContentAttachments
in interface ISearchable
public List<SearchContentField> getSearchContentFields()
ISearchable
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.
getSearchContentFields
in interface ISearchable
null
.
May return an empty collection if no field is to be used for indexing
this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |