com.ibm.dse.tools.workbench.gui
Class GroupUIActionListener

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.gui.GroupUIActionListener

public class GroupUIActionListener
extends java.lang.Object
implements java.awt.event.ActionListener, CommonParameters, ActionVariables, TableNames

This class is a listener for actions performed in the GroupUI.


Field Summary
static java.lang.String DELETE_GROUP
           
static java.lang.String EDIT_GROUP
           
static java.lang.String EXTERNALIZE_ENTITIES_TO
           
static java.lang.String EXTERNALIZE_INSTANCES_TO
           
static java.lang.String INSTANCES_BY_NAME
           
static java.lang.String INSTANCES_BY_POSITION
           
static java.lang.String LAUNCH_WIZARD
           
protected static java.lang.String MSG_CONFIRM_DELETE_GROUP
           
protected static java.lang.String MSG_CONFIRM_DELETE_GROUP_TITLE
           
protected static java.lang.String MSG_CONFIRM_DELETE_GROUPS
           
protected static java.lang.String MSG_DELETE_VETOABLE_GROUP
           
protected static java.lang.String MSG_DELETE_VETOABLE_GROUP_TITLE
           
static java.lang.String NEW_GROUP
           
static java.lang.String REFRESH_CONTENTS
           
protected static java.lang.String SECTION
           
protected  GroupUI uiDelegate
           
static java.lang.String VALIDATE_GROUP
           
 
Fields inherited from interface com.ibm.dse.tools.workbench.gui.CommonParameters
CHANGE_LISTENER, CONTAINER_GROUPS, CURRENT_GROUP, PARENT_ROW, REPOSITORY, ROW_SELECTION_COUNT, SELECTED_PARENT_ROWS, SELECTED_ROWS, WIZARD_PARAM, WORKSPACE
 
Fields inherited from interface com.ibm.dse.tools.workbench.gui.ActionVariables
CMD_ADD_TO_WORKSPACE, CMD_CHANGE_REPOSITORY, CMD_CHANGE_WORKSPACE, CMD_CLONE, CMD_CONNECT_REPOSITORY, CMD_COPY, CMD_CREATE_OPEN_EDITION, CMD_CUT, CMD_DELETE, CMD_DISCONNECT_REPOSITORY, CMD_EXIT, CMD_IMPORT_FILE, CMD_LAUNCH_SPECIFIC_WIZARD, CMD_MORPH_INTO, CMD_MOVE, CMD_OPEN_DOMAINS_EXPLORER, CMD_OPEN_FILE, CMD_OPEN_REPOSITORY_EXPLORER, CMD_OPEN_SETTINGS_WIZARD, CMD_OPEN_TO_EDITIONS, CMD_PASTE, CMD_REFRESH_WORKSPACE, CMD_RELOAD_ENVIRONMENT, CMD_SELECT_ALL, CMD_SHOW_CONSOLE, CMD_SHOW_VERSION, CMD_UNDO, CMD_VERSION
 
Fields inherited from interface com.ibm.dse.tools.workbench.base.TableNames
ALLOWED_VALUES, ATTRIBUTES, DOMAINS, ENTITIES, ENTITIES_ENTITIES, GROUPS, GROUPS_ENTITIES, GROUPS_GROUPS, GROUPS_INSTANCES, INSTANCE_ERRORS, INSTANCES, PROPERTIES, USERS
 
Constructor Summary
GroupUIActionListener(GroupUI delegate)
          This constructor creates a GroupUIActionListener object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          This method dispatch the action event.
 void doConnectVersionGroup(java.util.Hashtable params)
          This method performs a connection to the repository if it doesn't exist and versions a group definition
protected  void doCreateOpenEditionGroup(java.util.Hashtable params)
          This method creates an open edition for the selected Group;
protected  void doDeleteGroup(java.util.Hashtable params, TableRow[] rowsToDelete)
          This method deletes one or more groups.
protected  void doExternalizeEntitiesTo(java.lang.String format, java.util.Hashtable params)
          This method externalizes one or more groups of entities.
protected  void doExternalizeInstancesTo(java.lang.String format, java.util.Hashtable params)
          This method externalizes one or more groups of instances.
protected  void doNewGroup(java.util.Hashtable params)
          This method creates a new group.
protected  void doOrderInstances(java.util.Hashtable params, java.lang.String orderField)
          Clones the instance selected
protected  void doValidateGroup(java.util.Hashtable params)
          Clones the instance selected
protected  void doVersionGroup(java.util.Hashtable params)
          This method version the given group.
 java.util.Hashtable getVersionCode(boolean autoVersion, TableRow versionableRow, Repository aRep, boolean enableAutoVersionChk)
          This method gets the code to use when versioning a group
protected  void launchWizard(java.util.Hashtable params)
          This method launches the GroupUI wizard.
 void versionGroupContents(TableRow row, Repository aRep, boolean autoVersion)
          This method versions the rows contained in a group row
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECTION

protected static final java.lang.String SECTION

MSG_CONFIRM_DELETE_GROUP

protected static final java.lang.String MSG_CONFIRM_DELETE_GROUP

MSG_CONFIRM_DELETE_GROUPS

protected static final java.lang.String MSG_CONFIRM_DELETE_GROUPS

MSG_CONFIRM_DELETE_GROUP_TITLE

protected static final java.lang.String MSG_CONFIRM_DELETE_GROUP_TITLE

MSG_DELETE_VETOABLE_GROUP

protected static final java.lang.String MSG_DELETE_VETOABLE_GROUP

MSG_DELETE_VETOABLE_GROUP_TITLE

protected static final java.lang.String MSG_DELETE_VETOABLE_GROUP_TITLE

uiDelegate

protected GroupUI uiDelegate

LAUNCH_WIZARD

public static java.lang.String LAUNCH_WIZARD

NEW_GROUP

public static java.lang.String NEW_GROUP

EDIT_GROUP

public static java.lang.String EDIT_GROUP

DELETE_GROUP

public static java.lang.String DELETE_GROUP

VALIDATE_GROUP

public static java.lang.String VALIDATE_GROUP

REFRESH_CONTENTS

public static java.lang.String REFRESH_CONTENTS

EXTERNALIZE_INSTANCES_TO

public static java.lang.String EXTERNALIZE_INSTANCES_TO

EXTERNALIZE_ENTITIES_TO

public static java.lang.String EXTERNALIZE_ENTITIES_TO

INSTANCES_BY_POSITION

public static java.lang.String INSTANCES_BY_POSITION

INSTANCES_BY_NAME

public static java.lang.String INSTANCES_BY_NAME
Constructor Detail

GroupUIActionListener

public GroupUIActionListener(GroupUI delegate)
This constructor creates a GroupUIActionListener object.
Parameters:
delgate - com.ibm.dse.tools.workbench.gui.GroupUI
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
This method dispatch the action event.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
event - java.event.ActionEvent

doConnectVersionGroup

public void doConnectVersionGroup(java.util.Hashtable params)
This method performs a connection to the repository if it doesn't exist and versions a group definition
Parameters:
params - java.util.Hashtable

doCreateOpenEditionGroup

protected void doCreateOpenEditionGroup(java.util.Hashtable params)
This method creates an open edition for the selected Group;
Parameters:
params - java.util.Hashtable

doDeleteGroup

protected void doDeleteGroup(java.util.Hashtable params,
                             TableRow[] rowsToDelete)
This method deletes one or more groups.
Parameters:
params - java.util.Hashtable

doExternalizeEntitiesTo

protected void doExternalizeEntitiesTo(java.lang.String format,
                                       java.util.Hashtable params)
This method externalizes one or more groups of entities.
Parameters:
format - java.lang.String
params - java.util.Hashtable

doExternalizeInstancesTo

protected void doExternalizeInstancesTo(java.lang.String format,
                                        java.util.Hashtable params)
This method externalizes one or more groups of instances.
Parameters:
format - java.lang.String
params - java.util.Hashtable

doNewGroup

protected void doNewGroup(java.util.Hashtable params)
                   throws WorkbenchException
This method creates a new group.
Parameters:
params - java.util.Hashtable
Throws:
WorkbenchException -  

doOrderInstances

protected void doOrderInstances(java.util.Hashtable params,
                                java.lang.String orderField)
Clones the instance selected
Parameters:
params - java.util.Hashtable

doValidateGroup

protected void doValidateGroup(java.util.Hashtable params)
Clones the instance selected
Parameters:
params - java.util.Hashtable

doVersionGroup

protected void doVersionGroup(java.util.Hashtable params)
This method version the given group.
Parameters:
params - java.util.Hashtable

getVersionCode

public java.util.Hashtable getVersionCode(boolean autoVersion,
                                          TableRow versionableRow,
                                          Repository aRep,
                                          boolean enableAutoVersionChk)
                                   throws WorkbenchException
This method gets the code to use when versioning a group

The code can be asked to the user by a version dialog instance or can be retrieved automatically from the the repository when versioning automatically related rows

Parameters:
autoVersion - boolean
versionableRow - com.ibm.dse.tools.workbench.base.TableRow
aRep - com.ibm.dse.tools.workbench.base.Repository
enableAutoVersionChk - boolean
Returns:
java.util.Hashtable
Throws:
WorkbenchException -  

launchWizard

protected void launchWizard(java.util.Hashtable params)
                     throws WorkbenchException
This method launches the GroupUI wizard.
Parameters:
params - java.util.Hashtable
Throws:
WorkbenchException -  

versionGroupContents

public void versionGroupContents(TableRow row,
                                 Repository aRep,
                                 boolean autoVersion)
                          throws WorkbenchException
This method versions the rows contained in a group row
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow the group table row
aRep - com.ibm.dse.tools.workbench.base.Repository the repository where to version
autoVersion - boolean indicates whether to ask the user the version code or use the automatic version code
Throws:
WorkbenchException - An error occurred while versioning the group contents