public class ModuleDetailsHelper extends Object
Constructor and Description |
---|
ModuleDetailsHelper() |
Modifier and Type | Method and Description |
---|---|
static ModuleDetails |
createModuleDetailsFromPropertiesStream(InputStream is)
Factory method to create module details from a stream of a properties file
|
static ModuleDetails |
createModuleDetailsFromPropertiesStream(InputStream is,
LogOutput log)
Factory method to create module details from a stream of a properties file
|
static ModuleDetails |
createModuleDetailsFromPropertyLocation(String location)
Creates a module details helper object based on a file location.
|
static ModuleDetails |
createModuleDetailsFromPropertyLocation(String location,
LogOutput log)
Creates a module details helper object based on a file location.
|
static ModuleDetails |
createModuleDetailsFromWarAndId(String warLocation,
String moduleId)
Creates a module details instance based on a war location and the module id
|
static de.schlichtherle.truezip.file.TFile |
getModuleDetailsFileFromWarAndId(String warLocation,
String moduleId) |
static String |
getModulePropertiesFileLocation(String warLocation,
String moduleId)
Gets the file location
|
static String |
getModulePropertiesFilePathInWar(String moduleId) |
static void |
saveModuleDetails(String warLocation,
ModuleDetails moduleDetails)
Saves the module details to the war in the correct location based on the module id
|
public static ModuleDetails createModuleDetailsFromPropertiesStream(InputStream is) throws IOException
is
- the properties input stream, which will be closed during the callIOException
public static ModuleDetails createModuleDetailsFromPropertiesStream(InputStream is, LogOutput log) throws IOException
is
- the properties input stream, which will be closed during the calllog
- loggerIOException
public static ModuleDetails createModuleDetailsFromPropertyLocation(String location) throws IOException
location
- file locationIOException
public static ModuleDetails createModuleDetailsFromPropertyLocation(String location, LogOutput log) throws IOException
location
- file locationlog
- loggerIOException
public static ModuleDetails createModuleDetailsFromWarAndId(String warLocation, String moduleId) throws IOException
warLocation
- the war locationmoduleId
- the module idIOException
public static de.schlichtherle.truezip.file.TFile getModuleDetailsFileFromWarAndId(String warLocation, String moduleId)
warLocation
- the location of the WAR filemoduleId
- the module ID within the WARpublic static String getModulePropertiesFileLocation(String warLocation, String moduleId)
warLocation
- the war locationmoduleId
- the module idpublic static String getModulePropertiesFilePathInWar(String moduleId)
moduleId
- the module IDpublic static void saveModuleDetails(String warLocation, ModuleDetails moduleDetails)
warLocation
- the war locationmoduleDetails
- the module idCopyright © 2005–2017 Alfresco Software. All rights reserved.