Class GuestBook

java.lang.Object
org.ctan.site.domain.AbstractEntity
org.ctan.site.domain.site.GuestBook
All Implemented Interfaces:
Searchable

@Entity public class GuestBook extends AbstractEntity implements Searchable
This domain class represents an entry in the guest book.
  • Constructor Details

    • GuestBook

      public GuestBook()
  • Method Details

    • getCleanedText

      public String getCleanedText()
      This method getCleanedText returns the text property after it has applied some cleanup to it. Currently HTML links are removed.
      Returns:
      the cleaned text
    • getIndexType

      public IndexType getIndexType()
      The method getIndexType provides means to name the indexType.
      Returns:
      the index type
    • getKey

      public long getKey()
      Getter for the object identifier.
      Returns:
      the object identifier
    • getParents

      public List<GuestBook> getParents()
      Getter for the list of parents of this instance.
      Returns:
      the list of parents
    • indexPath

      public String indexPath()
      The method indexPath provides means to retrieve the directory containing the index files.
      Specified by:
      indexPath in interface Searchable
      Returns:
      the index directory
      See Also:
    • refreshSearchIndex

      public void refreshSearchIndex()
      This method updates the search index.
    • remove

      public void remove(IndexingSession session) throws IOException
      The method remove provides means to remove the entity from the search index.
      Specified by:
      remove in interface Searchable
      Parameters:
      session - the session
      Throws:
      IOException - in case of an I/O error
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • toUrl

      public String toUrl()
      This method toUrl returns the URL for the search index.
      Returns:
      the URL
    • updateIndex

      public void updateIndex(IndexingSession session) throws org.apache.lucene.index.CorruptIndexException, IOException
      The method updateIndex provides means to update the entity in the search index.
      Specified by:
      updateIndex in interface Searchable
      Parameters:
      session - the session
      Throws:
      org.apache.lucene.index.CorruptIndexException - in case of an error
      IOException - in case of an I/O error
      See Also: