public class AppManagementHelper
extends java.lang.Object
Constructor and Description |
---|
AppManagementHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isHiddenApp(java.lang.String earPath) |
static boolean |
isSystemApp(java.lang.String earPath) |
static boolean |
isSystemAppV6(java.lang.String earPath) |
static boolean |
validateFilePermissionString(java.lang.String perm) |
static java.lang.String |
wrapModule(java.lang.String moduleFile,
java.lang.String earFileName,
java.lang.String newModuleURI,
java.util.Hashtable prefs)
Wraps a module file into a new EAR file.
|
public static java.lang.String wrapModule(java.lang.String moduleFile, java.lang.String earFileName, java.lang.String newModuleURI, java.util.Hashtable prefs) throws com.ibm.websphere.management.application.client.AppDeploymentException
moduleFile
- Path to the module file (e.g. C:/temp/abc.war)earFileName
- Name of the ear file to be created. If null then the default
is modulefilename_ext.ear (e.g. C:/temp/abc_war.ear). By default the ear file is created in the
same directory as the moduleFile.newModuleURI
- URI to be given to the module when it is wrapped into the EAR. The default
valus is the moduleFile name (e.g. abc.war).prefs
- Hashtable that may contain the following preferences
Key | Value | Description |
---|---|---|
AppConstants.APPDEPL_LOCALE | java.util.Locale | Optional. Used to generate messages. Default - default locale |
AppConstants.APPDEPL_WEBMODULE_CONTEXTROOT | java.jang.String | Optional. Context root if the module file being wrapped is a Web module. Default - "/" |
com.ibm.websphere.management.application.client.AppDeploymentException
public static boolean isSystemApp(java.lang.String earPath)
public static boolean isSystemAppV6(java.lang.String earPath)
public static boolean isHiddenApp(java.lang.String earPath) throws java.lang.Exception
java.lang.Exception
public static boolean validateFilePermissionString(java.lang.String perm)