@Test public void testRoles() { final S3AccessControlListFeature f = new S3AccessControlListFeature(session); assertTrue(f.getAvailableAclUsers().contains(new Acl.CanonicalUser())); assertTrue(f.getAvailableAclUsers().contains(new Acl.EmailUser())); }
@Override public List<Acl.User> getAvailableAclUsers() { return new ArrayList<>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false), new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Amazon Customer Email Address", "S3"); } }) ); }
S3AccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { return new ArrayList<>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false), new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Amazon Customer Email Address", "S3"); } }) ); } }
S3AccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { return new ArrayList<>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false), new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Amazon Customer Email Address", "S3"); } }) ); } S3AccessControlListFeature(final S3Session session); }
S3AccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { return new ArrayList<>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false), new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Amazon Customer Email Address", "S3"); } }) ); } S3AccessControlListFeature(final S3Session session); @Override Acl getPermission(final Path file); @Override void setPermission(final Path file, final Acl acl); @Override List<Acl.Role> getAvailableAclRoles(final List<Path> files); @Override List<Acl.User> getAvailableAclUsers(); }
S3AccessControlListFeature extends DefaultAclFeature implements AclPermission { @Override public List<Acl.User> getAvailableAclUsers() { return new ArrayList<>(Arrays.asList( new Acl.CanonicalUser(), new Acl.GroupUser(Acl.GroupUser.EVERYONE, false), new Acl.EmailUser() { @Override public String getPlaceholder() { return LocaleFactory.localizedString("Amazon Customer Email Address", "S3"); } }) ); } S3AccessControlListFeature(final S3Session session); @Override Acl getPermission(final Path file); @Override void setPermission(final Path file, final Acl acl); @Override List<Acl.Role> getAvailableAclRoles(final List<Path> files); @Override List<Acl.User> getAvailableAclUsers();  }