Package org.jets3t.service.acl.gs

Examples of org.jets3t.service.acl.gs.UserByEmailAddressGrantee


        // for a fuller discussion of these settings.

        GSAccessControlList acl = new GSAccessControlList();

        // Grant access by email address. Note that this only works email address of GS members.
        acl.grantPermission(new UserByEmailAddressGrantee("someone@somewhere.com"),
            Permission.PERMISSION_FULL_CONTROL);

        // Grant Read access by Goodle ID.
        acl.grantPermission(new UserByIdGrantee("Google member's ID"),
            Permission.PERMISSION_READ);
View Full Code Here


       } else if (name.equals("Scope")) {
           scopeType = attrs.getValue("type");
           if (scopeType.equals("UserById")) {
               currentGrantee = new UserByIdGrantee();
           } else if (scopeType.equals("UserByEmail")) {
               currentGrantee = new UserByEmailAddressGrantee();
           } else if (scopeType.equals("GroupById")) {
               currentGrantee = new GroupByIdGrantee();
           } else if (scopeType.equals("GroupByEmail")) {
               currentGrantee = new GroupByEmailAddressGrantee();
           } else if (scopeType.equals("GroupByDomain")) {
View Full Code Here

TOP

Related Classes of org.jets3t.service.acl.gs.UserByEmailAddressGrantee

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.