Author: tchemit Date: 2008-05-13 14:24:27 +0000 (Tue, 13 May 2008) New Revision: 658 Modified: trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSConnexionConfig.java Log: refactor config + introduction factory de config Modified: trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSConnexionConfig.java =================================================================== --- trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSConnexionConfig.java 2008-05-13 14:16:07 UTC (rev 657) +++ trunk/lutinvcs/core/src/main/java/org/codelutin/vcs/VCSConnexionConfig.java 2008-05-13 14:24:27 UTC (rev 658) @@ -1,23 +1,21 @@ -/* -* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, -* Tony Chemit -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -* ##% */ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ package org.codelutin.vcs; +import org.codelutin.util.config.Config; +import org.codelutin.vcs.type.VCSConnexionConfigProperty; import org.codelutin.vcs.type.VCSConnexionMode; import org.codelutin.vcs.type.VCSTypeRepo; @@ -25,71 +23,51 @@ /** * Contract to be realized by a VCSConnexion configuration. - * <p/> - * This class has no logic, ans is a <code>POJO</code>. * * @author chemit */ -public interface VCSConnexionConfig { +public interface VCSConnexionConfig extends Config<VCSConnexionConfigProperty> { - /** @return the type of vcs used */ - String getType(); + VCSRootConfig getRootConfig(); - VCSConnexionMode getMode(); + VCSTypeRepo getTypeRepo(); - /** @return <code>true</code> if ssh connexion is used */ - boolean isUseSshConnexion(); + String getTypeRepoValue(); - /** @return the url of hostname */ - String getHostName(); + File getWorkingCopyFile(); - /** @return location of the private ssh2 key file */ - File getKeyFile(); + VCSConnexionMode getConnexionMode(); - /** @return the user connexion login */ - String getUserName(); + String getLogin(); - /** @return <code>true</code> if user ssh2 pair keys use a passphrase */ - boolean isNoPassPhrase(); + String getPassword(); - String getPassphrase(); + String getSshLogin(); - /** @return the full location path of the remote container of module */ - String getRemotePath(); + String getSshPassphrase(); - /** @return the name of remote module */ - String getRemoteDatabase(); + File getSshPrivateKeyFile(); - /** @return the full url path to the remote repository (with module name include) */ - String getRemoteDatabasePath(); + void setRootConfig(VCSRootConfig rootConfig); - File getLocalDatabasePath(); + void setTypeRepo(VCSTypeRepo typeRepo); - /** @return the type of reposotory used (head,tags,branches,...) */ - VCSTypeRepo getTypeRepo(); + void setTypeRepoValue(String typeRepoValue); + void setWorkingCopyFile(File newWorkingCopyFile); - void setHostName(String hostName); + void setConnexionMode(VCSConnexionMode connexionMode); - void setKeyFile(File keyFile); + void setLogin(String login); - void setLocalDatabasePath(File localDatabasePath); + void setPassword(String password); - void setNoPassPhrase(boolean noPassPhrase); + void setSshLogin(String sshLogin); - void setPassPhrase(String passPhrase); + void setSshPassphrase(String sshPassphrase); - void setRemoteDatabase(String remoteDatabase); + void setSshPrivateKeyFile(File sshPrivateKeyFile); - void setRemotePath(String remotePath); + boolean isNoPassPhrase(); - void setType(String type); - - void setTypeRepo(VCSTypeRepo typeRepo); - - void setUserName(String userName); - - void setUseSshConnexion(boolean newValue); - - void setConnexionMode(VCSConnexionMode mode); -} \ No newline at end of file +}
participants (1)
-
tchemit@users.labs.libre-entreprise.org