@Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); } }
@Override public void renameItem(final FolderItem folderItem, final String newName, final String comment) { final Collection<Path> paths = resolvePath(folderItem); renameService.renameIfExists(paths, newName, comment); }
public List<FolderItemOperation> getRestrictedOperations(final Path path) { final List<FolderItemOperation> restrictedOperations = new ArrayList<FolderItemOperation>(); if (copyService.hasRestriction(path)) { restrictedOperations.add(FolderItemOperation.COPY); } if (renameService.hasRestriction(path)) { restrictedOperations.add(FolderItemOperation.RENAME); } if (deleteService.hasRestriction(path)) { restrictedOperations.add(FolderItemOperation.DELETE); } return restrictedOperations; } }
private void mockRenameRestrictions(boolean hasRestrictions) { when(renameService.hasRestriction(any(Path.class))).thenReturn(hasRestrictions); }
@Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); }
@Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); }
@Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); }
@Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); }
@Override public Path rename( Path path, String newName, String comment ) { return renameService.rename( path, newName, comment ); }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename( final Path path, final String newName, final String comment ) { try { return renameService.rename( path, newName, comment ); } catch ( Exception e ) { throw ExceptionUtilities.handleException( e ); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename(final Path path, final String newName, final String comment) { try { return renameService.rename(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path rename( final Path path, final String newName, final String comment ) { try { return renameService.rename( path, newName, comment ); } catch ( Exception e ) { throw ExceptionUtilities.handleException( e ); } }