Package org.jdesktop.wonderland.modules.security.server.service

Examples of org.jdesktop.wonderland.modules.security.server.service.CellResourceManagerInternal


            if (parent != null) {
                parentCellID = parent.getCellID();
            }

            // make sure this cell's parent is up-to-date
            CellResourceManagerInternal crmi =
                    AppContext.getManager(CellResourceManagerInternal.class);
            crmi.updateCellResource(cell.getCellID(), parentCellID);
        }
View Full Code Here


        public void componentChanged(CellMO cell, ChangeType type,
                                     CellComponentMO component)
        {
            // make sure this cell's actions are up-to-date
            CellResourceManagerInternal crmi =
                    AppContext.getManager(CellResourceManagerInternal.class);
            switch (type) {
                case ADDED:
                    crmi.updateCellResource(cell.getCellID(), component, true);
                    break;
                case REMOVED:
                    crmi.updateCellResource(cell.getCellID(), component, false);
                    break;
            }
        }
View Full Code Here

            }
        }

        public void cellRemoved(CellMO cell) {
            // make sure this cell is removed from the service cache
            CellResourceManagerInternal crmi =
                    AppContext.getManager(CellResourceManagerInternal.class);
            crmi.invalidateCellResource(cell.getCellID());
        }
View Full Code Here

        if (permissions != null) {
            out.getPermissions().addAll(permissions);
        }

        // add all the actions
        CellResourceManagerInternal crmi =
                AppContext.getManager(CellResourceManagerInternal.class);
        for (Action a : crmi.getActions(cellID)) {
            out.getAllActions().add(new ActionDTO(a));
        }

        logger.fine("[SecurityComponentMO] writing " +
                    out.getPermissions().size() + " permissions.");
View Full Code Here

        // by principal
        permissions = new TreeSet<Permission>();
        permissions.addAll(perms.getPermissions());

        // update the service cache
        CellResourceManagerInternal crmi =
                AppContext.getManager(CellResourceManagerInternal.class);
        crmi.updateCellResource(cellID, owners, permissions);

        // update the cell cache as well
        UniverseManager um = AppContext.getManager(UniverseManager.class);
        um.revalidateCell(cellRef.get());
View Full Code Here

        logger.warning("[SecurityComponentMO] send user permissions for " +
                       requestCellID + " to " + clientID);

        // get the resource for this cell
        CellResourceManagerInternal crmi =
                AppContext.getManager(CellResourceManagerInternal.class);
        Resource rsrc = crmi.getCellResource(requestCellID);
        if (rsrc == null) {
            // no resource -- send permission for everything
            Set<ActionDTO> send = new LinkedHashSet<ActionDTO>();
            for (Action action : crmi.getActions(requestCellID)) {
                send.add(new ActionDTO(action));
            }
            sender.send(clientID, new PermissionsResponseMessage(messageID, send));
            return;
        }

        // construct a request for this user's permissions
        ResourceMap rm = new ResourceMap();
        Action[] actions = crmi.getActions(requestCellID).toArray(new Action[0]);
        ActionMap am = new ActionMap(rsrc, actions);
        rm.put(rsrc.getId(), am);

        // construct a new task to send the message
        SecurityManager sm = AppContext.getManager(SecurityManager.class);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.security.server.service.CellResourceManagerInternal

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.