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 Details

    • InstalledFiles

      public InstalledFiles(String warLocation, String moduleId)
      Constructor
      Parameters:
      warLocation - the war location
      moduleId - 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

      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
    • getAdds

      public List<String> getAdds()
      Get all the added files
      Returns:
      list of files added to 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 updated
      backup - the backup location
    • addMkdir

      public void addMkdir(String location)
      Add a directory
      Parameters:
      location - the directory location
    • toString

      public String toString()
      Overrides:
      toString in class Object