Package org.jdesktop.wonderland.common.security

Examples of org.jdesktop.wonderland.common.security.Action


        Map<Action, DefaultMutableTreeNode> actions =
                new HashMap<Action, DefaultMutableTreeNode>();
        while (!aps.isEmpty()) {
            for (Iterator<ActionDTO> i = aps.iterator(); i.hasNext();) {
                ActionDTO actionDTO = i.next();
                Action action = actionDTO.getAction();
                DefaultMutableTreeNode node = null;

                if (action.getParent() == null) {
                    // top level action
                    node = new DefaultMutableTreeNode(new ActionHolder(action));
                    edit.add(node);
                } else if (actions.containsKey(action.getParent())) {
                    // we found the parent of this action -- add it to
                    // the tree
                    node = new DefaultMutableTreeNode(new ActionHolder(action));
                    actions.get(action.getParent()).add(node);
                }

                if (node != null) {
                    i.remove();
                    actions.put(action, node);
View Full Code Here


        // get the security manager
        SecurityManager security = AppContext.getManager(SecurityManager.class);
        CellResourceManager crm = AppContext.getManager(CellResourceManager.class);

        // create a request
        Action viewAction = new ViewAction();
        Resource resource = crm.getCellResource(this.cellID);
        if (resource != null) {
            // there is security on this cell perform the enter notification
            // securely
            ActionMap am = new ActionMap(resource, new Action[] { viewAction });
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.security.Action

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.