Package org.jdesktop.wonderland.modules.securitygroups.common

Examples of org.jdesktop.wonderland.modules.securitygroups.common.InvalidateGroupMessage


                                Message message)
    {
        logger.warning("Security cache message " + message + " received from " +
                       " sender " + clientID);

        InvalidateGroupMessage igm = (InvalidateGroupMessage) message;

        // invalidate all users identified in the message
        WebServiceUserPrincipalResolver resolver = (WebServiceUserPrincipalResolver)
                UserPrincipals.getUserPrincipalResolver();
        for (String username : igm.getUsernames()) {
            resolver.invalidate(username);
        }

        // invalidate the cell cache for each user in the message
        UniverseManager um = AppContext.getManager(UniverseManager.class);
        for (String username : igm.getUsernames()) {
            UserMO user = UserManager.getUserMO(username);
            if (user != null) {
                for (ManagedReference<AvatarCellMO> avatars : user.getAllAvatars()) {
                    um.viewRevalidate(avatars.get());
                }
View Full Code Here


    public void handleMessage(Message message) {
        // ignore -- the connection doesn't send messages
    }

    public void invalidateGroup(String groupName, Set<String> userNames) {
        send(new InvalidateGroupMessage(groupName, userNames));
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.securitygroups.common.InvalidateGroupMessage

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.