Package org.jdesktop.wonderland.server

Examples of org.jdesktop.wonderland.server.UserMO


    }

    public void clientDisconnected(WonderlandClientSender sender,
                                   WonderlandClientID clientID)
    {
        UserMO user = WonderlandContext.getUserManager().getUser(clientID);
        AvatarCellMO avatar = user.getAvatar(clientID, viewID);
        if (avatar == null) {
            logger.severe("clientDetached has null avatar for session");
            return;
        }
       
View Full Code Here


    }
   
    private ViewCreateResponseMessage createAvatar(WonderlandClientSender sender,
                                                     WonderlandClientID clientID,
                                                     CellHierarchyMessage msg) {
        UserMO user = WonderlandContext.getUserManager().getUser(clientID);
        AvatarCellMO avatar = user.getAvatar(clientID, msg.getViewID());
        if (avatar == null) {
            user.getReference().getForUpdate(); // Mark for update
            avatar = new AvatarCellMO(user, clientID);
            viewID = msg.getViewID();
            user.putAvatar(clientID, viewID, avatar);
        }
       
        // Set the properties for this connection in the cell cache
        avatar.getCellCache().setConnectionProperties(connectionProperties);
       
View Full Code Here

        } catch (NoSuchAlgorithmException nsae) {
            throw new IllegalStateException(nsae);
        }

        // add a listener that will remove the key when this client logs out
        UserMO user = UserManager.getUserManager().getUser(clientID);
        user.addUserListener(new RemoveSecretListener(clientID));
        return out;
    }
View Full Code Here

            logger.warning("Unable to find client ID for " + clientID);
            return null;
        }

        // now get a user
        UserMO user = UserManager.getUserManager().getUser(checkID);
        if (user == null) {
            logger.warning("Unable to find user for " + checkID.getID());
            return null;
        }

        return user.getIdentity();
    }
View Full Code Here

        }

        // 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());
                }
            }
        }
        // send an OK back to the sender
View Full Code Here

     */
    private void scheduleClientDisconnect(ClientHandlerRef handlerRef,
                                          WonderlandClientSender sender)
    {
        // get the list of logout tasks for this user
        UserMO user = UserManager.getUserManager().getUser(getWonderlandClientID());
        Queue<Task> tasks = user.getLogoutTasks(getWonderlandClientID());

        // add a new task to notify the handler of the disconnect
        tasks.add(new NotifyDisconnectTask(getWonderlandClientID(),
                                           handlerRef, sender));
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.server.UserMO

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.