@Override public void setPermission(final Path file, final Acl acl) throws BackgroundException { delegate.setPermission(cryptomator.encrypt(session, file), acl); }
@Override public void setPermission(final Path file, final Acl acl) throws BackgroundException { registry.find(session, file).getFeature(session, AclPermission.class, proxy).setPermission(file, acl); }
protected void write(final Session<?> session, final AclPermission feature, final Path file) throws BackgroundException { if(this.isCanceled()) { throw new ConnectionCanceledException(); } listener.message(MessageFormat.format(LocaleFactory.localizedString("Changing permission of {0} to {1}", "Status"), file.getName(), acl)); feature.setPermission(file, acl); if(file.isVolume()) { // No recursion when changing container ACL } else if(file.isDirectory()) { if(callback.recurse(file, acl)) { for(Path child : session.getFeature(ListService.class).list(file, new WorkerListProgressListener(this, listener))) { this.write(session, feature, child); } } } }
listener.message(MessageFormat.format(LocaleFactory.localizedString("Changing permission of {0} to {1}", "Status"), file.getName(), status.getAcl())); feature.setPermission(file, status.getAcl());
listener.message(MessageFormat.format(LocaleFactory.localizedString("Changing permission of {0} to {1}", "Status"), file.getName(), status.getAcl())); feature.setPermission(file, status.getAcl());