Package eu.europa.esig.dss.tsl.dto
Class AbstractCacheDTO
java.lang.Object
eu.europa.esig.dss.tsl.dto.AbstractCacheDTO
- All Implemented Interfaces:
InfoRecord,Serializable
- Direct Known Subclasses:
DownloadCacheDTO,ParsingCacheDTO,ValidationCacheDTO
The abstract cache DTO
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorAbstractCacheDTO(AbstractCacheDTO cacheDTO) Copies the cache DTO -
Method Summary
Modifier and TypeMethodDescriptionGets the state of the cacheGets 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 namebooleanGets if the record is desynchronizedbooleanisError()Gets if the error is present for the recordbooleanGets if the refresh is needed for an entrybooleanGets if a result exist under the recordbooleanGets if the record is synchronizedbooleanGets if the record shall be deletedvoidsetCacheState(CacheStateEnum cacheState) Sets the cache statevoidsetExceptionFirstOccurrenceTime(Date exceptionFirstOccurrenceTime) Sets the first time of the exception occurrencevoidsetExceptionLastOccurrenceTime(Date exceptionLastOccurrenceTime) Sets the last time of a the exception occurrencevoidsetExceptionMessage(String exceptionMessage) Sets the exception messagevoidsetExceptionStackTrace(String exceptionStackTrace) Sets the exception stack tracevoidsetLastStateTransitionTime(Date lastStateTransitionTime) Sets the last time of the state changevoidsetLastSuccessSynchronizationTime(Date lastSuccessSynchronizationTime) Sets the last time of a successful synchronizationvoidsetResultExist(boolean resultExist) Sets if the cache result exists
-
Constructor Details
-
AbstractCacheDTO
public AbstractCacheDTO()Empty constructor -
AbstractCacheDTO
Copies the cache DTO- Parameters:
cacheDTO-AbstractCacheDTOto copy
-
-
Method Details
-
getCacheState
-
setCacheState
Sets the cache state- Parameters:
cacheState-CacheStateEnum
-
getLastStateTransitionTime
Description copied from interface:InfoRecordGets the last time when the state of record has been changed- Specified by:
getLastStateTransitionTimein interfaceInfoRecord- Returns:
Date
-
setLastStateTransitionTime
-
getLastSuccessSynchronizationTime
Description copied from interface:InfoRecordGets the last time when the record has been synchronized- Specified by:
getLastSuccessSynchronizationTimein interfaceInfoRecord- Returns:
Date
-
setLastSuccessSynchronizationTime
-
getExceptionMessage
Description copied from interface:InfoRecordGets the exception message for an error state- Specified by:
getExceptionMessagein interfaceInfoRecord- Returns:
String
-
setExceptionMessage
-
getExceptionStackTrace
Description copied from interface:InfoRecordGets the exception stack trace for an error state- Specified by:
getExceptionStackTracein interfaceInfoRecord- Returns:
String
-
setExceptionStackTrace
-
getExceptionFirstOccurrenceTime
Description copied from interface:InfoRecordGets the first time when the error is occurred- Specified by:
getExceptionFirstOccurrenceTimein interfaceInfoRecord- Returns:
Date
-
setExceptionFirstOccurrenceTime
-
getExceptionLastOccurrenceTime
Description copied from interface:InfoRecordGets the last time when the error is occurred- Specified by:
getExceptionLastOccurrenceTimein interfaceInfoRecord- Returns:
Date
-
setExceptionLastOccurrenceTime
-
isResultExist
public boolean isResultExist()Description copied from interface:InfoRecordGets if a result exist under the record- Specified by:
isResultExistin interfaceInfoRecord- Returns:
- TRUE if the result exists, FALSE otherwise
-
setResultExist
public void setResultExist(boolean resultExist) Sets if the cache result exists- Parameters:
resultExist- if the cache result exists
-
isRefreshNeeded
public boolean isRefreshNeeded()Description copied from interface:InfoRecordGets if the refresh is needed for an entry- Specified by:
isRefreshNeededin interfaceInfoRecord- Returns:
- TRUE if the refresh is needed, FALSE otherwise
-
isDesynchronized
public boolean isDesynchronized()Description copied from interface:InfoRecordGets if the record is desynchronized- Specified by:
isDesynchronizedin interfaceInfoRecord- Returns:
- TRUE if the record is desynchronized, FALSE otherwise
-
isSynchronized
public boolean isSynchronized()Description copied from interface:InfoRecordGets if the record is synchronized- Specified by:
isSynchronizedin interfaceInfoRecord- Returns:
- TRUE if the record is synchronized, FALSE otherwise
-
isError
public boolean isError()Description copied from interface:InfoRecordGets if the error is present for the record- Specified by:
isErrorin interfaceInfoRecord- Returns:
- TRUE if the record defines an error, FALSE otherwise
-
isToBeDeleted
public boolean isToBeDeleted()Description copied from interface:InfoRecordGets if the record shall be deleted- Specified by:
isToBeDeletedin interfaceInfoRecord- Returns:
- TRUE if the record shall be deleted, FALSE otherwise
-
getStatusName
Description copied from interface:InfoRecordGets the record's status name- Specified by:
getStatusNamein interfaceInfoRecord- Returns:
String
-