Class SherpaCacheEvictService


  • public class SherpaCacheEvictService
    extends Object
    This service is responsible to deal with the SherpaService cache.
    Author:
    Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
    • Constructor Detail

      • SherpaCacheEvictService

        public SherpaCacheEvictService()
    • Method Detail

      • evictCacheValues

        public void evictCacheValues​(Context context,
                                     Item item)
        Remove immediately from the cache all the response that are related to a specific item extracting the ISSNs from the item
        Parameters:
        context - The DSpace context
        item - an Item
      • evictAllCacheValues

        public void evictAllCacheValues()
        Invalidate immediately the Sherpa cache
      • setCacheManager

        public void setCacheManager​(org.springframework.cache.CacheManager cacheManager)
        Set the reference to the cacheManager
        Parameters:
        cacheManager -
      • setSherpaSubmitService

        public void setSherpaSubmitService​(SHERPASubmitService sherpaSubmitService)
        Set the reference to the SherpaSubmitService
        Parameters:
        sherpaSubmitService -