public AdHocGroupTester(IPersonAttributesGroupTestDefinition definition) { assert (definition.getAttributeName().equals(MEMBER_OF) || definition.getAttributeName().equals(NOT_MEMBER_OF)); this.isNotTest = definition.getAttributeName().equals(NOT_MEMBER_OF); this.groupName = definition.getTestValue(); this.groupHash = calcGroupHash(groupName, isNotTest); ApplicationContext context = ApplicationContextLocator.getApplicationContext(); CacheManager cacheManager = context.getBean("cacheManager", CacheManager.class); this.currentTests = cacheManager.getCache("org.apereo.portal.groups.pags.testers.AdHocGroupTester"); }
person.getEntityIdentifier().getKey() + groupHash + Thread.currentThread().getId(); logger.debug("Entering test() for {}", personHash); IEntityGroup entityGroup = findGroupByName(groupName); if (entityGroup == null) { logger.error( return false; IGroupMember gmPerson = findPersonAsGroupMember(person); if (currentTests.getQuiet(personHash) != null) { logger.debug(
person.getEntityIdentifier().getKey() + groupHash + Thread.currentThread().getId(); logger.debug("Entering test() for {}", personHash); IEntityGroup entityGroup = findGroupByName(groupName); if (entityGroup == null) { logger.error( return false; IGroupMember gmPerson = findPersonAsGroupMember(person); if (currentTests.getQuiet(personHash) != null) { logger.debug(
public AdHocGroupTester(IPersonAttributesGroupTestDefinition definition) { assert (definition.getAttributeName().equals(MEMBER_OF) || definition.getAttributeName().equals(NOT_MEMBER_OF)); this.isNotTest = definition.getAttributeName().equals(NOT_MEMBER_OF); this.groupName = definition.getTestValue(); this.groupHash = calcGroupHash(groupName, isNotTest); ApplicationContext context = ApplicationContextLocator.getApplicationContext(); CacheManager cacheManager = context.getBean("cacheManager", CacheManager.class); this.currentTests = cacheManager.getCache("org.apereo.portal.groups.pags.testers.AdHocGroupTester"); }