Package lumis.search

Class SearchContent

    • Method Detail

      • hasField

        public boolean hasField​(String fieldName)
        Deprecated.
        Checks if there is at least one SearchContentField 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 one identifier 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 one title 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 one subtitle 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 one URL 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 one text field.
        Returns:
        true, if there is at least one text field in the field collection.
        Since:
        4.0.4
      • removeFields

        public void removeFields​(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 List<SearchContentField> getFields​(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 List<SearchContentField> getAllFields()
        Deprecated.
        Returns a collection of all fields.
        Returns:
        collection of all fields.
        Since:
        4.0.4
      • getFieldValues

        public List<String> getFieldValues​(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
      • isValid

        public boolean isValid()
        Deprecated.
        Checks if the object has all the required fields: identifier, title, subtitle and URL.
        Returns:
        true if all the required fields exit.
        Since:
        4.0.4
      • getAttributeValues

        public List<String> getAttributeValues​(String attributeName)
        Deprecated.
        Description copied from interface: IAttributeSetReader
        Returns all the values related to the attribute named as specified.
        Specified by:
        getAttributeValues in interface IAttributeSetReader
        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​(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 interface IAttributeSetReader
        Parameters:
        attributeName - name of the attribute.
        Returns:
        true if at least one attribute with the provided name was found.
      • getAttachments

        public 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