- Timestamp:
- 04/18/12 15:27:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/service/implementation/com/ether/EtherServiceImpl.java
r476 r482 25 25 import org.springframework.transaction.annotation.Transactional; 26 26 27 import java.io.File;28 27 import java.util.ArrayList; 29 28 import java.util.Date; … … 550 549 } 551 550 552 /**553 * This method moves all dataset's files from download directory to upload directory554 *555 * @param jeu556 * @param downloadDirectory557 * @param uploadDirectory558 */559 public boolean moveFilesFromDownloadToUpload( @NotNull final Jeu jeu, @NotNull final String downloadDirectory, @NotNull final String uploadDirectory )560 throws ServiceException561 {562 if( null == jeu.getCategorie() || null == jeu.getCategorie().getCategorieNom() )563 throw new ServiceException( ServiceException.ServiceCode.JEU_NOT_CORRECT, "ERROR to move jeu to download directory to upload directory" + jeu );564 565 final String downloadFilesPath = downloadDirectory + File.separatorChar + jeu.getCategorie().getCategorieNom() + File.separatorChar + jeu.getJeuNom();566 final String uploadFilesPath = uploadDirectory + File.separatorChar + jeu.getCategorie().getCategorieNom() + File.separatorChar + jeu.getJeuNom();567 568 return EtherHelper.moveFiles( downloadFilesPath, uploadFilesPath );569 }570 571 551 @Required 572 552 public void setPlateformDAO( final PlateformDAO plateformDAO )
Note: See TracChangeset
for help on using the changeset viewer.