Package org.ctan.site.domain.site
Class GuestBook
java.lang.Object
org.ctan.site.domain.AbstractEntity
org.ctan.site.domain.site.GuestBook
- All Implemented Interfaces:
- Searchable
This domain class represents an entry in the guest book.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis methodgetCleanedTextreturns the text property after it has applied some cleanup to it.The methodgetIndexTypeprovides means to name the indexType.longgetKey()Getter for the object identifier.Getter for the list of parents of this instance.The methodindexPathprovides means to retrieve the directory containing the index files.voidremove(IndexingSession session) The methodremoveprovides means to remove the entity from the search index.toMap()The methodtoMapprovides means to get the instance as an immutable Map.toString()toUrl()This methodtoUrlreturns the URL for the search index.voidupdateIndex(IndexingSession session) The methodupdateIndexprovides means to update the entity in the search index.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ctan.site.services.search.base.SearchablegetId
- 
Constructor Details- 
GuestBookpublic GuestBook()
 
- 
- 
Method Details- 
getCleanedTextThis methodgetCleanedTextreturns the text property after it has applied some cleanup to it. Currently HTML links are removed.- Returns:
- the cleaned text
 
- 
getIndexTypeThe methodgetIndexTypeprovides means to name the indexType.- Returns:
- the index type
 
- 
getKeypublic long getKey()Getter for the object identifier.- Returns:
- the object identifier
 
- 
getParentsGetter for the list of parents of this instance.- Returns:
- the list of parents
 
- 
indexPathThe methodindexPathprovides means to retrieve the directory containing the index files.- Specified by:
- indexPathin interface- Searchable
- Returns:
- the index directory
- See Also:
 
- 
removeThe methodremoveprovides means to remove the entity from the search index.- Specified by:
- removein interface- Searchable
- Parameters:
- session- the session
- Throws:
- IOException- in case of an I/O error
- See Also:
 
- 
toMapThe methodtoMapprovides means to get the instance as an immutable Map.- Returns:
- the Map
 
- 
toString
- 
toUrlThis methodtoUrlreturns the URL for the search index.- Returns:
- the URL
 
- 
updateIndexpublic void updateIndex(IndexingSession session) throws org.apache.lucene.index.CorruptIndexException, IOException The methodupdateIndexprovides means to update the entity in the search index.- Specified by:
- updateIndexin 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:
 
 
-