|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.websphere.management.application.client.AppDeploymentTask
An AppDeploymentTask instance is a step in the application installation or editing
procedure. Each task has a name which specifies the operation that it performs
e.g.
DataSourceFor10CMPBeans (used to specify data source for EJB1.0 beans in an application)
BindJndiForEJBNonMessageBinding (used to specify JNDI names for non MDB EJBs)
MapWebModToVH (used to specify virtual hosts for web modules)
etc.
A task contains application specific data that is either shown to the user
so that they can change it or is modified programmatically. The task data is a two
dimensional array of strings (i.e. a table of strings). The first row of the table
contains the column headings that represent specific attributes from application or modules.
The rest of the rows contain values of these attributes in a task-specific manner.
For example, a task to map web modules to virtual hosts has three columns that are
webModule, uri and virtualHost. Each row represents a single web module for which
user can read/write virtual host information. For example, the taskData for this task may
look like
webModule | uri | virtualHost |
MyModuleName | myMod.war+WEB_INF/web.xml | default_host |
XYModuleName | xyMod.war+WEB_INF/web.xml | another_host |
Field Summary | |
---|---|
protected AppDeploymentController |
appController
Controller instance that manages tasks |
protected java.lang.String[] |
colNames
Task Column Names |
protected boolean |
hasHiddenColumns
Specifies if the task has any hidden columns. |
protected boolean[] |
hiddenColumns
Hidden columns. |
protected boolean |
isSufficientlyDone
Specifies if task has any required data that is not specified |
protected boolean |
isTaskDisabled
Specifies if task should be shown/changed |
protected boolean |
isTaskEmpty
Specifies if task has any data in it |
protected boolean[] |
mutables
Columns that can be changed |
protected java.lang.String |
name
Task Name |
protected boolean[] |
requiredColumns
Columns that can not have an empty ("") value |
protected java.lang.String[][] |
taskData
Task Data |
protected java.lang.String[] |
taskValidateErrorMessages
Error messages generated when task is validated |
Constructor Summary | |
---|---|
AppDeploymentTask(AppDeploymentController controller)
Creates an instance of AppDeploymentTask |
Method Summary | |
---|---|
protected void |
buildErrorMessages(java.util.Vector error)
|
AppDeploymentController |
getAppDeploymentController()
Returns AppDeploymentController instance |
java.lang.String[] |
getColumnNames()
Returns column names for the task. |
boolean[] |
getMutableColumns()
Specifies mutable columns in the task |
boolean |
getMutableColumns(int i)
Specifies if a specific column is mutable |
java.lang.String |
getName()
Returns task name. |
boolean[] |
getRequiredColumns()
Specifies required columns in the task |
boolean |
getRequiredColumns(int i)
Returns if value for a specific column is required |
java.lang.String[][] |
getTaskData()
Returns task data |
AppDeploymentMessages |
getTaskMessages()
Returns AppDeploymentMessages instance for the task. |
boolean |
isHiddenColumn(int i)
Returns if a specific column is hidden |
boolean |
isSufficientlyDone()
Specifies if task has all the required columns populated |
boolean |
isTaskDisabled()
Specifies if task should be shown or changed |
boolean |
isTaskEmpty()
Specifies if task has any data. |
void |
setAppDeploymentController(AppDeploymentController controller)
Sets the controller instance |
void |
setIsSufficientlyDone(boolean b)
Sets that the task has all the required data |
void |
setIsTaskDisabled(boolean b)
Disables the task |
void |
setTaskData(java.lang.String[][] data)
Sets task data |
java.lang.String[] |
validate()
Validates the task data |
protected void |
verifyTaskData(java.lang.String[][] data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient AppDeploymentController appController
protected java.lang.String name
protected boolean isTaskEmpty
protected boolean isSufficientlyDone
protected boolean isTaskDisabled
protected java.lang.String[][] taskData
protected java.lang.String[] colNames
protected java.lang.String[] taskValidateErrorMessages
protected boolean[] mutables
protected boolean[] requiredColumns
protected boolean[] hiddenColumns
protected boolean hasHiddenColumns
Constructor Detail |
public AppDeploymentTask(AppDeploymentController controller)
controller
- The AppDeploymentController instance.Method Detail |
public void setAppDeploymentController(AppDeploymentController controller)
controller
- The AppDeploymentController instance.public java.lang.String getName()
public boolean isTaskEmpty()
public boolean isTaskDisabled()
public boolean isSufficientlyDone()
public void setIsTaskDisabled(boolean b)
flag
- to disable the taskpublic void setIsSufficientlyDone(boolean b)
flag
- to specify that the task has all the required datapublic java.lang.String[] getColumnNames()
public boolean[] getMutableColumns()
public boolean getMutableColumns(int i)
public boolean[] getRequiredColumns()
public boolean getRequiredColumns(int i)
public boolean isHiddenColumn(int i)
public java.lang.String[][] getTaskData()
public void setTaskData(java.lang.String[][] data) throws AppDeploymentException
task
- dataprotected void verifyTaskData(java.lang.String[][] data) throws AppDeploymentException
public java.lang.String[] validate()
protected void buildErrorMessages(java.util.Vector error)
public AppDeploymentMessages getTaskMessages()
public AppDeploymentController getAppDeploymentController()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |