Package eu.europa.esig.dss.spi.tsl
Interface InfoRecord
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
DownloadInfoRecord
,ParsingInfoRecord
,ValidationInfoRecord
- All Known Implementing Classes:
AbstractCacheDTO
,DownloadCacheDTO
,ParsingCacheDTO
,ValidationCacheDTO
Describes a state of a record
-
Method Summary
Modifier and TypeMethodDescriptionGets the first time when the error is occurredGets the last time when the error is occurredGets the exception message for an error stateGets the exception stack trace for an error stateGets the last time when the state of record has been changedGets the last time when the record has been synchronizedGets the record's status nameboolean
Gets if the record is desynchronizedboolean
isError()
Gets if the error is present for the recordboolean
Gets if the refresh is needed for an entryboolean
Gets if a result exist under the recordboolean
Gets if the record is synchronizedboolean
Gets if the record shall be deleted
-
Method Details
-
isRefreshNeeded
boolean isRefreshNeeded()Gets if the refresh is needed for an entry- Returns:
- TRUE if the refresh is needed, FALSE otherwise
-
isDesynchronized
boolean isDesynchronized()Gets if the record is desynchronized- Returns:
- TRUE if the record is desynchronized, FALSE otherwise
-
isSynchronized
boolean isSynchronized()Gets if the record is synchronized- Returns:
- TRUE if the record is synchronized, FALSE otherwise
-
isError
boolean isError()Gets if the error is present for the record- Returns:
- TRUE if the record defines an error, FALSE otherwise
-
isToBeDeleted
boolean isToBeDeleted()Gets if the record shall be deleted- Returns:
- TRUE if the record shall be deleted, FALSE otherwise
-
getStatusName
String getStatusName()Gets the record's status name- Returns:
String
-
getLastStateTransitionTime
Date getLastStateTransitionTime()Gets the last time when the state of record has been changed- Returns:
Date
-
getLastSuccessSynchronizationTime
Date getLastSuccessSynchronizationTime()Gets the last time when the record has been synchronized- Returns:
Date
-
getExceptionMessage
String getExceptionMessage()Gets the exception message for an error state- Returns:
String
-
getExceptionStackTrace
String getExceptionStackTrace()Gets the exception stack trace for an error state- Returns:
String
-
getExceptionFirstOccurrenceTime
Date getExceptionFirstOccurrenceTime()Gets the first time when the error is occurred- Returns:
Date
-
getExceptionLastOccurrenceTime
Date getExceptionLastOccurrenceTime()Gets the last time when the error is occurred- Returns:
Date
-
isResultExist
boolean isResultExist()Gets if a result exist under the record- Returns:
- TRUE if the result exists, FALSE otherwise
-