Package lumis.search
Class SearchContent
- java.lang.Object
-
- lumis.search.SearchContent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,IAttributeSetReader
@Deprecated public class SearchContent extends java.lang.Object implements IAttributeSetReader, java.lang.Cloneable, java.io.Serializable
Deprecated.Since 8.1.0, lumis.search was replaced by lumis.portal.bigdata.Unit of searchable information, containing one or moreSearchContentField
objects. This object is used to index searchable information by a search engine.This object contains a collection of
SearchContentField
objects, which can contain more than oneSearchContentField
object with the same name value.- Since:
- 4.0.4
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SearchContent()
Deprecated.Constructs an empty instance ofSearchContent
.SearchContent(SearchContent searchContent)
Deprecated.Constructs an instance ofSearchContent
cloning theSearchContentField
s of anotherSearchContent
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAttachment(SearchContentAttachment attachment)
Deprecated.Adds an attachment to this search content.void
addField(SearchContentField field)
Deprecated.Adds aSearchContentField
to the field collection.void
clear()
Deprecated.Removes all fields.SearchContent
clone()
Deprecated.java.util.List<SearchContentField>
getAllFields()
Deprecated.Returns a collection of all fields.java.util.Collection<SearchContentAttachment>
getAttachments()
Deprecated.Returns the attachments in this search content.java.util.List<java.lang.String>
getAttributeValues(java.lang.String attributeName)
Deprecated.Returns all the values related to the attribute named as specified.java.util.List<SearchContentField>
getFields(java.lang.String fieldName)
Deprecated.Returns a collection of fields with the given name.java.util.List<java.lang.String>
getFieldValues(java.lang.String fieldName)
Deprecated.Returns the values of all fields with the given name.java.lang.String
getIdFieldValue()
Deprecated.Returns the value of the identifier field.java.lang.String
getSubtitleFieldValue()
Deprecated.Returns the value of the subtitle field.java.lang.String
getTextFieldValue()
Deprecated.Returns the value of the text field.java.lang.String
getTitleFieldValue()
Deprecated.Returns the value of the title field.java.lang.String
getUrlFieldValue()
Deprecated.Returns the value of the URL field.boolean
hasAttribute(java.lang.String attributeName)
Deprecated.Checks if the attribute set contains at least one attribute with the specified name.boolean
hasField(java.lang.String fieldName)
Deprecated.Checks if there is at least oneSearchContentField
object in the field collection with the provided name.boolean
hasIdField()
Deprecated.Checks if there is, in the field collection, at least oneidentifier field
.boolean
hasSubtitleField()
Deprecated.Checks if there is, in the field collection, at least onesubtitle field
.boolean
hasTextField()
Deprecated.Checks if there is, in the field collection, at least onetext field
.boolean
hasTitleField()
Deprecated.Checks if there is, in the field collection, at least onetitle field
.boolean
hasUrlField()
Deprecated.Checks if there is, in the field collection, at least oneURL field
.boolean
isValid()
Deprecated.void
removeAttachment(SearchContentAttachment attachment)
Deprecated.Removes an attachment from this search content.void
removeFields(java.lang.String fieldName)
Deprecated.Removes all fields with the given name.
-
-
-
Constructor Detail
-
SearchContent
public SearchContent()
Deprecated.Constructs an empty instance ofSearchContent
.- Since:
- 4.0.4
-
SearchContent
public SearchContent(SearchContent searchContent)
Deprecated.Constructs an instance ofSearchContent
cloning theSearchContentField
s of anotherSearchContent
object.- Parameters:
searchContent
-- Since:
- 4.0.4
-
-
Method Detail
-
addField
public void addField(SearchContentField field)
Deprecated.Adds aSearchContentField
to the field collection.- Parameters:
field
-- Since:
- 4.0.4
-
hasField
public boolean hasField(java.lang.String fieldName)
Deprecated.Checks if there is at least oneSearchContentField
object in the field collection with the provided name.- Parameters:
fieldName
- field name to be checked- Returns:
- true, if there is at least one field with the provided name in the collection
- Since:
- 4.0.4
-
hasIdField
public boolean hasIdField()
Deprecated.Checks if there is, in the field collection, at least oneidentifier field
.- Returns:
- true, if there is at least one identifier field in the field collection.
- Since:
- 4.0.4
-
hasTitleField
public boolean hasTitleField()
Deprecated.Checks if there is, in the field collection, at least onetitle field
.- Returns:
- true, if there is at least one title field in the field collection.
- Since:
- 4.0.4
-
hasSubtitleField
public boolean hasSubtitleField()
Deprecated.Checks if there is, in the field collection, at least onesubtitle field
.- Returns:
- true, if there is at least one subtitle field in the field collection.
- Since:
- 4.0.4
-
hasUrlField
public boolean hasUrlField()
Deprecated.Checks if there is, in the field collection, at least oneURL field
.- Returns:
- true, if there is at least one URL field in the field collection.
- Since:
- 4.0.4
-
hasTextField
public boolean hasTextField()
Deprecated.Checks if there is, in the field collection, at least onetext field
.- Returns:
- true, if there is at least one text field in the field collection.
- Since:
- 4.0.4
-
removeFields
public void removeFields(java.lang.String fieldName)
Deprecated.Removes all fields with the given name.- Parameters:
fieldName
- name of the fields to be removed.- Since:
- 4.0.4
-
clear
public void clear()
Deprecated.Removes all fields.- Since:
- 4.0.4
-
getFields
public java.util.List<SearchContentField> getFields(java.lang.String fieldName)
Deprecated.Returns a collection of fields with the given name.- Parameters:
fieldName
- field name- Returns:
- collection of fields with the given name
- Since:
- 4.0.4
-
getAllFields
public java.util.List<SearchContentField> getAllFields()
Deprecated.Returns a collection of all fields.- Returns:
- collection of all fields.
- Since:
- 4.0.4
-
getFieldValues
public java.util.List<java.lang.String> getFieldValues(java.lang.String fieldName)
Deprecated.Returns the values of all fields with the given name.- Parameters:
fieldName
- field name- Returns:
- values of all fields with the given name, or an empty
List
, if there no value to return. - Since:
- 4.0.4
-
getIdFieldValue
public java.lang.String getIdFieldValue()
Deprecated.Returns the value of the identifier field.- Returns:
- value of the identifier field, or null if there is no such field.
- Since:
- 4.0.4
- See Also:
SearchContentField
,SearchContentField.FIELDNAME_ID
-
getTitleFieldValue
public java.lang.String getTitleFieldValue()
Deprecated.Returns the value of the title field.- Returns:
- value of the title field, or null if there is no such field.
- Since:
- 4.0.4
- See Also:
SearchContentField
,SearchContentField.FIELDNAME_TITLE
-
getSubtitleFieldValue
public java.lang.String getSubtitleFieldValue()
Deprecated.Returns the value of the subtitle field.- Returns:
- value of the subtitle field, or null if there is no such field.
- Since:
- 4.0.4
- See Also:
SearchContentField
,SearchContentField.FIELDNAME_SUBTITLE
-
getUrlFieldValue
public java.lang.String getUrlFieldValue()
Deprecated.Returns the value of the URL field.- Returns:
- value of the URL field, or null if there is no such field.
- Since:
- 4.0.4
- See Also:
SearchContentField
,SearchContentField.FIELDNAME_URL
-
getTextFieldValue
public java.lang.String getTextFieldValue()
Deprecated.Returns the value of the text field.- Returns:
- value of the text field, or null if there is no such field.
- Since:
- 4.0.4
- See Also:
SearchContentField
,SearchContentField.FIELDNAME_TEXT
-
isValid
public boolean isValid()
Deprecated.- Returns:
- true if all the required fields exit.
- Since:
- 4.0.4
-
getAttributeValues
public java.util.List<java.lang.String> getAttributeValues(java.lang.String attributeName)
Deprecated.Description copied from interface:IAttributeSetReader
Returns all the values related to the attribute named as specified.- Specified by:
getAttributeValues
in interfaceIAttributeSetReader
- Parameters:
attributeName
- name of the attribute.- Returns:
- all values related to the specified attribute name, or an empty
List
if there is no value to return.
-
hasAttribute
public boolean hasAttribute(java.lang.String attributeName)
Deprecated.Description copied from interface:IAttributeSetReader
Checks if the attribute set contains at least one attribute with the specified name.- Specified by:
hasAttribute
in interfaceIAttributeSetReader
- Parameters:
attributeName
- name of the attribute.- Returns:
- true if at least one attribute with the provided name was found.
-
clone
public SearchContent clone() throws java.lang.CloneNotSupportedException
Deprecated.- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
getAttachments
public java.util.Collection<SearchContentAttachment> getAttachments()
Deprecated.Returns the attachments in this search content.- Returns:
- a immutable collection containing the attachments.
- Since:
- 4.2.2
-
addAttachment
public void addAttachment(SearchContentAttachment attachment)
Deprecated.Adds an attachment to this search content.- Parameters:
attachment
- the attachment.- Since:
- 4.2.2
-
removeAttachment
public void removeAttachment(SearchContentAttachment attachment)
Deprecated.Removes an attachment from this search content.- Parameters:
attachment
- the attachment to remove.- Since:
- 4.2.2
-
-