@Test public void testRoles() { final GoogleStorageAccessControlListFeature f = new GoogleStorageAccessControlListFeature(session); final List<Acl.User> users = f.getAvailableAclUsers(); assertTrue(users.contains(new Acl.CanonicalUser())); assertTrue(users.contains(new Acl.EmailUser())); assertTrue(users.contains(new Acl.EmailGroupUser(""))); assertTrue(users.contains(new Acl.DomainUser(""))); }
@Override public List<Acl.User> getAvailableAclUsers() { final List<Acl.User> users = new ArrayList<Acl.User>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.AUTHENTICATED, false), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false)) ); users.add(new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Account Email Address", "S3"); } }); users.add(new Acl.DomainUser(StringUtils.EMPTY) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Apps Domain", "S3"); } }); users.add(new Acl.EmailGroupUser(StringUtils.EMPTY, true) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Group Email Address", "S3"); } }); return users; }
GoogleStorageAccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { final List<Acl.User> users = new ArrayList<Acl.User>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.AUTHENTICATED, false), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false)) ); users.add(new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Account Email Address", "S3"); } }); users.add(new Acl.DomainUser(StringUtils.EMPTY) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Apps Domain", "S3"); } }); users.add(new Acl.EmailGroupUser(StringUtils.EMPTY, true) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Group Email Address", "S3"); } }); return users; } }
GoogleStorageAccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { final List<Acl.User> users = new ArrayList<Acl.User>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.AUTHENTICATED, false), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false)) ); users.add(new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Account Email Address", "S3"); } }); users.add(new Acl.DomainUser(StringUtils.EMPTY) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Apps Domain", "S3"); } }); users.add(new Acl.EmailGroupUser(StringUtils.EMPTY, true) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Group Email Address", "S3"); } }); return users; } GoogleStorageAccessControlListFeature(final GoogleStorageSession session); }
GoogleStorageAccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { final List<Acl.User> users = new ArrayList<Acl.User>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.AUTHENTICATED, false), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false)) ); users.add(new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Account Email Address", "S3"); } }); users.add(new Acl.DomainUser(StringUtils.EMPTY) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Apps Domain", "S3"); } }); users.add(new Acl.EmailGroupUser(StringUtils.EMPTY, true) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Group Email Address", "S3"); } }); return users; } GoogleStorageAccessControlListFeature(final GoogleStorageSession session); @Override Acl getPermission(final Path file); @Override void setPermission(final Path file, final Acl acl); @Override List<Acl.User> getAvailableAclUsers(); @Override List<Acl.Role> getAvailableAclRoles(final List<Path> files); }
GoogleStorageAccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { final List<Acl.User> users = new ArrayList<Acl.User>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.AUTHENTICATED, false), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false)) ); users.add(new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Account Email Address", "S3"); } }); users.add(new Acl.DomainUser(StringUtils.EMPTY) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Apps Domain", "S3"); } }); users.add(new Acl.EmailGroupUser(StringUtils.EMPTY, true) { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Google Group Email Address", "S3"); } }); return users; } GoogleStorageAccessControlListFeature(final GoogleStorageSession session); @Override Acl getPermission(final Path file); @Override void setPermission(final Path file, final Acl acl); @Override List<Acl.User> getAvailableAclUsers(); @Override List<Acl.Role> getAvailableAclRoles(final List<Path> files);  }