Class AbstractCacheDTO

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

public class AbstractCacheDTO extends Object implements eu.europa.esig.dss.model.tsl.InfoRecord
The abstract cache DTO
See Also:
  • Constructor Details

    • AbstractCacheDTO

      public AbstractCacheDTO()
      Empty constructor
    • AbstractCacheDTO

      public AbstractCacheDTO(AbstractCacheDTO cacheDTO)
      Copies the cache DTO
      Parameters:
      cacheDTO - AbstractCacheDTO to copy
  • Method Details

    • getCacheState

      public CacheStateEnum getCacheState()
      Gets the state of the cache
      Returns:
      CacheStateEnum
    • setCacheState

      public void setCacheState(CacheStateEnum cacheState)
      Sets the cache state
      Parameters:
      cacheState - CacheStateEnum
    • getLastStateTransitionTime

      public Date getLastStateTransitionTime()
      Specified by:
      getLastStateTransitionTime in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • setLastStateTransitionTime

      public void setLastStateTransitionTime(Date lastStateTransitionTime)
      Sets the last time of the state change
      Parameters:
      lastStateTransitionTime - Date
    • getLastSuccessSynchronizationTime

      public Date getLastSuccessSynchronizationTime()
      Specified by:
      getLastSuccessSynchronizationTime in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • setLastSuccessSynchronizationTime

      public void setLastSuccessSynchronizationTime(Date lastSuccessSynchronizationTime)
      Sets the last time of a successful synchronization
      Parameters:
      lastSuccessSynchronizationTime - Date
    • getExceptionMessage

      public String getExceptionMessage()
      Specified by:
      getExceptionMessage in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • setExceptionMessage

      public void setExceptionMessage(String exceptionMessage)
      Sets the exception message
      Parameters:
      exceptionMessage - String
    • getExceptionStackTrace

      public String getExceptionStackTrace()
      Specified by:
      getExceptionStackTrace in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • setExceptionStackTrace

      public void setExceptionStackTrace(String exceptionStackTrace)
      Sets the exception stack trace
      Parameters:
      exceptionStackTrace - String
    • getExceptionFirstOccurrenceTime

      public Date getExceptionFirstOccurrenceTime()
      Specified by:
      getExceptionFirstOccurrenceTime in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • setExceptionFirstOccurrenceTime

      public void setExceptionFirstOccurrenceTime(Date exceptionFirstOccurrenceTime)
      Sets the first time of the exception occurrence
      Parameters:
      exceptionFirstOccurrenceTime - Date
    • getExceptionLastOccurrenceTime

      public Date getExceptionLastOccurrenceTime()
      Specified by:
      getExceptionLastOccurrenceTime in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • setExceptionLastOccurrenceTime

      public void setExceptionLastOccurrenceTime(Date exceptionLastOccurrenceTime)
      Sets the last time of a the exception occurrence
      Parameters:
      exceptionLastOccurrenceTime - Date
    • isResultExist

      public boolean isResultExist()
      Specified by:
      isResultExist in interface eu.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:
      isRefreshNeeded in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • isDesynchronized

      public boolean isDesynchronized()
      Specified by:
      isDesynchronized in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • isSynchronized

      public boolean isSynchronized()
      Specified by:
      isSynchronized in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • isError

      public boolean isError()
      Specified by:
      isError in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • isToBeDeleted

      public boolean isToBeDeleted()
      Specified by:
      isToBeDeleted in interface eu.europa.esig.dss.model.tsl.InfoRecord
    • getStatusName

      public String getStatusName()
      Specified by:
      getStatusName in interface eu.europa.esig.dss.model.tsl.InfoRecord