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
Modifier and TypeFieldDescriptionprotected String
protected Set<VetoableActionListener>
protected File
protected String
protected String
protected String
protected String
protected File
protected boolean
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Ajout un listener pouvant interdire les actions du vcsprotected boolean
fireAction
(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.boolean
isVersionnableFile
(File file) Check if file can be put in vcs repository.void
Supprime un listener pouvant interdire les actions du vcsvoid
checkProtocol is automatically donevoid
setLocalRepository
(File localRepository) void
checkProtocol is automatically donevoid
setPassword
(String password) Change password.void
checkProtocol is automatically donevoid
setProtocol
(String protocol) checkProtocol is automatically donevoid
setSshKeyFile
(File sshKeyFile) Change ssk key file to use.void
setWriteable
(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, wait
Methods 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:VCS
Ajout un listener pouvant interdire les actions du vcs- Specified by:
addVetoableActionListener
in interfaceVCS
- Parameters:
l
- listener to add
-
remoteVetoableActionListener
Description copied from interface:VCS
Supprime un listener pouvant interdire les actions du vcs- Specified by:
remoteVetoableActionListener
in interfaceVCS
- Parameters:
l
- listener to remove
-
setWriteable
public void setWriteable(boolean value) Description copied from interface:VCS
Permit to force repository to read-only if value is false, otherwise use normal rules.- Specified by:
setWriteable
in interfaceVCS
- Parameters:
value
- writable
-
fireAction
-
getLocalRepository
Description copied from interface:VCS
Get local repository directory- Specified by:
getLocalRepository
in interfaceVCS
- Returns:
- local repository
-
setLocalRepository
-
getProtocol
Description copied from interface:VCS
Get protocol.- Specified by:
getProtocol
in interfaceVCS
- Returns:
- protocol
-
setProtocol
checkProtocol is automatically done- Specified by:
setProtocol
in interfaceVCS
- Parameters:
protocol
-- Throws:
VCSException
-
getHost
Description copied from interface:VCS
Get host. -
setHost
checkProtocol is automatically done- Specified by:
setHost
in interfaceVCS
- Parameters:
host
-- Throws:
VCSException
-
getPath
Description copied from interface:VCS
Get repository path. -
setPath
checkProtocol is automatically done- Specified by:
setPath
in interfaceVCS
- Parameters:
path
-- Throws:
VCSException
-
getSshKeyFile
Description copied from interface:VCS
Get ssh key file.- Specified by:
getSshKeyFile
in interfaceVCS
- Returns:
- ssh key file
-
setSshKeyFile
Description copied from interface:VCS
Change ssk key file to use.- Specified by:
setSshKeyFile
in interfaceVCS
- Parameters:
sshKeyFile
- new ssh kay file
-
getLogin
Description copied from interface:VCS
Get login. -
setLogin
checkProtocol is automatically done- Specified by:
setLogin
in interfaceVCS
- Parameters:
login
-- Throws:
VCSException
-
getPassword
Description copied from interface:VCS
Get password.- Specified by:
getPassword
in interfaceVCS
- Returns:
- password
-
setPassword
Description copied from interface:VCS
Change password.- Specified by:
setPassword
in interfaceVCS
- Parameters:
password
- password
-
accept
- Specified by:
accept
in interfaceFileFilter
-
isVersionnableFile
Description copied from interface:VCS
Check 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:
isVersionnableFile
in interfaceVCS
- Returns:
true
if file is versionnable
-