|
Administration Tools | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.wizard.Wizard
org.topcased.service.updatesite.UpdateSiteWizard
public class UpdateSiteWizard
The main update Site wizard. It add all necessary pages It also jars or copy the features/plugins to the destination It can create a FTP or SSH connection and give some information about them. It copy the features/plugins jared to the remote FTP or SSH server
Field Summary | |
---|---|
static int |
FILENOSEC
FILENOSEC - Identifier of connection host protocol |
static int |
FILESEC
FILESEC - Identifier of connection host protocol |
static int |
FTP
FTP - Identifier of connection host protocol |
static java.lang.String |
PRIVATE_KEY_PATH
PRIVATE_KEY_PATH - If a SSH connection is used |
static int |
SSH
SSH - Identifier of connection host protocol |
Fields inherited from class org.eclipse.jface.wizard.Wizard |
---|
DEFAULT_IMAGE |
Constructor Summary | |
---|---|
UpdateSiteWizard()
Constructor initializing the updateSiteToolAdminPath |
Method Summary | |
---|---|
void |
addPages()
Add all the necessary pages of the wizard |
boolean |
canFinish()
Function returning if the button 'Finish' is enabled or not |
static java.lang.String |
checkPath(java.lang.String pathToCheck,
boolean pathNature)
This method is aimed to solve path problems independantly of the system. |
void |
createConnectionFTP()
|
boolean |
createConnectionSSH()
This method establishes a SSH connection in two major steps : - key exchange between the client and the server - authentication of a user |
void |
disconnect()
This method disconnect a client form a remote FTP or SSH server. |
org.eclipse.ftp.internal.FTPClient |
getClientFTP()
|
SftpClient |
getClientSFTP()
|
SshClient |
getClientSSH()
|
ConnectUpdateSiteWizardPage |
getConnectionPage()
|
CreateSiteUpdateSiteWizardPage |
getCreateSitePage()
|
java.lang.String |
getDirectory()
|
org.eclipse.core.runtime.IPath |
getFeatureUpdateSitePath()
Returns the absolute path to the directory 'features' of tje platform source |
java.lang.String |
getHost()
|
java.util.Vector |
getIOErrorVector()
|
java.util.Map |
getMapAddPluginFeatureUS()
|
java.util.Map |
getMapFeatureInclude()
|
java.util.Map |
getMapPluginUS()
|
java.util.Map |
getMapRequiredPlugins()
|
java.lang.String |
getPassword()
|
org.eclipse.core.runtime.IPath |
getPluginUpdateSitePath()
Returns the absolute path to the directory 'plugins' of the platform source |
int |
getPort()
|
int |
getProtocolConnex()
|
TreeUpdateSiteWizardPage |
getRequiredPage()
|
BrowseUpdateSiteWizardPage |
getSelectionPage()
|
java.lang.String |
getUpdateSitePath()
|
java.lang.String |
getUpdateSiteToolAdminPath()
Return the path of the source of the features |
java.lang.String |
getUsername()
|
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
|
boolean |
isConnected()
|
void |
jarMapToDestination(java.util.Map map)
Jar the file contained in the map |
boolean |
performCancel()
Function executed when the button 'Cancel' is clicked |
boolean |
performFinish()
Function executed when the button 'Finish' is clicked |
static java.lang.String[] |
readManifestFile(java.lang.String filename)
Reads a manifest file and returns an array containing the dependencies. |
void |
setHost(java.lang.String host)
|
void |
setPassword(java.lang.String password)
|
void |
setPort(int port)
|
void |
setProtocolConnex(int protocol)
|
void |
setUpdateSitePath(java.lang.String path)
|
void |
setUpdateSiteToolAdminPath(java.lang.String path)
Set the path of the source of the features |
void |
setUsername(java.lang.String user)
|
boolean |
userAuthenticationSHH(SshAuthenticationClient client)
This method authenticates a client according to the choosen method (public key, interactive keyboard, password) |
void |
zipFile(java.io.File[] files,
java.util.jar.JarOutputStream output,
java.lang.String path)
Zip Files |
Methods inherited from class org.eclipse.jface.wizard.Wizard |
---|
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FTP
public static final int SSH
public static final int FILESEC
public static final int FILENOSEC
public static final java.lang.String PRIVATE_KEY_PATH
Constructor Detail |
---|
public UpdateSiteWizard()
Method Detail |
---|
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
workbench
- selection
- public static java.lang.String checkPath(java.lang.String pathToCheck, boolean pathNature)
pathToCheck
- The string to evaluatepathNature
- The string nature : true for a local path, false for a distant path.
public boolean performCancel()
performCancel
in interface org.eclipse.jface.wizard.IWizard
performCancel
in class org.eclipse.jface.wizard.Wizard
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
public boolean canFinish()
canFinish
in interface org.eclipse.jface.wizard.IWizard
canFinish
in class org.eclipse.jface.wizard.Wizard
public void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
public java.lang.String getUpdateSiteToolAdminPath()
public void setUpdateSiteToolAdminPath(java.lang.String path)
path
- the pathpublic java.lang.String getUpdateSitePath()
public org.eclipse.core.runtime.IPath getPluginUpdateSitePath()
public org.eclipse.core.runtime.IPath getFeatureUpdateSitePath()
public void setUpdateSitePath(java.lang.String path)
updateSitePath
- The updateSitePath to set.public TreeUpdateSiteWizardPage getRequiredPage()
public ConnectUpdateSiteWizardPage getConnectionPage()
public BrowseUpdateSiteWizardPage getSelectionPage()
public CreateSiteUpdateSiteWizardPage getCreateSitePage()
public java.util.Map getMapAddPluginFeatureUS()
public java.util.Map getMapFeatureInclude()
public java.util.Map getMapPluginUS()
public java.util.Map getMapRequiredPlugins()
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The host to set.public int getPort()
public void setPort(int port)
port
- The port to set.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password to set.public int getProtocolConnex()
public void setProtocolConnex(int protocol)
protocolConnex
- The protocolConnex to set.public java.lang.String getUsername()
public void setUsername(java.lang.String user)
username
- The username to set.public org.eclipse.ftp.internal.FTPClient getClientFTP()
public SftpClient getClientSFTP()
public SshClient getClientSSH()
public java.lang.String getDirectory()
public java.util.Vector getIOErrorVector()
public void createConnectionFTP()
public boolean userAuthenticationSHH(SshAuthenticationClient client)
client
- represents the current method authentication tried by a client
public boolean createConnectionSSH()
public void disconnect()
public boolean isConnected()
public void jarMapToDestination(java.util.Map map)
map
- contains files which will be zippedpublic void zipFile(java.io.File[] files, java.util.jar.JarOutputStream output, java.lang.String path) throws java.io.IOException
files
- : all files to zipoutput
- : destination jarpath
- : path in the jar
java.io.IOException
public static java.lang.String[] readManifestFile(java.lang.String filename)
filename
- the manifest filename
java.io.IOException
- if an error occur while reading the file
|
Administration Tools | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.