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);
}
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);
}
Aggregations