Package org.jdesktop.wonderland.modules.securitygroups.web

Examples of org.jdesktop.wonderland.modules.securitygroups.web.SecurityCacheConnection


        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);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.securitygroups.web.SecurityCacheConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.