Package fr.ifremer.isisfish.vcs
Class AbstractVCS
java.lang.Object
fr.ifremer.isisfish.vcs.AbstractVCS
- All Implemented Interfaces:
VCS,FileFilter
Abstract VCS implementation.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- poussin
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.ifremer.isisfish.vcs.VCS
VCS.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Set<VetoableActionListener>protected Fileprotected Stringprotected Stringprotected Stringprotected Stringprotected Fileprotected booleanFields inherited from interface fr.ifremer.isisfish.vcs.VCS
TYPE_CVS, TYPE_NONE, TYPE_SVN, VCS_HOST_NAME, VCS_PATH, VCS_PROTOCOL, VCS_TYPE, VCS_USER_NAME, VCS_USER_PASSWORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidAjout un listener pouvant interdire les actions du vcsprotected booleanfireAction(VCSActionEvent e, File... files) getHost()Get host.Get local repository directorygetLogin()Get login.Get password.getPath()Get repository path.Get protocol.Get ssh key file.booleanisVersionnableFile(File file) Check if file can be put in vcs repository.voidSupprime un listener pouvant interdire les actions du vcsvoidcheckProtocol is automatically donevoidsetLocalRepository(File localRepository) voidcheckProtocol is automatically donevoidsetPassword(String password) Change password.voidcheckProtocol is automatically donevoidsetProtocol(String protocol) checkProtocol is automatically donevoidsetSshKeyFile(File sshKeyFile) Change ssk key file to use.voidsetWriteable(boolean value) Permit to force repository to read-only if value is false, otherwise use normal rules.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.ifremer.isisfish.vcs.VCS
add, checkFileStatus, checkout, checkProtocol, cleanup, commit, delete, getChanglog, getDiff, getFileList, getLocalStatus, getTag, getUpdatedFile, haveUpdate, isConnected, isOnRemote, isTag, isUpToDate, isValidLocalRepository, isWriteable, setTag, update
-
Field Details
-
listeners
-
localRepository
-
protocol
-
host
-
path
-
sshKeyFile
-
login
-
password
-
writeable
protected boolean writeable
-
-
Constructor Details
-
AbstractVCS
-
-
Method Details
-
addVetoableActionListener
Description copied from interface:VCSAjout un listener pouvant interdire les actions du vcs- Specified by:
addVetoableActionListenerin interfaceVCS- Parameters:
l- listener to add
-
remoteVetoableActionListener
Description copied from interface:VCSSupprime un listener pouvant interdire les actions du vcs- Specified by:
remoteVetoableActionListenerin interfaceVCS- Parameters:
l- listener to remove
-
setWriteable
public void setWriteable(boolean value) Description copied from interface:VCSPermit to force repository to read-only if value is false, otherwise use normal rules.- Specified by:
setWriteablein interfaceVCS- Parameters:
value- writable
-
fireAction
-
getLocalRepository
Description copied from interface:VCSGet local repository directory- Specified by:
getLocalRepositoryin interfaceVCS- Returns:
- local repository
-
setLocalRepository
-
getProtocol
Description copied from interface:VCSGet protocol.- Specified by:
getProtocolin interfaceVCS- Returns:
- protocol
-
setProtocol
checkProtocol is automatically done- Specified by:
setProtocolin interfaceVCS- Parameters:
protocol-- Throws:
VCSException
-
getHost
Description copied from interface:VCSGet host. -
setHost
checkProtocol is automatically done- Specified by:
setHostin interfaceVCS- Parameters:
host-- Throws:
VCSException
-
getPath
Description copied from interface:VCSGet repository path. -
setPath
checkProtocol is automatically done- Specified by:
setPathin interfaceVCS- Parameters:
path-- Throws:
VCSException
-
getSshKeyFile
Description copied from interface:VCSGet ssh key file.- Specified by:
getSshKeyFilein interfaceVCS- Returns:
- ssh key file
-
setSshKeyFile
Description copied from interface:VCSChange ssk key file to use.- Specified by:
setSshKeyFilein interfaceVCS- Parameters:
sshKeyFile- new ssh kay file
-
getLogin
Description copied from interface:VCSGet login. -
setLogin
checkProtocol is automatically done- Specified by:
setLoginin interfaceVCS- Parameters:
login-- Throws:
VCSException
-
getPassword
Description copied from interface:VCSGet password.- Specified by:
getPasswordin interfaceVCS- Returns:
- password
-
setPassword
Description copied from interface:VCSChange password.- Specified by:
setPasswordin interfaceVCS- Parameters:
password- password
-
accept
- Specified by:
acceptin interfaceFileFilter
-
isVersionnableFile
Description copied from interface:VCSCheck if file can be put in vcs repository. For example when you used CVS, you must not put CVS file.default refused .svn, CVS and ~ filename Must be override, this default implementation return true.
- Specified by:
isVersionnableFilein interfaceVCS- Returns:
trueif file is versionnable
-