Package org.ctan.site.domain.catalogue
Class Topic
java.lang.Object
org.ctan.site.domain.AbstractEntity
org.ctan.site.domain.catalogue.Topic
- All Implemented Interfaces:
Searchable
The domain class
Topic represents a topic in the Catalogue.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDescription(String lang) The methodgetDescriptionprovides means to retrieve the description of a topic in a given language.getDetails(String lang) The methodgetDetailsprovides means to retrieve the details text of a topic in a given language.The methodgetTeaserprovides means to retrieve the teaser in a given language.The methodgetTitleprovides means to retrieve the title in a given language.getTopicDetail(String lang) The methodgetDetailprovides means to retrieve the detail text of a topic in a given language.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.The methodtoMapprovides means to get the instance as an immutable Map.voidupdateIndex(IndexingSession session) The methodupdateIndexprovides means to update the entity in the search index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ctan.site.services.search.base.Searchable
getId
-
Constructor Details
-
Topic
public Topic()
-
-
Method Details
-
getDescription
The methodgetDescriptionprovides means to retrieve the description of a topic in a given language.- Parameters:
lang- the two-letter language code- Returns:
- the description or the empty string
-
getDetails
The methodgetDetailsprovides means to retrieve the details text of a topic in a given language.- Parameters:
lang- the two-letter language code- Returns:
- the details text or the empty string
-
getTitle
The methodgetTitleprovides means to retrieve the title in a given language.- Parameters:
lang- the two-letter language code- Returns:
- the title or the empty string
-
getTopicDetail
The methodgetDetailprovides means to retrieve the detail text of a topic in a given language.- Parameters:
lang- the two-letter language code- Returns:
- the detail
-
indexPath
The methodindexPathprovides means to retrieve the directory containing the index files.- Specified by:
indexPathin interfaceSearchable- Returns:
- the index directory
- See Also:
-
remove
The methodremoveprovides means to remove the entity from the search index.- Specified by:
removein interfaceSearchable- Parameters:
session- the session- Throws:
IOException- in case of an I/O error- See Also:
-
toMap
The methodtoMapprovides means to get the instance as an immutable Map.- Returns:
- the Map
-
toMap
The methodtoMapprovides means to get the instance as an immutable Map.- Parameters:
locale- the language code- Returns:
- the Map
-
updateIndex
public 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 interfaceSearchable- Parameters:
session- the session- Throws:
org.apache.lucene.index.CorruptIndexException- in case of an errorIOException- in case of an I/O error- See Also:
-