@Test public void testNoSymbolicLink() throws Exception { UploadSymlinkResolver resolver = new UploadSymlinkResolver(null, Collections.<TransferItem>emptyList()); assertFalse(resolver.resolve(new NullLocal("a"))); }
@Override public boolean resolve(final Local file) throws NotfoundException, LocalAccessDeniedException { if(PreferencesFactory.get().getBoolean("local.symboliclink.resolve")) { return false; } if(feature != null) { final Local target = file.getSymlinkTarget(); for(TransferItem root : files) { if(this.findTarget(target, root.local)) { if(log.isDebugEnabled()) { log.debug(String.format("Resolved target %s for %s", target, file)); } return true; } } } return false; }
UploadSymlinkResolver extends AbstractSymlinkResolver<Local> { @Override public boolean resolve(final Local file) throws NotfoundException, LocalAccessDeniedException { if(PreferencesFactory.get().getBoolean("local.symboliclink.resolve")) { return false; } if(feature != null) { final Local target = file.getSymlinkTarget(); for(TransferItem root : files) { if(this.findTarget(target, root.local)) { if(log.isDebugEnabled()) { log.debug(String.format("Resolved target %s for %s", target, file)); } return true; } } } return false; } }
UploadSymlinkResolver extends AbstractSymlinkResolver<Local> { @Override public boolean resolve(final Local file) throws NotfoundException, LocalAccessDeniedException { if(PreferencesFactory.get().getBoolean("local.symboliclink.resolve")) { return false; } if(feature != null) { final Local target = file.getSymlinkTarget(); for(TransferItem root : files) { if(this.findTarget(target, root.local)) { if(log.isDebugEnabled()) { log.debug(String.format("Resolved target %s for %s", target, file)); } return true; } } } return false; } UploadSymlinkResolver(final Symlink feature, final List<TransferItem> files); }
UploadSymlinkResolver extends AbstractSymlinkResolver<Local> { @Override public boolean resolve(final Local file) throws NotfoundException, LocalAccessDeniedException { if(PreferencesFactory.get().getBoolean("local.symboliclink.resolve")) { return false; } if(feature != null) { final Local target = file.getSymlinkTarget(); for(TransferItem root : files) { if(this.findTarget(target, root.local)) { if(log.isDebugEnabled()) { log.debug(String.format("Resolved target %s for %s", target, file)); } return true; } } } return false; } UploadSymlinkResolver(final Symlink feature, final List<TransferItem> files); @Override boolean resolve(final Local file); }
UploadSymlinkResolver extends AbstractSymlinkResolver<Local> { @Override public boolean resolve(final Local file) throws NotfoundException, LocalAccessDeniedException { if(PreferencesFactory.get().getBoolean("local.symboliclink.resolve")) { return false; } if(feature != null) { final Local target = file.getSymlinkTarget(); for(TransferItem root : files) { if(this.findTarget(target, root.local)) { if(log.isDebugEnabled()) { log.debug(String.format("Resolved target %s for %s", target, file)); } return true; } } } return false; } UploadSymlinkResolver(final Symlink feature, final List<TransferItem> files); @Override boolean resolve(final Local file);  }