Search in sources :

Example 1 with IEntityCache

use of org.apereo.portal.concurrency.IEntityCache in project uPortal by Jasig.

the class AbstractEntityCachingService method remove.

/* (non-Javadoc)
     * @see org.apereo.portal.concurrency.IEntityCachingService#remove(java.lang.Class, java.lang.String)
     */
public void remove(Class<? extends IBasicEntity> entityType, String key) throws CachingException {
    final IEntityCache entityCache = this.getCache(entityType);
    entityCache.remove(key);
}
Also used : IEntityCache(org.apereo.portal.concurrency.IEntityCache)

Example 2 with IEntityCache

use of org.apereo.portal.concurrency.IEntityCache in project uPortal by Jasig.

the class AbstractEntityCachingService method add.

/* (non-Javadoc)
     * @see org.apereo.portal.concurrency.IEntityCachingService#add(org.apereo.portal.IBasicEntity)
     */
public void add(IBasicEntity entity) throws CachingException {
    final EntityIdentifier entityIdentifier = entity.getEntityIdentifier();
    final Class<? extends IBasicEntity> entityType = entityIdentifier.getType();
    final IEntityCache entityCache = this.getCache(entityType);
    entityCache.add(entity);
}
Also used : IEntityCache(org.apereo.portal.concurrency.IEntityCache) EntityIdentifier(org.apereo.portal.EntityIdentifier)

Aggregations

IEntityCache (org.apereo.portal.concurrency.IEntityCache)2 EntityIdentifier (org.apereo.portal.EntityIdentifier)1