java.lang.Object
eu.europa.esig.dss.tsl.dto.AbstractCacheDTO
- All Implemented Interfaces:
eu.europa.esig.dss.model.tsl.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 cachebooleanbooleanisError()booleanbooleanbooleanbooleanvoidsetCacheState(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
Gets the state of the cache- Returns:
CacheStateEnum
-
setCacheState
Sets the cache state- Parameters:
cacheState-CacheStateEnum
-
getLastStateTransitionTime
- Specified by:
getLastStateTransitionTimein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setLastStateTransitionTime
Sets the last time of the state change- Parameters:
lastStateTransitionTime-Date
-
getLastSuccessSynchronizationTime
- Specified by:
getLastSuccessSynchronizationTimein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setLastSuccessSynchronizationTime
Sets the last time of a successful synchronization- Parameters:
lastSuccessSynchronizationTime-Date
-
getExceptionMessage
- Specified by:
getExceptionMessagein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setExceptionMessage
Sets the exception message- Parameters:
exceptionMessage-String
-
getExceptionStackTrace
- Specified by:
getExceptionStackTracein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setExceptionStackTrace
Sets the exception stack trace- Parameters:
exceptionStackTrace-String
-
getExceptionFirstOccurrenceTime
- Specified by:
getExceptionFirstOccurrenceTimein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setExceptionFirstOccurrenceTime
Sets the first time of the exception occurrence- Parameters:
exceptionFirstOccurrenceTime-Date
-
getExceptionLastOccurrenceTime
- Specified by:
getExceptionLastOccurrenceTimein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setExceptionLastOccurrenceTime
Sets the last time of a the exception occurrence- Parameters:
exceptionLastOccurrenceTime-Date
-
isResultExist
public boolean isResultExist()- Specified by:
isResultExistin interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
setResultExist
public void setResultExist(boolean resultExist) Sets if the cache result exists- Parameters:
resultExist- if the cache result exists
-
isRefreshNeeded
public boolean isRefreshNeeded()- Specified by:
isRefreshNeededin interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
isDesynchronized
public boolean isDesynchronized()- Specified by:
isDesynchronizedin interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
isSynchronized
public boolean isSynchronized()- Specified by:
isSynchronizedin interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
isError
public boolean isError()- Specified by:
isErrorin interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
isToBeDeleted
public boolean isToBeDeleted()- Specified by:
isToBeDeletedin interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-
getStatusName
- Specified by:
getStatusNamein interfaceeu.europa.esig.dss.model.tsl.InfoRecord
-