Package org.ctan.site.domain.archive
Class TexArchiveNotes
java.lang.Object
org.ctan.site.domain.AbstractEntity
org.ctan.site.domain.archive.TexArchiveNotes
- All Implemented Interfaces:
Searchable
@Entity(name="tex_archive_notes")
public class TexArchiveNotes
extends AbstractEntity
implements Searchable
The class
TexArchiveNotes
contains additional infos for files or
directories.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetNote
provides means to retrieve the language specific note.The methodindexPath
provides means to retrieve the directory containing the index files.void
remove
(IndexingSession session) The methodremove
provides means to remove the entity from the search index.void
updateIndex
(IndexingSession session) The methodupdateIndex
provides 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, wait
Methods inherited from interface org.ctan.site.services.search.base.Searchable
getId
-
Constructor Details
-
TexArchiveNotes
public TexArchiveNotes()
-
-
Method Details
-
getNote
The methodgetNote
provides means to retrieve the language specific note.- Parameters:
locale
- the locale- Returns:
- the note for the locale or the one for English as fallback
-
indexPath
The methodindexPath
provides means to retrieve the directory containing the index files.- Specified by:
indexPath
in interfaceSearchable
- Returns:
- the index directory
- See Also:
-
remove
The methodremove
provides means to remove the entity from the search index.- Specified by:
remove
in interfaceSearchable
- Parameters:
session
- the session- Throws:
IOException
- in case of an I/O error- See Also:
-
updateIndex
public void updateIndex(IndexingSession session) throws org.apache.lucene.index.CorruptIndexException, IOException The methodupdateIndex
provides means to update the entity in the search index.- Specified by:
updateIndex
in 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:
-