Package org.jdesktop.wonderland.server.security

Examples of org.jdesktop.wonderland.server.security.ActionMap


                // get the resource we are referring to
                Resource resource = m.getResource();

                // get the object that will hold the result of scheduled
                // requests
                ActionMap out = grant.get(resource.getId());
                if (out == null) {
                    out = new ActionMap(resource);
                    grant.put(resource.getId(), out);
                }

                // now make the requests
                for (Action a : m.values()) {
                    if (resource.request(identity.getIdentity(), a, registry)) {
                        out.put(a.getName(), a);
                    }
                }
            }
            try {
                // response now has the proper set of permissions, so create
View Full Code Here


        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 });
            ResourceMap request = new ResourceMap();
            request.put(resource.getId(), am);

            // perform the security check
            security.doSecure(request, new CellEnteredTask(this, resource.getId(),
View Full Code Here

            this.resourceID = resourceID;
            this.callId = callId;
        }

        public void run(ResourceMap granted) {
            ActionMap am = granted.get(resourceID);
            if (am != null && !am.isEmpty()) {
                // request was granted -- the user has permission to
                // enter the COS
                listenerRef.get().cellEntered(callId);
            } else {
                logger.warning("Access denied to enter Cone of Silence");
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.server.security.ActionMap

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.