Class UpgradeInfo
- java.lang.Object
-
- com.microstrategy.web.app.utils.upgrade.UpgradeInfo
-
public class UpgradeInfo extends java.lang.Object
This class provides the upgrade process the necessary information to conduct the upgrade.- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description UpgradeInfo(java.lang.String baseFolder, java.lang.String customFolder, java.lang.String targetFolder, java.lang.String plugInName)
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FileLoader
getBaseFileLoader()
Returns aFileLoader
whosebasePath
is the base folder.java.lang.String
getBaseFolder()
Returns the location (absolute path) of the Microstrategy Web version with no customizations being upgradedApplicationParameters
getBaseParameters()
Returns theApplicationParameters
(e.g.FileLoader
getCustomizationFileLoader()
Returns aFileLoader
whosebasePath
is the customized Microstrategy Web version folder.java.lang.String
getCustomizationFolder()
Returns the location (absolute path) of the customized Microstrategy Web version being upgraded.ApplicationParameters
getCustomizationParameters()
Returns theApplicationParameters
(e.g.java.lang.String
getPlugInName()
FileLoader
getTargetFileLoader()
Returns aFileLoader
whosebasePath
is the new Microstrategy Web version folder.ApplicationParameters
getTargetParameters()
Returns theApplicationParameters
(e.g.CustomizationInfo
getTargetPlugIn()
Returns theCustomizationInfo
where the upgrade will be saved into.java.lang.String
getTargtFolder()
Returns the location (absolute path) of the new Microstrategy Web version.static AbstractConfigurationElement
loadConfig(java.lang.String relativePath, java.lang.String basePath, java.lang.Class c)
Loads an xml configuration file from the given parameters.java.lang.String
toString()
Overrides toSTring to provide meaningful debugging information.
-
-
-
Constructor Detail
-
UpgradeInfo
public UpgradeInfo(java.lang.String baseFolder, java.lang.String customFolder, java.lang.String targetFolder, java.lang.String plugInName)
Default constructor. Defines all parameter required for an upgrade.- Parameters:
baseFolder
- The location (absolute path) of the Microstrategy Web version with no customizations being upgraded.customFolder
- The location (absolute path) of the customized Microstrategy Web version being upgraded.targetFolder
- The location (absolute path) of the new Microstrategy Web version.plugInName
- String
-
-
Method Detail
-
getBaseFolder
public java.lang.String getBaseFolder()
Returns the location (absolute path) of the Microstrategy Web version with no customizations being upgraded
-
getBaseFileLoader
public FileLoader getBaseFileLoader()
Returns aFileLoader
whosebasePath
is the base folder.
-
getCustomizationFolder
public java.lang.String getCustomizationFolder()
Returns the location (absolute path) of the customized Microstrategy Web version being upgraded.
-
getCustomizationFileLoader
public FileLoader getCustomizationFileLoader()
Returns aFileLoader
whosebasePath
is the customized Microstrategy Web version folder.
-
getTargtFolder
public java.lang.String getTargtFolder()
Returns the location (absolute path) of the new Microstrategy Web version.- Returns:
- String
-
getTargetFileLoader
public FileLoader getTargetFileLoader()
Returns aFileLoader
whosebasePath
is the new Microstrategy Web version folder.
-
getPlugInName
public java.lang.String getPlugInName()
-
getBaseParameters
public ApplicationParameters getBaseParameters()
Returns theApplicationParameters
(e.g. web.xml) as defined in the base Microstrategy Web version.
-
getCustomizationParameters
public ApplicationParameters getCustomizationParameters()
Returns theApplicationParameters
(e.g. web.xml) as defined in the customized Microstrategy Web version being upgraded.
-
getTargetParameters
public ApplicationParameters getTargetParameters()
Returns theApplicationParameters
(e.g. web.xml) as defined in the new Microstrategy Web version.
-
getTargetPlugIn
public CustomizationInfo getTargetPlugIn()
Returns theCustomizationInfo
where the upgrade will be saved into.
-
loadConfig
public static AbstractConfigurationElement loadConfig(java.lang.String relativePath, java.lang.String basePath, java.lang.Class c) throws ConfigException
Loads an xml configuration file from the given parameters.- Parameters:
relativePath
- The relative path of the xml file (e.g.: /WEB-INF/web.xml)basePath
- The absolute path used as the root to resolve the relative path location (e.g.: C:\Program Files\Microstrategy\Web)c
- The AbstractConfigurationElement class that represents the root node of the xml.- Throws:
ConfigException
-
toString
public java.lang.String toString()
Overrides toSTring to provide meaningful debugging information.- Overrides:
toString
in classjava.lang.Object
-
-