Class FullIndexEntry
- java.lang.Object
-
- org.silverpeas.core.index.indexing.model.IndexEntry
-
- org.silverpeas.core.index.indexing.model.FullIndexEntry
-
- All Implemented Interfaces:
Serializable
public class FullIndexEntry extends IndexEntry implements Serializable
A FullIndexEntry is an IndexEntry completed with data usefull uniquely at the index creation time (mainly all the data contents which must be indexed but which is useless at retrieve time). This extra-content is indexed but not stored in the index.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.index.indexing.model.IndexEntry
ENDDATE_DEFAULT, STARTDATE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description FullIndexEntry(String component, String objectType, String objectId)
FullIndexEntry(IndexEntryKey pk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(String fieldName, String value)
void
addField(String fieldName, String value, String language, boolean stored)
void
addField(String fieldName, Date value)
void
addField(String fieldName, Date value, String language)
void
addFileContent(String path, String encoding, String format, String lang)
Add a file to be indexed.void
addLinkedFileContent(String path, String encoding, String format, String lang)
Add a linked file to be indexed.void
addLinkedFileId(String fileId)
Add a linked file id to be indexed.void
addTextContent(String text)
Add a text fragment to be indexed.void
addTextContent(String text, String language)
FullIndexEntry
getCopy()
List<FieldDescription>
getFields()
List<FileDescription>
getFileContentList()
Return the List of all the added files.List<FileDescription>
getLinkedFileContentList()
Return the List of all the linked files.Set<String>
getLinkedFileIdsSet()
List<TextDescription>
getTextContentList()
Return the List of all the added texts.-
Methods inherited from class org.silverpeas.core.index.indexing.model.IndexEntry
equals, getComponent, getCreationDate, getCreationUser, getEndDate, getFilename, getKeywords, getKeywords, getLang, getLanguages, getLastModificationDate, getLastModificationUser, getObjectId, getObjectType, getPaths, getPK, getPreview, getPreview, getServerName, getStartDate, getThumbnail, getThumbnailDirectory, getThumbnailMimeType, getTitle, getTitle, hashCode, isAlias, isIndexId, setAlias, setCreationDate, setCreationDate, setCreationUser, setEndDate, setEndDate, setFilename, setIndexId, setKeywords, setKeywords, setLang, setLastModificationDate, setLastModificationDate, setLastModificationUser, setPaths, setPK, setPreview, setPreview, setServerName, setStartDate, setStartDate, setThumbnail, setThumbnailDirectory, setThumbnailMimeType, setTitle, setTitle, toString
-
-
-
-
Constructor Detail
-
FullIndexEntry
public FullIndexEntry(IndexEntryKey pk)
-
-
Method Detail
-
addTextContent
public void addTextContent(String text)
Add a text fragment to be indexed. All this text fragments will be indexed but not stored in the index. They may be added in any order.
-
addFileContent
public void addFileContent(String path, String encoding, String format, String lang)
Add a file to be indexed. We need :- the path to the file
- the encoding of the file
- the format of the file
- the language of the file
-
addLinkedFileId
public void addLinkedFileId(String fileId)
Add a linked file id to be indexed. We need :- the file id
-
addLinkedFileContent
public void addLinkedFileContent(String path, String encoding, String format, String lang)
Add a linked file to be indexed. We need :- the path to the file
- the encoding of the file
- the format of the file
- the language of the file
-
getTextContentList
public List<TextDescription> getTextContentList()
Return the List of all the added texts. The returned List is a list of String.
-
getFileContentList
public List<FileDescription> getFileContentList()
Return the List of all the added files. The returned List is a list of FileDescription.
-
getLinkedFileContentList
public List<FileDescription> getLinkedFileContentList()
Return the List of all the linked files. The returned List is a list of FileDescription.
-
getFields
public List<FieldDescription> getFields()
-
getCopy
public FullIndexEntry getCopy()
-
-