public class InstalledFiles
extends java.lang.Object
| Constructor and Description |
|---|
InstalledFiles(java.lang.String warLocation,
java.lang.String moduleId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdd(java.lang.String location)
Add a file addition
|
void |
addMkdir(java.lang.String location)
Add a directory
|
void |
addUpdate(java.lang.String location,
java.lang.String backup)
Add a file update
|
java.util.List |
getAdds()
Get all the added files
|
java.lang.String |
getFileLocation()
Returns the location of the modifications file based on the module id
|
java.lang.String |
getFilePathInWar() |
java.util.List |
getMkdirs()
Gets a list of the dirs added during install
|
java.util.Map |
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.
|
void |
load()
Loads the exisiting information about the installed files from the WAR
|
void |
save()
Saves the current modification details into the WAR
|
java.lang.String |
toString() |
public InstalledFiles(java.lang.String warLocation,
java.lang.String moduleId)
warLocation - the war locationmoduleId - the module idpublic void load()
public void save()
public java.lang.String getFileLocation()
public java.lang.String getFilePathInWar()
public java.util.List getAdds()
public java.util.Map getUpdates()
public java.util.List getMkdirs()
public void addAdd(java.lang.String location)
location - the file addedpublic void addUpdate(java.lang.String location,
java.lang.String backup)
location - the file updatedbackup - the backup locationpublic void addMkdir(java.lang.String location)
location - the directory locationpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.