@Override public Path copy(final Path path, final String newName, final Path targetDirectory, final String comment) { return copyService.copy(path, newName, targetDirectory, comment); }
@Override public void copyItem(final FolderItem folderItem, final String newName, final Path targetDirectory, final String comment) { final List<Path> paths = resolvePath(folderItem); if (paths != null && paths.size() == 1) { copyService.copy(paths.get(0), newName, targetDirectory, comment); } else { // when copying packages copyService.copyIfExists(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 mockCopyRestrictions(boolean hasRestrictions) { when(copyService.hasRestriction(any(Path.class))).thenReturn(hasRestrictions); }
@Override public Path copy(final Path path, final String newName, final String comment) { return copyService.copy(path, newName, comment); }
@Override public Path copy(final Path path, final String newName, final Path targetDirectory, final String comment) { return copyService.copy(path, newName, targetDirectory, comment); }
@Override public Path copy(final Path path, final String newName, final String comment) { return copyService.copy(path, newName, comment); }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy( final Path path, final String newName, final String comment ) { try { return copyService.copy( path, newName, comment ); } catch ( Exception e ) { throw ExceptionUtilities.handleException( e ); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public void copy(Path path, String newFileName, String commitMessage, boolean saveBeforeCopying, FormModelerContent content, Metadata metadata) { if (saveBeforeCopying) { save(path, content, metadata, commitMessage); } copyService.copy(path, newFileName, commitMessage); }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy(final Path path, final String newName, final String comment) { try { return copyService.copy(path, newName, comment); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public Path copy( final Path path, final String newName, final String comment ) { try { return copyService.copy( path, newName, comment ); } catch ( Exception e ) { throw ExceptionUtilities.handleException( e ); } }