Examples of doSecure()


Examples of org.jdesktop.wonderland.server.security.SecurityManager.doSecure()

       
        public void run() throws Exception {
            task.setCells(cells);
           
            SecurityManager security = AppContext.getManager(SecurityManager.class);
            security.doSecure(rm, task);
        }
    }
   
    private static final class LoadCellsTask implements CellResourceTask, Serializable {
        private final ManagedReference<ViewCellCacheMO> viewCellCacheRef;
View Full Code Here

Examples of org.jdesktop.wonderland.server.security.SecurityManager.doSecure()

            rm.put(ownerRsrc.getId(), am);

            SecurityManager sec = AppContext.getManager(SecurityManager.class);
            SecureTask sst = new SetStateTask(id.getUsername(), ownerRsrc.getId(),
                                              this, scss.getPermissions());
            sec.doSecure(rm, sst);
        } else {
            // no security check, just set the values
            setCellPermissions(scss.getPermissions());
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.server.security.SecurityManager.doSecure()

        // construct a new task to send the message
        SecurityManager sm = AppContext.getManager(SecurityManager.class);
        SecureTask sendTask = new SendPermissionsTask(rsrc.getId(), sender,
                                                      clientID, messageID);
        sm.doSecure(rm, sendTask);
    }

    /**
     * Resource to check if the current user is the cell owner
     */
 
View Full Code Here

Examples of org.jdesktop.wonderland.server.security.SecurityManager.doSecure()

        ActionMap am = new ActionMap(resource, actions.toArray(new Action[0]));
        ResourceMap request = new ResourceMap();
        request.put(resource.getId(), am);

        // perform the security check
        security.doSecure(request, new ReceiveSecureTask(resource.getId(),
                                                         clientID, actions,
                                                         message,
                                                         getBindingName()));
    }
View Full Code Here

Examples of org.jdesktop.wonderland.server.security.SecurityManager.doSecure()

        ActionMap am = new ActionMap(resource, ConnectAction.getInstance());
        ResourceMap request = new ResourceMap();
        request.put(resource.getId(), am);

        // perform the security check
        security.doSecure(request, new AttachSecureTask(resource.getId(),
                                                        messageID, type,
                                                        properties, ref,
                                                        getBindingName()));
    }
View Full Code Here

Examples of org.jdesktop.wonderland.server.security.SecurityManager.doSecure()

            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(),
                              callId));
        } else {
            // no security, just make the call directly
            cellEntered(callId);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.