if (log.isDebugEnabled())
{
log.debug("Performing action");
}
DomainGroupCacheUpdaterRequest request = (DomainGroupCacheUpdaterRequest) inActionContext.getParams();
Long domainGroupId = request.getDomainGroupId();
log.info("Loading domain group by id #" + domainGroupId);
DomainGroup domainGroup = domainGroupMapper.findById(domainGroupId);
log.info("Updating the cached list of coordinators for group #" + domainGroupId + " from the database");
List<Long> peopleIds = groupCoordinatorCacheManager.execute(domainGroup);
// if this is a private group, this change will affect the coordinators'
// and followers' activity search
if (!domainGroup.isPublicGroup())
{
if (request.getIsUpdate())
{
log.info("Looping across the coordinators to update"
+ " their private group access list to include the group #" + domainGroupId);
for (Long coordinatorPersonId : peopleIds)
{