コード例 #1
0
  /* (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);
  }
コード例 #2
0
 /* (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);
 }
コード例 #3
0
 /* (non-Javadoc)
  * @see org.apereo.portal.concurrency.IEntityCachingService#get(java.lang.Class, java.lang.String)
  */
 public IBasicEntity get(Class<? extends IBasicEntity> entityType, String key)
     throws CachingException {
   final IEntityCache entityCache = this.getCache(entityType);
   return entityCache.get(key);
 }