Administration Tools

org.topcased.service.updatesite
Class CreateSiteUpdateSiteWizardTreatment

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

public class CreateSiteUpdateSiteWizardTreatment
extends java.lang.Object

All treatments necessary to the WizardPage CreateSiteUpdateSiteWizardPage


Constructor Summary
CreateSiteUpdateSiteWizardTreatment(UpdateSiteWizard wiz)
          Construtor
 
Method Summary
 boolean addCategory(java.lang.String name, java.lang.String label, java.lang.String desc, org.eclipse.swt.widgets.Tree tree)
          Add the given category to the map of category and to the tree ONLY if the name of the category don't exist already
 boolean addCategory(java.lang.String name, java.lang.String label, org.eclipse.swt.widgets.Tree tree)
          Add the given category to the map of category and to the tree ONLY if the name of the category don't exist already
 boolean categoryExists(java.lang.String name)
           
 void createSiteXML()
          Creates the file site.xml based on the features' map and categories' map
 void displayIHMSiteXml(org.eclipse.swt.widgets.Text url_text, org.eclipse.swt.widgets.Text description_text, org.eclipse.swt.widgets.Table tableArchive)
          Display the IHM of the construction of site.xml file
 void displayMapArchive(org.eclipse.swt.widgets.Table tableArchive)
          Diplay the map archive in the table of archive mapping
 java.lang.String getArch(java.lang.String featureName)
          Return attribute arch to a feature
 java.lang.String getDesc(java.lang.String categoryName)
          Return attribute description to a category
 java.lang.String getLabel(java.lang.String categoryName)
          Return attribute label to a category
 java.lang.String getName(java.lang.String categoryName)
          Return attribute name to a category
 java.lang.String getNL(java.lang.String featureName)
          Return attribute ws to a feature
 java.lang.String getOS(java.lang.String featureName)
          Return attribute os to a feature
 boolean getPatch(java.lang.String featureName)
          Return boolean attribute patch of a feature
 java.lang.String getURL(java.lang.String featureName)
           
 java.lang.String getWS(java.lang.String featureName)
          Set attribute ws to a feature
 void handleAddArchiveMapping(org.eclipse.swt.widgets.Table tableArchive)
          Add informations (pathArchiveMapping, urlArchiveMapping) in the Map archiveMapping
 void handleDeleteArchiveMapping(java.lang.String selectionName)
          Delete an archive mapping Delete the selection from the Map archiveMapping (key=path ; value=url)
 void handleDescription(org.eclipse.swt.widgets.Text descriptionText)
          Take information about url description
 void handlePathMapping(org.eclipse.swt.widgets.Text urlMapping_text)
          Take information about archive mapping path
 void handleUrlDescription(org.eclipse.swt.widgets.Text urlText)
          Take information about url
 void handleUrlMapping(org.eclipse.swt.widgets.Text urlMapping_text)
          Take information about archive mapping url
 void initializeTree(org.eclipse.swt.widgets.Tree tree)
          Initialize the given tree with the map of the features of the site Add the choosen features to the site
 void readSiteXMLFile()
          Reads and initializeas maps if the file site.xml exists already
 void setArch(java.lang.String featureName, java.lang.String Arch)
          Set attribute arch to a feature
 void setCategoryToFeature(java.lang.String featureName, java.lang.String categoryName)
          Set the attribute category to a feature
 void setDesc(java.lang.String categoryName, java.lang.String desc)
          Set attribute description to a category
 void setLabel(java.lang.String categoryName, java.lang.String label)
          Set attribute label to a category
 void setName(java.lang.String oldName, java.lang.String newName, org.eclipse.swt.widgets.TreeItem treeItem)
          Set attribute name to a category and update the given tree with this new name
 void setNl(java.lang.String featureName, java.lang.String Nl)
          Set attribute nl to a feature
 void setOS(java.lang.String featureName, java.lang.String libOS)
          Set attribute os to a feature
 void setPatch(java.lang.String featureName, boolean patch)
          Set boolean attribute patch to a feature
 void setWin(java.lang.String featureName, java.lang.String win)
          Set attribute win to a feature
 void subCategory(org.eclipse.swt.widgets.TreeItem item)
          Dispose the category to the map of category and to the treeItem Take all the features included in the category a the end of the parent of item
 void updateTree(org.eclipse.swt.widgets.Tree tree)
          Draw the tree with the features of the site and with the categories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSiteUpdateSiteWizardTreatment

public CreateSiteUpdateSiteWizardTreatment(UpdateSiteWizard wiz)
Construtor

Parameters:
wizard - the parent wizard
Method Detail

initializeTree

public void initializeTree(org.eclipse.swt.widgets.Tree tree)
Initialize the given tree with the map of the features of the site Add the choosen features to the site

Parameters:
tree -

updateTree

public void updateTree(org.eclipse.swt.widgets.Tree tree)
Draw the tree with the features of the site and with the categories

Parameters:
tree -

getURL

public java.lang.String getURL(java.lang.String featureName)
Parameters:
featureName -
Returns:
the URL of the feature

setPatch

public void setPatch(java.lang.String featureName,
                     boolean patch)
Set boolean attribute patch to a feature

Parameters:
featureName -
patch -

getPatch

public boolean getPatch(java.lang.String featureName)
Return boolean attribute patch of a feature

Parameters:
featureName -
Returns:
true if the patch is "true", false otherwise

setOS

public void setOS(java.lang.String featureName,
                  java.lang.String libOS)
Set attribute os to a feature

Parameters:
featureName -
libOS -

getOS

public java.lang.String getOS(java.lang.String featureName)
Return attribute os to a feature

Parameters:
featureName -
Returns:

getWS

public java.lang.String getWS(java.lang.String featureName)
Set attribute ws to a feature

Parameters:
featureName -
Returns:

getNL

public java.lang.String getNL(java.lang.String featureName)
Return attribute ws to a feature

Parameters:
featureName -
Returns:

getArch

public java.lang.String getArch(java.lang.String featureName)
Return attribute arch to a feature

Parameters:
featureName -
Returns:
String

setWin

public void setWin(java.lang.String featureName,
                   java.lang.String win)
Set attribute win to a feature

Parameters:
featureName -
win -

setNl

public void setNl(java.lang.String featureName,
                  java.lang.String Nl)
Set attribute nl to a feature

Parameters:
featureName -
Nl -

setArch

public void setArch(java.lang.String featureName,
                    java.lang.String Arch)
Set attribute arch to a feature

Parameters:
featureName -
Arch -

getName

public java.lang.String getName(java.lang.String categoryName)
Return attribute name to a category

Parameters:
categoryName -
Returns:
String

getLabel

public java.lang.String getLabel(java.lang.String categoryName)
Return attribute label to a category

Parameters:
categoryName -
Returns:

getDesc

public java.lang.String getDesc(java.lang.String categoryName)
Return attribute description to a category

Parameters:
categoryName -
Returns:

setName

public void setName(java.lang.String oldName,
                    java.lang.String newName,
                    org.eclipse.swt.widgets.TreeItem treeItem)
Set attribute name to a category and update the given tree with this new name

Parameters:
categoryName -
name -
treeItem -

setLabel

public void setLabel(java.lang.String categoryName,
                     java.lang.String label)
Set attribute label to a category

Parameters:
categoryName -
label -

setDesc

public void setDesc(java.lang.String categoryName,
                    java.lang.String desc)
Set attribute description to a category

Parameters:
categoryName -
desc -

addCategory

public boolean addCategory(java.lang.String name,
                           java.lang.String label,
                           org.eclipse.swt.widgets.Tree tree)
Add the given category to the map of category and to the tree ONLY if the name of the category don't exist already

Parameters:
name - of the category
label - of the category
tree -
Returns:
boolean true if the category is succefully added, false otherwise

addCategory

public boolean addCategory(java.lang.String name,
                           java.lang.String label,
                           java.lang.String desc,
                           org.eclipse.swt.widgets.Tree tree)
Add the given category to the map of category and to the tree ONLY if the name of the category don't exist already

Parameters:
name - of the category
label - of the category
desc - description of the category
tree -
Returns:
boolean true if the category is succefully added, false otherwise

subCategory

public void subCategory(org.eclipse.swt.widgets.TreeItem item)
Dispose the category to the map of category and to the treeItem Take all the features included in the category a the end of the parent of item

Parameters:
item -

categoryExists

public boolean categoryExists(java.lang.String name)
Parameters:
name -
Returns:
true if the category exists, false otherwise

setCategoryToFeature

public void setCategoryToFeature(java.lang.String featureName,
                                 java.lang.String categoryName)
Set the attribute category to a feature

Parameters:
featureName -
categoryName -

displayIHMSiteXml

public void displayIHMSiteXml(org.eclipse.swt.widgets.Text url_text,
                              org.eclipse.swt.widgets.Text description_text,
                              org.eclipse.swt.widgets.Table tableArchive)
Display the IHM of the construction of site.xml file

Parameters:
url_text -
description_text -
tableArchive -

handleUrlDescription

public void handleUrlDescription(org.eclipse.swt.widgets.Text urlText)
Take information about url

Parameters:
urlText -

handleDescription

public void handleDescription(org.eclipse.swt.widgets.Text descriptionText)
Take information about url description

Parameters:
descriptionText -

handleUrlMapping

public void handleUrlMapping(org.eclipse.swt.widgets.Text urlMapping_text)
Take information about archive mapping url

Parameters:
urlMapping_text -

handlePathMapping

public void handlePathMapping(org.eclipse.swt.widgets.Text urlMapping_text)
Take information about archive mapping path

Parameters:
urlMapping_text -

handleAddArchiveMapping

public void handleAddArchiveMapping(org.eclipse.swt.widgets.Table tableArchive)
Add informations (pathArchiveMapping, urlArchiveMapping) in the Map archiveMapping

Parameters:
tableArhive -

handleDeleteArchiveMapping

public void handleDeleteArchiveMapping(java.lang.String selectionName)
Delete an archive mapping Delete the selection from the Map archiveMapping (key=path ; value=url)

Parameters:
selectionName -

displayMapArchive

public void displayMapArchive(org.eclipse.swt.widgets.Table tableArchive)
Diplay the map archive in the table of archive mapping

Parameters:
tableArhive -

readSiteXMLFile

public void readSiteXMLFile()
Reads and initializeas maps if the file site.xml exists already


createSiteXML

public void createSiteXML()
Creates the file site.xml based on the features' map and categories' map


Administration Tools

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