Package org.ctan.site.domain.archive
Class ArchiveFile
java.lang.Object
org.ctan.site.domain.archive.ArchiveFile
- All Implemented Interfaces:
Searchable
This domain class records the info about a file or directory in the
tex-archive tree.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enumeration lists known file types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe methodindexPathprovides means to retrieve the URL under which the entity is indexed.booleanThis method is a getter for the boolean property of a file being an archive.booleanThis method is a getter for the boolean property of a file being a directory.booleanisFile()This method is a getter for the boolean property of a file being a plain file.toMap()The methodtoMapprovides means to get the instance as 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
-
ArchiveFile
public ArchiveFile()
-
-
Method Details
-
indexPath
The methodindexPathprovides means to retrieve the URL under which the entity is indexed.- Specified by:
indexPathin interfaceSearchable- Returns:
- the URL
- See Also:
-
isArchive
public boolean isArchive()This method is a getter for the boolean property of a file being an archive.- Returns:
trueiff the file is an archive
-
isDirectory
public boolean isDirectory()This method is a getter for the boolean property of a file being a directory.- Returns:
trueiff the file is a directory
-
isFile
public boolean isFile()This method is a getter for the boolean property of a file being a plain file.- Returns:
trueiff the file is a plain file
-
toMap
The methodtoMapprovides means to get the instance as Map.- Returns:
- the Map representation
-
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:
-