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

Examples of org.jdesktop.wonderland.modules.security.server.SecurityComponentMO$SetStateTask


        // collect all the actions associated with this cell and its
        // components
        Set<Action> allActions = findActions(cell);

        // get the security compnent from the cell
        SecurityComponentMO sc = cell.getComponent(SecurityComponentMO.class);
        if (sc == null || !sc.isOwned()) {
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "No security component for cell " +
                           cellID);
            }

            // there is no security component for this cell.  Add a null
            // entry to the cache, so we won't try to look it up every
            // time
            rsrc = new NullResourceImpl(cellID, parentID, allActions);
            ctx.addResource(cellID, rsrc);
            return rsrc;
        }

        // create a new resource for this cell and add it to the cache
        rsrc = new CellResourceImpl(cellID.toString());
        rsrc.setOwners(sc.getOwners());
        rsrc.setPermissions(sc.getPermissions());
        rsrc.setParentID(parentID);
        rsrc.setActions(findActions(cell));
        ctx.addResource(cellID, rsrc);

        if (logger.isLoggable(Level.FINE)) {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.security.server.SecurityComponentMO$SetStateTask

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.