Package org.jdesktop.wonderland.modules.security.client

Examples of org.jdesktop.wonderland.modules.security.client.SecurityComponent


                BUNDLE.getString("Edit..."), new EditContextListener());

        // if there is security on this cell, do some calculation to
        // figure out if the user has access to this cell
        Cell cell = event.getPrimaryCell();
        final SecurityComponent sc = cell.getComponent(SecurityComponent.class);
        if (sc != null) {
            // see if the permissions are available immediately
            if (sc.hasPermissions()) {
                editItem.setEnabled(canMove(sc));
            } else {
                Thread t = new Thread(new Runnable() {
                    public void run() {
                        editItem.setLabel(BUNDLE.getString("Edit..."));
View Full Code Here


                BUNDLE.getString("Duplicate"), null, new DuplicateListener());

        // find the security component for both this cell and it's parent,
        // if any
        final Cell cell = event.getPrimaryCell();
        final SecurityComponent sc = cell.getComponent(SecurityComponent.class);
        final SecurityComponent psc;
        if (cell.getParent() != null) {
            psc = cell.getParent().getComponent(SecurityComponent.class);
        } else {
            psc = null;
        }

        // see if we can check security locally, or if we have to make a
        // remote request
        if ((sc == null || sc.hasPermissions()) &&
                (psc == null || psc.hasPermissions())) {
            duplicateItem.setEnabled(canDuplicate(psc));
            deleteItem.setEnabled(canDelete(sc, psc));
        } else {
            Thread t = new Thread(new Runnable() {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.security.client.SecurityComponent

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.