IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.management.application
Class AppManagementHelper

java.lang.Object
  extended by com.ibm.websphere.management.application.AppManagementHelper

public class AppManagementHelper
extends java.lang.Object

The AppManagmentHelper is a helper class for application.


Constructor Summary
AppManagementHelper()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppManagementHelper

public AppManagementHelper()
Method Detail

wrapModule

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
Wraps a module file into a new EAR file.

Parameters:
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 - "/"
Returns:
Path to the new EAR file that wraps the module

Throws:
com.ibm.websphere.management.application.client.AppDeploymentException

isSystemApp

public static boolean isSystemApp(java.lang.String earPath)

isSystemAppV6

public static boolean isSystemAppV6(java.lang.String earPath)

isHiddenApp

public static boolean isHiddenApp(java.lang.String earPath)
                           throws java.lang.Exception
Throws:
java.lang.Exception

validateFilePermissionString

public static boolean validateFilePermissionString(java.lang.String perm)

IBM WebSphere Application ServerTM
Release 7