Package org.jahia.ajax.gwt.client.util.acleditor

Examples of org.jahia.ajax.gwt.client.util.acleditor.AclEditor


            add(new Label(Messages.get("org.jahia.engines.PortletsManager.wizard.modesperm.onlyViewMode", "The selected portlets contains only view mode.")));
        }
    }

    private void initModeMappingEditor(GWTJahiaNodeACL acl) {
        modeMappingEditor = new AclEditor(acl, getPortletWizardWindow().getParentNode().getAclContext(), Collections.singleton(JCRClientUtils.PORTLET_MODES_ROLES));
        modeMappingEditor.setAddUsersLabel(Messages.get("org.jahia.engines.PortletsManager.wizard.modes.adduser.label", "Add mode-user permission"));
        modeMappingEditor.setAddGroupsLabel(Messages.get("org.jahia.engines.PortletsManager.wizard.modes.addgroup.label", "Add mode-group permission"));
    }
View Full Code Here


            add(new Label(Messages.get("org.jahia.engines.PortletsManager.wizard.roles.any", "The selected portlets defines any roles.")));
        }
    }

    private void initAclEditor(GWTJahiaNodeACL acl) {
        aclEditor = new AclEditor(acl, getPortletWizardWindow().getParentNode().getAclContext(), Collections.singleton(JCRClientUtils.PORTLET_ROLES));
        aclEditor.setAddUsersLabel(Messages.get("org.jahia.engines.PortletsManager.wizard.roles.adduser.label", "Add rode-user permission"));
        aclEditor.setAddGroupsLabel(Messages.get("org.jahia.engines.PortletsManager.wizard.roles.addgroup.label", "Add rode-group permission"));
    }
View Full Code Here

                node = engine.getNode();
            } else {
                node = engine.getTargetNode();
            }

            rolesEditor = new AclEditor(engine.getAcl(), node.getAclContext(), roleGroups);
            rolesEditor.setCanBreakInheritance(canBreakInheritance);
            if (!(node.getProviderKey().equals("default") || node.getProviderKey().equals("jahia"))) {
                rolesEditor.setReadOnly(true);
            } else {
                rolesEditor.setReadOnly(!PermissionsUtils.isPermitted("jcr:modifyAccessControl", node) || node.isLocked());
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.util.acleditor.AclEditor

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.