Administration Tools

org.topcased.service.updatesite
Class BrowseUpdateSiteWizardTreatment

java.lang.Object
  extended by org.topcased.service.updatesite.BrowseUpdateSiteWizardTreatment

public class BrowseUpdateSiteWizardTreatment
extends java.lang.Object

All treatments necessary to the WizardPage BrowseUpdateSiteWizardPage


Constructor Summary
BrowseUpdateSiteWizardTreatment(UpdateSiteWizard wizard)
          Constructor
 
Method Summary
 void addPluginFeature(java.lang.String nameSelected, org.eclipse.swt.widgets.Table tableTarget)
          Button Action : Add the repository seleceted in the tableSource (Tool administrator) to the tableDestination (Update Site)
 void browseToolAdministratorClick(org.eclipse.swt.widgets.Text text, org.eclipse.swt.widgets.Table table)
          Button Action : Browse Directory for the Tool Administrator
 void browseUpdateSiteFTP(org.eclipse.swt.widgets.Text text, org.eclipse.swt.widgets.Table table)
          Button Action : Browse the Update Site from a FTP server
 void browseUpdateSiteJarFile(org.eclipse.swt.widgets.Text text, org.eclipse.swt.widgets.Table table)
          Button Action : Browse Directory for the Update Site (jar File)
 void browseUpdateSiteSSH(org.eclipse.swt.widgets.Text text, org.eclipse.swt.widgets.Table table)
          Button Action : Browse the Update Site from a SSH server
 boolean checkInitialRepository(java.lang.String originalPath)
          The goal of this method is to check the presence of the initial structure, i.e : - directory 'features' must existed but can be empty - directory 'plugins' must existed but can be empty If nothing exists, the method creates a new update site with the two empty directories.
 void deletePluginFeature(java.lang.String nameSelected, org.eclipse.swt.widgets.Table tableUS)
          Button Action : Delete the repository seleceted in the tableSource (UpdateSite)
 void displayMap(java.util.Map map, org.eclipse.swt.widgets.Table table)
          Display the content Map "map" in the table "table"
 void filterMap(org.eclipse.swt.widgets.Table table)
          Filter the map of the TA path's files Choose only the feature not included in other features
 java.util.Map getMapContentRepositoryPluginFeatureTA()
           
 java.util.Map getMapContentRepositoryPluginFeatureUS()
           
 void infosFeature(java.lang.String featurePath)
          Display informations about feature
 java.util.Map initializeMap(java.lang.String repositoryPath)
          Initialize a map with the given directory
 java.util.Map initializeMapWithJarFile(java.lang.String repositoryPath)
          Return the corresponding Map of all 'jar' File from the path repository or file
 void noFilterMap(org.eclipse.swt.widgets.Table table)
          Initalize the TA map with all files without filter and display it in the table
 java.lang.String searchSource(java.lang.String nameSelected, boolean searchTA)
          Search the path source of the selected item in different map (updateSite, add, delete)
 void setMapContentRepositoryPluginFeatureTA(java.util.Map mapContentRepositoryPluginFeatureTA)
           
 void setMapContentRepositoryPluginFeatureUS(java.util.Map mapContentRepositoryPluginFeatureUS)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowseUpdateSiteWizardTreatment

public BrowseUpdateSiteWizardTreatment(UpdateSiteWizard wizard)
Constructor

Parameters:
wizard - the parent wizard
Method Detail

getMapContentRepositoryPluginFeatureTA

public java.util.Map getMapContentRepositoryPluginFeatureTA()
Returns:
Returns the mapContentRepositoryPluginFeatureTA.

setMapContentRepositoryPluginFeatureTA

public void setMapContentRepositoryPluginFeatureTA(java.util.Map mapContentRepositoryPluginFeatureTA)
Parameters:
mapContentRepositoryPluginFeatureTA - The mapContentRepositoryPluginFeatureTA to set.

getMapContentRepositoryPluginFeatureUS

public java.util.Map getMapContentRepositoryPluginFeatureUS()
Returns:
Returns the mapContentRepositoryPluginFeatureUS.

setMapContentRepositoryPluginFeatureUS

public void setMapContentRepositoryPluginFeatureUS(java.util.Map mapContentRepositoryPluginFeatureUS)
Parameters:
mapContentRepositoryPluginFeatureUS - The mapContentRepositoryPluginFeatureUS to set.

initializeMap

public java.util.Map initializeMap(java.lang.String repositoryPath)
Initialize a map with the given directory

Parameters:
repositoryPath -
Returns:
Map

displayMap

public void displayMap(java.util.Map map,
                       org.eclipse.swt.widgets.Table table)
Display the content Map "map" in the table "table"

Parameters:
map - : key=name; value=SourceDestination
table - : location where the map is display

initializeMapWithJarFile

public java.util.Map initializeMapWithJarFile(java.lang.String repositoryPath)
Return the corresponding Map of all 'jar' File from the path repository or file

Parameters:
repositoryPath -
Returns:
Map : key=name, value=SourceDestination

browseToolAdministratorClick

public void browseToolAdministratorClick(org.eclipse.swt.widgets.Text text,
                                         org.eclipse.swt.widgets.Table table)
Button Action : Browse Directory for the Tool Administrator

Parameters:
text - : location where the path will be read and write
table - : location where the content of the repository appear

browseUpdateSiteJarFile

public void browseUpdateSiteJarFile(org.eclipse.swt.widgets.Text text,
                                    org.eclipse.swt.widgets.Table table)
Button Action : Browse Directory for the Update Site (jar File)

Parameters:
text - : location where the path will be read and write
table - : location where the content of the 'jar' file appear

browseUpdateSiteFTP

public void browseUpdateSiteFTP(org.eclipse.swt.widgets.Text text,
                                org.eclipse.swt.widgets.Table table)
Button Action : Browse the Update Site from a FTP server

Parameters:
text - : location where the path will be read and write
table - : location where the content of the repository appear

checkInitialRepository

public boolean checkInitialRepository(java.lang.String originalPath)
The goal of this method is to check the presence of the initial structure, i.e : - directory 'features' must existed but can be empty - directory 'plugins' must existed but can be empty If nothing exists, the method creates a new update site with the two empty directories. In case where a conflict is detected, the method ask the user the operation to perform and try to solve it.

Parameters:
originalPath - of the repository
Returns:
true if all tests are ok, false if the file site.xml is missing.

browseUpdateSiteSSH

public void browseUpdateSiteSSH(org.eclipse.swt.widgets.Text text,
                                org.eclipse.swt.widgets.Table table)
Button Action : Browse the Update Site from a SSH server

Parameters:
text - : location where the path will be read and write
table - : location where the content of the repository appear

addPluginFeature

public void addPluginFeature(java.lang.String nameSelected,
                             org.eclipse.swt.widgets.Table tableTarget)
Button Action : Add the repository seleceted in the tableSource (Tool administrator) to the tableDestination (Update Site)

Parameters:
tableSource - : Tool Administrator Table
tableTarget - : Update Site Table

deletePluginFeature

public void deletePluginFeature(java.lang.String nameSelected,
                                org.eclipse.swt.widgets.Table tableUS)
Button Action : Delete the repository seleceted in the tableSource (UpdateSite)

Parameters:
tableSource - : Update Site Table

searchSource

public java.lang.String searchSource(java.lang.String nameSelected,
                                     boolean searchTA)
Search the path source of the selected item in different map (updateSite, add, delete)

Parameters:
nameSelected -
searchTA -
Returns:
absolute path

infosFeature

public void infosFeature(java.lang.String featurePath)
Display informations about feature

Parameters:
featurePath -

filterMap

public void filterMap(org.eclipse.swt.widgets.Table table)
Filter the map of the TA path's files Choose only the feature not included in other features

Parameters:
table -

noFilterMap

public void noFilterMap(org.eclipse.swt.widgets.Table table)
Initalize the TA map with all files without filter and display it in the table

Parameters:
table -

Administration Tools

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.