Package org.jets3t.service.acl

Examples of org.jets3t.service.acl.GroupGrantee


                if ("AmazonCustomerByEmail".equals(attrs.getValue("xsi:type"))) {
                    currentGrantee = new EmailAddressGrantee();
                } else if ("CanonicalUser".equals(attrs.getValue("xsi:type"))) {
                    currentGrantee = new CanonicalGrantee();
                } else if ("Group".equals(attrs.getValue("xsi:type"))) {
                    currentGrantee = new GroupGrantee();
                }
            }
        }
View Full Code Here


                @Override
                public Component getTableCellRendererComponent(JTable arg0, Object value, boolean arg2, boolean arg3, int arg4, int arg5) {
                    if (value == null) {
                        return null;
                    }
                    GroupGrantee groupGrantee = (GroupGrantee) value;
                    return super.getTableCellRendererComponent(arg0, groupGrantee.getIdentifier(), arg2, arg3, arg4, arg5);
                }
            });
            DefaultCellEditor permissionCellEditor = new DefaultCellEditor(permissionComboBox);
            permissionCellEditor.setClickCountToStart(2);
            setDefaultEditor(Permission.class, permissionCellEditor);
View Full Code Here

                currentGrantee.setIdentifier(elementText);
            } else if (name.equals("EmailAddress")) {
                currentGrantee = new EmailAddressGrantee();
                currentGrantee.setIdentifier(elementText);
            } else if (name.equals("URI")) {
                currentGrantee = new GroupGrantee();
                currentGrantee.setIdentifier(elementText);
            } else if (name.equals("DisplayName")) {
                ((CanonicalGrantee) currentGrantee).setDisplayName(elementText);
            } else if (name.equals("Permission")) {
                currentPermission = Permission.parsePermission(elementText);
View Full Code Here

            currentGrantee.setIdentifier(elementText);
        } else if (name.equals("EmailAddress")) {
            currentGrantee = new EmailAddressGrantee();
            currentGrantee.setIdentifier(elementText);
        } else if (name.equals("URI")) {
            currentGrantee = new GroupGrantee();
            currentGrantee.setIdentifier(elementText);
        } else if (name.equals("DisplayName")) {
            // In some cases we may get a DisplayName field for non-canonical grantees.
            if (currentGrantee instanceof CanonicalGrantee) {
                ((CanonicalGrantee) currentGrantee).setDisplayName(elementText);
View Full Code Here

TOP

Related Classes of org.jets3t.service.acl.GroupGrantee

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.