Package org.jdesktop.wonderland.client.login

Examples of org.jdesktop.wonderland.client.login.ServerSessionManager


   
    private CellTransform generateGoToPosition(CellID cellID) {

        CellTransform viewTransform = model.getCellTransformForCellID(cellID);
       
        ServerSessionManager manager = LoginManager.getPrimary();
        BoundingVolume boundsHint = new BoundingSphere(1.0f, Vector3f.ZERO);
            CellTransform generated = CellPlacementUtils.getCellTransform(manager, boundsHint,
                    viewTransform);
        LOGGER.fine("ORIGINAL:\n" + logTransform(viewTransform) + "\n"
                + "GENERATED:\n" + logTransform(generated));
View Full Code Here


        // if the username is not null, set up authentication
        if (username != null && username.length() > 0 &&
                password != null && password.length() > 0)
        {
            ServerSessionManager ssm = LoginManager.getSessionManager(serverUrl.toString());
            ServerDetails details = ssm.getDetails();

            AuthenticationInfo info = details.getAuthInfo().clone();

            // if the type is EITHER, we choose to login with authentication,
            // since guest logins won't be allowed without authentication
View Full Code Here

    }
   
    public static void submit(ErrorReport report)
            throws ContentRepositoryException, JAXBException
    {
        ServerSessionManager ssm = LoginManager.getPrimary();   
        ContentCollection dir = getContentDir();
       
        ContentResource file;
        if (report.getId() == null) {
            // create a new file
            String fileName;       
            int index = 0;
            DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
            do {
                fileName = ssm.getUsername() + "-" + df.format(new Date());
                fileName += (index == 0)?"":index;
           
                index++;
            } while (dir.getChild(fileName) != null);
       
View Full Code Here

   
        file.put(baos.toByteArray());
    }
   
    private static ContentCollection getContentDir() throws ContentRepositoryException {
        ServerSessionManager ssm = LoginManager.getPrimary();
        ContentRepository repo = ContentRepositoryRegistry.getInstance().getRepository(ssm);
   
        ContentCollection dir = (ContentCollection)
                repo.getRoot().getChild("groups/users/" + ErrorReport.DIR_NAME);
        if (dir == null) {
View Full Code Here

                // No 2D Renderer yet
                break;
            case RENDERER_JME :
                if (ViewManager.getViewManager().useAvatars) {
                    try {
                        ServerSessionManager session = getCellCache().getSession().getSessionManager();
                        ret = ClientContextJME.getAvatarRenderManager().createRenderer(session, this);
                    } catch (RendererUnavailable ex) {
                        Logger.getLogger(AvatarCell.class.getName()).log(Level.SEVERE, null, ex);
                        ret = new AvatarJME(this);
                    }
View Full Code Here

                    text = MessageFormat.format(text, treatments);
        statusLabel.setText(text);
        break
    }

          ServerSessionManager serverSessionManager = LoginManager.getPrimary();

    contentRepositoryRadioButton.doClick();

    compState.setTreatmentType(TreatmentType.CONTENT_REPOSITORY);

    int ix = treatments.lastIndexOf(File.separator);

    if (ix >= 0) {
        treatments = treatments.substring(ix + 1);
    }

    String contentRepositoryTreatment =
        "wlcontent://users/" + serverSessionManager.getUsername() + "/audio/" + treatments;

          compState.setTreatments(new String[] { contentRepositoryTreatment });
    treatmentTextField.setText(contentRepositoryTreatment);
          lastContentRepositoryTreatment = treatmentTextField.getText();
          break;
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.login.ServerSessionManager

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.