fr.paris.lutece.plugins.archive.util
Class ArchiveUtil

java.lang.Object
  extended by fr.paris.lutece.plugins.archive.util.ArchiveUtil

public final class ArchiveUtil
extends Object

Author:
merlinfe

Method Summary
static void deleteFile(ArchiveItem archiveItem)
          delete the file with the archiveItem parameter is provided
static void deleteFile(String filePath)
          delete the file with the path parameter is provided
static String getFilePath(ArchiveItem archiveItem)
          get the file path with the archiveItem parameter is provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteFile

public static void deleteFile(String filePath)
                       throws Exception
delete the file with the path parameter is provided

Parameters:
filePath - the file path
Throws:
Exception - Exception

getFilePath

public static String getFilePath(ArchiveItem archiveItem)
get the file path with the archiveItem parameter is provided

Parameters:
archiveItem - archiveItem
Returns:
the file path

deleteFile

public static void deleteFile(ArchiveItem archiveItem)
                       throws Exception
delete the file with the archiveItem parameter is provided

Parameters:
archiveItem - the archiveItem
Throws:
Exception - Exception


Copyright © 2014 Mairie de Paris. All Rights Reserved.