Package org.alfresco.repo.module.tool
Class InstalledFiles
- java.lang.Object
-
- org.alfresco.repo.module.tool.InstalledFiles
-
public class InstalledFiles extends Object
Details of the files installed during a module installation into a WAR- Author:
- Roy Wetherall
-
-
Constructor Summary
Constructors Constructor Description InstalledFiles(String warLocation, String moduleId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdd(String location)Add a file additionvoidaddMkdir(String location)Add a directoryvoidaddUpdate(String location, String backup)Add a file updateList<String>getAdds()Get all the added filesStringgetFileLocation()Returns the location of the modifications file based on the module idStringgetFilePathInWar()List<String>getMkdirs()Gets a list of the dirs added during installMap<String,String>getUpdates()Get all the updated files, key is the file that has been updated and the value is the location of the backup made before modification took place.voidload()Loads the exisiting information about the installed files from the WARvoidsave()Saves the current modification details into the WARStringtoString()
-
-
-
Method Detail
-
load
public void load()
Loads the exisiting information about the installed files from the WAR
-
save
public void save()
Saves the current modification details into the WAR
-
getFileLocation
public String getFileLocation()
Returns the location of the modifications file based on the module id- Returns:
- the file location
-
getFilePathInWar
public String getFilePathInWar()
- Returns:
- Returns the path of the install file within the WAR
-
getUpdates
public Map<String,String> getUpdates()
Get all the updated files, key is the file that has been updated and the value is the location of the backup made before modification took place.- Returns:
- map of file locaiton and backup
-
getMkdirs
public List<String> getMkdirs()
Gets a list of the dirs added during install- Returns:
- list of directories added
-
addAdd
public void addAdd(String location)
Add a file addition- Parameters:
location- the file added
-
addUpdate
public void addUpdate(String location, String backup)
Add a file update- Parameters:
location- the file updatedbackup- the backup location
-
addMkdir
public void addMkdir(String location)
Add a directory- Parameters:
location- the directory location
-
-