|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.search.indexEngine.model.IndexEntry
public class IndexEntry
IndexEntry is the base class for all the entries which are indexed in the web'activ index. A IndexEntry is create by a web'activ's component when it creates a new element or document. This IndexEntry will be return later when the document matchs a query.
Field Summary | |
---|---|
static String |
ENDDATE_DEFAULT
The end date defaults to 9999/99/99 so the document will be visible for ever. |
static String |
STARTDATE_DEFAULT
The start date defaults to 0000/00/00 so the document is visible as soon as published. |
Constructor Summary | |
---|---|
IndexEntry(IndexEntryPK pk)
The constructor only set the key part of the IndexEntry. |
|
IndexEntry(String component,
String objectType,
String objectId)
|
|
IndexEntry(String space,
String component,
String objectType,
String objectId)
Deprecated. - parameter space is no more used |
|
IndexEntry(WAPrimaryKey key)
This constructor set the key part of the IndexEntry but leave empty the object type. |
|
IndexEntry(WAPrimaryKey key,
String type)
This constructor set the key part of the IndexEntry from WAPrimaryKey completed with a type given as a String. |
Method Summary | |
---|---|
IndexEntry |
clone()
|
boolean |
equals(Object o)
To be equal two IndexEntry must have the same PK. |
String |
getComponent()
Return the name of the component's instance which handles the object. |
String |
getCreationDate()
Return the creation time of the indexed document. |
String |
getCreationUser()
Return the author of the indexed document. |
String |
getEndDate()
Get the end date until which the document will be displayed. |
String |
getFilename()
|
String |
getKeyWords()
Return the key words of the index entry. |
String |
getKeywords(String lang)
|
String |
getLang()
Return the language of the indexed document. |
Iterator<String> |
getLanguages()
|
String |
getLastModificationDate()
|
String |
getLastModificationUser()
|
String |
getObjectId()
Return the object id. |
String |
getObjectType()
Return the type of the indexed document. |
List<String> |
getPaths()
|
IndexEntryPK |
getPK()
Return the key part of the IndexEntry |
String |
getPreView()
Return the pre-view text for the index entry as it will be displayed at the user when the document will be retrieved. |
String |
getPreview(String lang)
|
String |
getServerName()
|
String |
getStartDate()
Get the start date from which the document will be displayed. |
String |
getThumbnail()
|
String |
getThumbnailDirectory()
|
String |
getThumbnailMimeType()
|
String |
getTitle()
Return the title of the index entry as it will be displayed to the user if the indexed document match his query. |
String |
getTitle(String lang)
|
int |
hashCode()
Returns the hash code of the indexEntry. |
boolean |
isAlias()
|
boolean |
isIndexId()
|
void |
setAlias(boolean alias)
|
void |
setCreationDate(Date creationDate)
Set the creation time of the indexed document. |
void |
setCreationDate(String creationDate)
Set the creation time of the indexed document. |
void |
setCreationUser(String creationUser)
Set the author of the indexed document. |
void |
setEndDate(String endDate)
Set the end date until which the document will be displayed. |
void |
setFilename(String filename)
|
void |
setIndexId(boolean indexId)
|
void |
setKeyWords(String keywords)
Set key words for the index entry. |
void |
setKeywords(String keywords,
String lang)
|
void |
setLang(String lang)
Set the language of the indexed document. |
void |
setLastModificationDate(Date lastModificationDate)
|
void |
setLastModificationDate(String lastModificationDate)
|
void |
setLastModificationUser(String lastModificationUser)
|
void |
setPaths(List<String> paths)
|
void |
setPK(IndexEntryPK pk)
|
void |
setPreView(String preview)
Set a pre-view text for the index entry as it will be displayed at the user when the document will be retrieved. |
void |
setPreview(String preview,
String lang)
|
void |
setServerName(String serverName)
|
void |
setStartDate(String startDate)
Set the start date from which the document will be displayed. |
void |
setThumbnail(String thumbnail)
|
void |
setThumbnailDirectory(String thumbnailDirectory)
|
void |
setThumbnailMimeType(String thumbnailMimeType)
|
void |
setTitle(String title)
Set the title of the index entry as it will be displayed to the user if the indexed document match his query. |
void |
setTitle(String title,
String lang)
|
String |
toString()
Returns as a string the key part of the indexEntry. the key part of the IndexEntry |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String STARTDATE_DEFAULT
public static final String ENDDATE_DEFAULT
Constructor Detail |
---|
public IndexEntry(WAPrimaryKey key)
public IndexEntry(WAPrimaryKey key, String type)
public IndexEntry(String space, String component, String objectType, String objectId)
public IndexEntry(String component, String objectType, String objectId)
public IndexEntry(IndexEntryPK pk)
Method Detail |
---|
public String toString()
toString
in class Object
public IndexEntryPK getPK()
public String getComponent()
public String getObjectType()
public String getObjectId()
public void setTitle(String title)
public void setTitle(String title, String lang)
public String getTitle()
public String getTitle(String lang)
public void setKeyWords(String keywords)
public void setKeywords(String keywords, String lang)
public String getKeyWords()
public String getKeywords(String lang)
public void setPreView(String preview)
public void setPreview(String preview, String lang)
public String getPreView()
public String getPreview(String lang)
public void setLang(String lang)
public String getLang()
public void setCreationDate(String creationDate)
public void setCreationDate(Date creationDate)
public String getCreationDate()
public void setCreationUser(String creationUser)
public String getCreationUser()
public void setStartDate(String startDate)
public String getStartDate()
public void setEndDate(String endDate)
public String getEndDate()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getThumbnail()
public void setThumbnail(String thumbnail)
public String getThumbnailDirectory()
public void setThumbnailDirectory(String thumbnailDirectory)
public String getThumbnailMimeType()
public void setThumbnailMimeType(String thumbnailMimeType)
public Iterator<String> getLanguages()
public boolean isIndexId()
public void setIndexId(boolean indexId)
public String getLastModificationDate()
public void setLastModificationDate(String lastModificationDate)
public void setLastModificationDate(Date lastModificationDate)
public String getLastModificationUser()
public void setLastModificationUser(String lastModificationUser)
public String getServerName()
public void setServerName(String serverName)
serverName
- the serverName to setpublic void setFilename(String filename)
public String getFilename()
public void setPaths(List<String> paths)
public List<String> getPaths()
public void setPK(IndexEntryPK pk)
public boolean isAlias()
public void setAlias(boolean alias)
public IndexEntry clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |