return GroupResourceUtil.canModify(groupId, groups, security);
}
private void sendInvalidateMessage(Set<MemberEntity> members) {
// get the connection from the servlet context
SecurityCacheConnection conn = (SecurityCacheConnection)
context.getAttribute(GroupContextListener.SECURITY_CACHE_CONN_ATTR);
if (conn == null) {
return;
}
// convert the members into a set of usernames
Set<String> usernames = new LinkedHashSet<String>(members.size());
for (MemberEntity member : members) {
usernames.add(member.getMemberId());
}
// send the message
conn.invalidateGroup(groupId, usernames);
}