fr.paris.lutece.plugins.updater.service.resource
Class DirectoryTreeResource

java.lang.Object
  extended by fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
      extended by fr.paris.lutece.plugins.updater.service.resource.DirectoryTreeResource

public class DirectoryTreeResource
extends FileSystemResource

Resource of type Directory Tree


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
DELETE_NOW, DELETE_ON_EXIT
 
Constructor Summary
DirectoryTreeResource(java.lang.String strRootPath, java.lang.String strDirectoryPath)
          Constructor
 
Method Summary
 void copy(java.lang.String strDestination)
          Move file system resources
 void delete(int nMode)
          Delete file system resources
 
Methods inherited from class fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
getFullPath, getRelativePath, getRootPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryTreeResource

public DirectoryTreeResource(java.lang.String strRootPath,
                             java.lang.String strDirectoryPath)
Constructor

Parameters:
strRootPath - The root path
strDirectoryPath - The relative path of the resource
Method Detail

copy

public void copy(java.lang.String strDestination)
          throws java.io.IOException
Move file system resources

Specified by:
copy in class FileSystemResource
Parameters:
strDestination - The new location
Throws:
java.io.IOException - If an error occurs

delete

public void delete(int nMode)
            throws java.io.IOException
Delete file system resources

Specified by:
delete in class FileSystemResource
Parameters:
nMode - The mode of deletion
Throws:
java.io.IOException - If an error occurs


Copyright © 2009 Mairie de Paris. All Rights Reserved.