Author: tchemit Date: 2008-04-05 20:33:02 +0000 (Sat, 05 Apr 2008) New Revision: 356 Removed: trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSConfig.java trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEvent.java trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEventListener.java Log: deletec VCSConfig and VCSHandlerEvents Deleted: trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSConfig.java =================================================================== --- trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSConfig.java 2008-04-05 20:32:29 UTC (rev 355) +++ trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSConfig.java 2008-04-05 20:33:02 UTC (rev 356) @@ -1,97 +0,0 @@ -/* -* ##% 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. -* ##% */ -package org.codelutin.vcs; - -import java.io.File; - -/** - * Contract to be realised by a VCS config used in VCSHandler - * - * @author chemit - */ -public interface VCSConfig { - - /** - * find out if a connection to remote vcs servsder can be etablished. - * <p/> - * Note : The method is safe and will not throw any exception. - * - * @return <code>true</code> if connection to remote vcs server can be - * etablished. - */ - boolean canConnect(); - - /** @return <code>true</code> if handler is connected to remote vcs server */ - boolean isConnected(); - - /** @return the current connexion state */ - ConnectionState getConnectionState(); - - /** @return the type of vcs used */ - VCSType getType(); - - /** @return <code>true</code> if ssh connexion is used */ - boolean isUseSshConnexion(); - - /** @return the url of hostname */ - String getHostName(); - - /** @return location of the private ssh2 key file */ - File getKeyFile(); - - /** @return the user connexion login */ - String getUserName(); - - /** @return <code>true</code> if user ssh2 pair keys use a passphrase */ - boolean isNoPassPhrase(); - - String getPassphrase(); - - /** @return the full location path of the remote container of module */ - String getRemotePath(); - - /** @return the name of remote module */ - String getRemoteDatabase(); - - /** @return the full url path to the remote repository (with module name include) */ - String getRemoteDatabasePath(); - - File getLocalDatabasePath(); - - /** @return the type of reposotory used (head,tags,branches,...) */ - VCSTypeRepo getTypeRepo(); - - /** @return <code>true</code> if no connexion is etablish at current time */ - boolean isOffline(); - - /** @return <code>true</code> if remote repository is read-only */ - - boolean isReadOnly(); - - /** @return <code>true</code> if vcs handler is finely init */ - - boolean isInit(); - - /** method to validate vcs configuration. */ - void validate(); - - void setUseSshConnexion(boolean useSshConnexion); - - File getSource(); -} Deleted: trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEvent.java =================================================================== --- trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEvent.java 2008-04-05 20:32:29 UTC (rev 355) +++ trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEvent.java 2008-04-05 20:33:02 UTC (rev 356) @@ -1,51 +0,0 @@ -/** - * # #% 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 java.util.EventObject; - -/** - * Events to be used while {@link VCSHandler} life cycle. - * - * @author chemit - * @see VCSHandlerEventListener - * @see VCSHandler - */ -public class VCSHandlerEvent extends EventObject { - - private static final long serialVersionUID = 1L; - - protected Type type; - - public enum Type { - INIT, OPEN, CLOSE - } - - /** - * Constructs a prototypical Event. - * - * @param source The object on which the Event initially occurred. - * @param type type of event - * @throws IllegalArgumentException if source is null. - */ - public VCSHandlerEvent(Object source, Type type) { - super(source); - this.type = type; - } - - public Type getType() { - return type; - } -} Deleted: trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEventListener.java =================================================================== --- trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEventListener.java 2008-04-05 20:32:29 UTC (rev 355) +++ trunk/lutinvcs/lutinvcs-api/src/main/java/org/codelutin/vcs/VCSHandlerEventListener.java 2008-04-05 20:33:02 UTC (rev 356) @@ -1,47 +0,0 @@ -/** - * # #% 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 java.util.EventListener; - -/** - * A listener on {@link org.codelutin.vcs.VCSHandler} - * - * @author chemit - */ -public interface VCSHandlerEventListener extends EventListener { - - /** - * call when vcs handler was successfull init - * - * @param event current event - */ - public void init(VCSHandlerEvent event); - - /** - * call when vcs handler was successfull open - * - * @param event current event - */ - public void open(VCSHandlerEvent event); - - /** - * call when vcs handler was closed - * - * @param event current event - */ - public void close(VCSHandlerEvent event); - -} \ No newline at end of file