@SuppressWarnings("unchecked") @Test public void testExecute() { Set<Long> origRootOrgCoordList = (Set<Long>) getCache().get( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + ROOT_ORG_COORD_1); assertNull(origRootOrgCoordList); sut.execute(GROUP_ID); Set<Long> updatedRootOrgCoordList = (Set<Long>) getCache().get( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + ROOT_ORG_COORD_1); assertNotNull(updatedRootOrgCoordList); assertEquals(1, updatedRootOrgCoordList.size()); assertTrue(updatedRootOrgCoordList.contains(GROUP_ID)); }
public void execute(final Long inPrivateDomainGroupId) { Set<Long> userIds = personIdsWithGroupCoordAccessMapper.execute(inPrivateDomainGroupId); for (Long currentUserId : userIds) { getCache().addToSet( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + currentUserId, inPrivateDomainGroupId); } }
AddPrivateGroupIdToCachedCoordinatorAccessList extends CachedDomainMapper { public void execute(final Long inPrivateDomainGroupId) { Set<Long> userIds = personIdsWithGroupCoordAccessMapper.execute(inPrivateDomainGroupId); for (Long currentUserId : userIds) { getCache().addToSet( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + currentUserId, inPrivateDomainGroupId); } } }
AddPrivateGroupIdToCachedCoordinatorAccessList extends CachedDomainMapper { public void execute(final Long inPrivateDomainGroupId) { Set<Long> userIds = personIdsWithGroupCoordAccessMapper.execute(inPrivateDomainGroupId); for (Long currentUserId : userIds) { getCache().addToSet( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + currentUserId, inPrivateDomainGroupId); } } AddPrivateGroupIdToCachedCoordinatorAccessList(
            final GetAllPersonIdsWhoHaveGroupCoordinatorAccess inPersonIdsWithGroupCoordAccessMapper); }
AddPrivateGroupIdToCachedCoordinatorAccessList extends CachedDomainMapper { public void execute(final Long inPrivateDomainGroupId) { Set<Long> userIds = personIdsWithGroupCoordAccessMapper.execute(inPrivateDomainGroupId); for (Long currentUserId : userIds) { getCache().addToSet( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + currentUserId, inPrivateDomainGroupId); } } AddPrivateGroupIdToCachedCoordinatorAccessList(
            final GetAllPersonIdsWhoHaveGroupCoordinatorAccess inPersonIdsWithGroupCoordAccessMapper); void execute(final Long inPrivateDomainGroupId); }
AddPrivateGroupIdToCachedCoordinatorAccessList extends CachedDomainMapper { public void execute(final Long inPrivateDomainGroupId) { Set<Long> userIds = personIdsWithGroupCoordAccessMapper.execute(inPrivateDomainGroupId); for (Long currentUserId : userIds) { getCache().addToSet( CacheKeys.PRIVATE_GROUP_IDS_VIEWABLE_BY_PERSON_AS_COORDINATOR + currentUserId, inPrivateDomainGroupId); } } AddPrivateGroupIdToCachedCoordinatorAccessList(
            final GetAllPersonIdsWhoHaveGroupCoordinatorAccess inPersonIdsWithGroupCoordAccessMapper); void execute(final Long inPrivateDomainGroupId);  }