Package org.alfresco.repo.module.tool
Class InstalledFiles
java.lang.Object
org.alfresco.repo.module.tool.InstalledFiles
Details of the files installed during a module installation into a WAR
- Author:
- Roy Wetherall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a file additionvoidAdd a directoryvoidAdd a file updategetAdds()Get all the added filesReturns the location of the modifications file based on the module idGets a list of the dirs added during installGet 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 WARtoString()
-
Constructor Details
-
InstalledFiles
Constructor- Parameters:
warLocation- the war locationmoduleId- the module id
-
-
Method Details
-
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
Returns the location of the modifications file based on the module id- Returns:
- the file location
-
getFilePathInWar
- Returns:
- Returns the path of the install file within the WAR
-
getAdds
Get all the added files- Returns:
- list of files added to war
-
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
Gets a list of the dirs added during install- Returns:
- list of directories added
-
addAdd
Add a file addition- Parameters:
location- the file added
-
addUpdate
Add a file update- Parameters:
location- the file updatedbackup- the backup location
-
addMkdir
Add a directory- Parameters:
location- the directory location
-
toString
-