Class SearchResult
- java.lang.Object
-
- org.silverpeas.core.i18n.AbstractI18NBean<BeanTranslation>
-
- org.silverpeas.core.i18n.AbstractBean
-
- org.silverpeas.core.index.search.model.SearchResult
-
- All Implemented Interfaces:
Serializable
,I18NBean<BeanTranslation>
,Translatable
,Nameable
public class SearchResult extends AbstractBean
- Author:
- Nicolas Eysseric
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static SearchResult
fromGlobalSilverContent(GlobalSilverContent gsc)
static SearchResult
fromIndexEntry(MatchingIndexEntry mie)
String
getAttachmentFilename()
LocalDate
getCreationLocalDate()
String
getCreatorId()
Map<String,String>
getFormFieldsForFacets()
String
getId()
String
getInstanceId()
String
getKeywords()
LocalDate
getLastUpdateLocalDate()
String
getLastUpdaterId()
String
getLinkedResourceId()
float
getScore()
String
getServerName()
Map<String,String>
getSortableXMLFormFields()
gets the list of Sortable fields if the content is a form XMLString
getThumbnailURL()
String
getType()
int
hashCode()
boolean
isAlias()
boolean
isExternalResult()
boolean
isLinkedToAnotherContribution()
Is the contribution referred by this search result linked to another contribution?boolean
isNew()
void
setThumbnailURL(String url)
-
Methods inherited from class org.silverpeas.core.i18n.AbstractBean
getDescription, getLanguages, getName, getTranslationType
-
Methods inherited from class org.silverpeas.core.i18n.AbstractI18NBean
addTranslation, getClonedTranslations, getDescription, getLanguage, getLanguageToDisplay, getName, getNextTranslation, getTranslation, getTranslationId, getTranslations, isRemoveTranslation, setDescription, setLanguage, setName, setRemoveTranslation, setTranslationId, setTranslations, setTranslations
-
-
-
-
Method Detail
-
fromIndexEntry
public static SearchResult fromIndexEntry(MatchingIndexEntry mie)
-
fromGlobalSilverContent
public static SearchResult fromGlobalSilverContent(GlobalSilverContent gsc)
-
isLinkedToAnotherContribution
public boolean isLinkedToAnotherContribution()
Is the contribution referred by this search result linked to another contribution? For example, a comment or an attachment is a contribution that is linked usually to a publication.- Returns:
- true if the resource referred by this result is linked to another resource.
-
getKeywords
public String getKeywords()
-
getCreationLocalDate
public LocalDate getCreationLocalDate()
-
getCreatorId
public String getCreatorId()
-
getLastUpdateLocalDate
public LocalDate getLastUpdateLocalDate()
-
getLastUpdaterId
public String getLastUpdaterId()
-
getId
public String getId()
-
getInstanceId
public String getInstanceId()
-
getType
public String getType()
-
getLinkedResourceId
public String getLinkedResourceId()
-
getScore
public float getScore()
-
getServerName
public String getServerName()
-
getThumbnailURL
public String getThumbnailURL()
-
setThumbnailURL
public void setThumbnailURL(String url)
-
getAttachmentFilename
public String getAttachmentFilename()
-
getSortableXMLFormFields
public Map<String,String> getSortableXMLFormFields()
gets the list of Sortable fields if the content is a form XML- Returns:
- the sortableXMLFormFields
-
isExternalResult
public boolean isExternalResult()
-
isAlias
public boolean isAlias()
-
isNew
public boolean isNew()
-
-