java.lang.Object
com.priint.pubserver.plugin.entitymanager.cache.CacheUtils

public class CacheUtils extends Object
  • Constructor Details

    • CacheUtils

      public CacheUtils()
  • Method Details

    • getEntitiesOfBucketFromCache

      public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntitiesOfBucketFromCache(CacheUtils.EntityClassType entityClassType, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • getEntityChildBucketsFromCache

      public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntityChildBucketsFromCache(String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • getEntityRootBucketsFromCache

      public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntityRootBucketsFromCache(String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • getEntityCordedBucketsFromCache

      public List<? extends com.priint.pubserver.plugin.entitydata.EntityData> getEntityCordedBucketsFromCache(String sessionId, String entityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, String entityModelIdentifier, EntityManager entityManager, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • getListWithSingleEntityDataFromCache

      public <T extends com.priint.pubserver.plugin.entitydata.EntityData> List<T> getListWithSingleEntityDataFromCache(String sessionId, String entityModelIdentifier, String cacheKey) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addEntityChildBucketsListToCache

      public void addEntityChildBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addEntityChildBucketsListToCache

      public void addEntityChildBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addEntityRootBucketsListToCache

      public void addEntityRootBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addEntityRootBucketsListToCache

      public void addEntityRootBucketsListToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addKeyValuesOfBucketToCache

      public void addKeyValuesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.KeyValue> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addKeyValuesOfBucketToCache

      public void addKeyValuesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.KeyValue> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addPricesOfBucketToCache

      public void addPricesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Price> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addPricesOfBucketToCache

      public void addPricesOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Price> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addTextsOfBucketToCache

      public void addTextsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Text> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addTextsOfBucketToCache

      public void addTextsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Text> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addMediaAssetsOfBucketToCache

      public void addMediaAssetsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.MediaAsset> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addMediaAssetsOfBucketToCache

      public void addMediaAssetsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.MediaAsset> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addCordsOfBucketToCache

      public void addCordsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Cord> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addCordsOfBucketToCache

      public void addCordsOfBucketToCache(List<com.priint.pubserver.plugin.entitydata.Cord> dataToCache, String sessionId, String entityId, String parentBucketId, String resultEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addEntityCordedBucketsToCache

      public void addEntityCordedBucketsToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String parentBucketEntityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addEntityCordedBucketsToCache

      public void addEntityCordedBucketsToCache(List<com.priint.pubserver.plugin.entitydata.Bucket> dataToCache, String sessionId, String parentBucketEntityId, String parentBucketId, String cordEntityId, com.priint.pubserver.plugin.entitydata.Context context, EntityModelManager entityModelManager, String entityModelIdentifier, long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addSingleEntityToCache

      public void addSingleEntityToCache(com.priint.pubserver.plugin.entitydata.EntityData dataToCache, String sessionId, String cacheKey, EntityModelManager entityModelManager, String entityModelIdentifier) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • addSingleEntityToCache

      public void addSingleEntityToCache(com.priint.pubserver.plugin.entitydata.EntityData dataToCache, String sessionId, String cacheKey, EntityModelManager entityModelManager, String entityModelIdentifier, Long ttl, TimeUnit ttlTimeUnit) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • getTenant

      public String getTenant(String sessionId, String project) throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException
    • getCometBridgeLocal

      public com.priint.pubserver.comet.bridge.CometBridgeLocal getCometBridgeLocal() throws com.priint.pubserver.plugin.exception.EntityManagerException
      Throws:
      com.priint.pubserver.plugin.exception.EntityManagerException