@Entity public class ArchiveFile extends Object
Constructor and Description |
---|
ArchiveFile()
Constructor, creates a new instance in the unindexed state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFilename()
The filename is used as a natural key because it is a fundamental property of the arcrepository that filenames
are unique.
|
Date |
getIndexedDate()
Returns indexedDate.
|
int |
getIndexingFailedAttempts()
Gets the number of failed indexing attempts.
|
String |
getOriginalIndexFileName()
Gets originalIndexFileName.
|
int |
hashCode() |
void |
index()
Run a batch job to index this file, storing the result locally.
|
boolean |
isIndexed()
Returns true if the file has been indexed.
|
void |
setFilename(String filename)
Sets the filename.
|
void |
setIndexed(boolean indexed)
Sets whether the file has been indexed.
|
void |
setIndexedDate(Date indexedDate)
Sets indexedDate.
|
void |
setIndexingFailedAttempts(int indexingFailedAttempts)
Sets the number of failed indexing attempts.
|
void |
setOriginalIndexFileName(String originalIndexFileName)
Sets originalIndexFileName.
|
public ArchiveFile()
public String getOriginalIndexFileName()
public void setOriginalIndexFileName(String originalIndexFileName)
originalIndexFileName
- The new original index filenamepublic Date getIndexedDate()
public void setIndexedDate(Date indexedDate)
indexedDate
- The new indexed date.public String getFilename()
public void setFilename(String filename)
filename
- The new filenamepublic boolean isIndexed()
public void setIndexed(boolean indexed)
indexed
- The new value of the isIndexed variable.public int getIndexingFailedAttempts()
public void setIndexingFailedAttempts(int indexingFailedAttempts)
indexingFailedAttempts
- The number of failed indexing attemptspublic void index() throws IllegalState
IllegalState
- If the indexing has already been done.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.