@Override protected EntityCachingService createSingleton(Object... args) { return new EntityCachingService(); } };
/** * Removes the <code>IBasicEntity</code> from the cache and notifies peer caches. * * @param ent org.apereo.portal.IBasicEntity * @exception org.apereo.portal.concurrency.CachingException */ public void remove(IBasicEntity ent) throws CachingException { this.remove(ent.getEntityIdentifier()); }
/** * Receives notice that the UserInstance has been unbound from the HttpSession. In response, we * remove the corresponding group member from the cache. We use the roundabout route of creating * a group member and then getting its EntityIdentifier because we need the EntityIdentifier for * the group member, which is cached, not the EntityIdentifier for the IPerson, which is not. * * @param person org.apereo.portal.security.IPerson */ private void ifinishedSession(IPerson person) throws GroupsException { IGroupMember gm = getGroupMember(person.getEntityIdentifier()); try { final EntityIdentifier entityIdentifier = gm.getEntityIdentifier(); EntityCachingService.getEntityCachingService() .remove(entityIdentifier.getType(), entityIdentifier.getKey()); } catch (CachingException ce) { throw new GroupsException( "Problem removing group member " + gm.getKey() + " from cache", ce); } }
/** * Removes the <code>IBasicEntity</code> from the cache and notifies peer caches. * * @param ent org.apereo.portal.IBasicEntity * @exception org.apereo.portal.concurrency.CachingException */ public void remove(IBasicEntity ent) throws CachingException { this.remove(ent.getEntityIdentifier()); }
/** * Receives notice that the UserInstance has been unbound from the HttpSession. In response, we * remove the corresponding group member from the cache. We use the roundabout route of creating * a group member and then getting its EntityIdentifier because we need the EntityIdentifier for * the group member, which is cached, not the EntityIdentifier for the IPerson, which is not. * * @param person org.apereo.portal.security.IPerson */ private void ifinishedSession(IPerson person) throws GroupsException { IGroupMember gm = getGroupMember(person.getEntityIdentifier()); try { final EntityIdentifier entityIdentifier = gm.getEntityIdentifier(); EntityCachingService.getEntityCachingService() .remove(entityIdentifier.getType(), entityIdentifier.getKey()); } catch (CachingException ce) { throw new GroupsException( "Problem removing group member " + gm.getKey() + " from cache", ce); } }
/** * Removes the entity referred to by entityID from the cache and notifies peer caches. * * @param entityID * @exception org.apereo.portal.concurrency.CachingException */ public void remove(EntityIdentifier entityID) throws CachingException { this.remove(entityID.getType(), entityID.getKey()); }
@Override protected EntityCachingService createSingleton(Object... args) { return new EntityCachingService(); } };
/** * Removes the entity referred to by entityID from the cache and notifies peer caches. * * @param entityID * @exception org.apereo.portal.concurrency.CachingException */ public void remove(EntityIdentifier entityID) throws CachingException { this.remove(entityID.getType(), entityID.getKey()); }