| | |
| | | this.overwrite = overwrite; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public FileOperation copyForChild(File child) { |
| | | return new CopyOperation(child, destination, overwrite); |
| | |
| | | return this.destination; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void apply() throws ApplicationException { |
| | | File objectFile = getObjectFile(); |
| | |
| | | this.deletionPolicy = deletionPolicy; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public FileOperation copyForChild(File child) { |
| | | return new DeleteOperation(child, deletionPolicy); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void apply() throws ApplicationException { |
| | | File file = getObjectFile(); |
| | |
| | | this.destination = new File(newParent, objectFile.getName()); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public FileOperation copyForChild(File child) { |
| | | return new MoveOperation(child, destination); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void apply() throws ApplicationException { |
| | | File objectFile = getObjectFile(); |