public abstract class AbstractVCS extends Object implements VCS
VCS.Status| Modifier and Type | Field and Description |
|---|---|
protected String |
host |
protected Set<VetoableActionListener> |
listeners |
protected File |
localRepository |
protected String |
login |
protected String |
password |
protected String |
path |
protected String |
protocol |
protected File |
sshKeyFile |
protected boolean |
writeable |
TYPE_CVS, TYPE_NONE, TYPE_SVN, VCS_HOST_NAME, VCS_PATH, VCS_PROTOCOL, VCS_TYPE, VCS_USER_NAME, VCS_USER_PASSWORD| Constructor and Description |
|---|
AbstractVCS(File localRepository,
String protocol,
String host,
String path,
File sshKeyFile,
String login,
String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File pathname) |
void |
addVetoableActionListener(VetoableActionListener l)
Ajout un listener pouvant interdire les actions du vcs
|
protected boolean |
fireAction(VCSActionEvent e,
File... files) |
String |
getHost()
Get host.
|
File |
getLocalRepository()
Get local repository directory
|
String |
getLogin()
Get login.
|
String |
getPassword()
Get password.
|
String |
getPath()
Get repository path.
|
String |
getProtocol()
Get protocol.
|
File |
getSshKeyFile()
Get ssh key file.
|
boolean |
isVersionnableFile(File file)
Check if file can be put in vcs repository.
|
void |
remoteVetoableActionListener(VetoableActionListener l)
Supprime un listener pouvant interdire les actions du vcs
|
void |
setHost(String host)
checkProtocol is automatically done
|
void |
setLocalRepository(File localRepository) |
void |
setLogin(String login)
checkProtocol is automatically done
|
void |
setPassword(String password)
Change password.
|
void |
setPath(String path)
checkProtocol is automatically done
|
void |
setProtocol(String protocol)
checkProtocol is automatically done
|
void |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, checkFileStatus, checkout, checkProtocol, cleanup, commit, delete, getChanglog, getDiff, getFileList, getLocalStatus, getTag, getUpdatedFile, haveUpdate, isConnected, isOnRemote, isTag, isUpToDate, isValidLocalRepository, isWriteable, setTag, updateprotected Set<VetoableActionListener> listeners
protected File localRepository
protected String protocol
protected String host
protected String path
protected File sshKeyFile
protected String login
protected String password
protected boolean writeable
public void addVetoableActionListener(VetoableActionListener l)
VCSaddVetoableActionListener in interface VCSl - listener to addpublic void remoteVetoableActionListener(VetoableActionListener l)
VCSremoteVetoableActionListener in interface VCSl - listener to removepublic void setWriteable(boolean value)
VCSsetWriteable in interface VCSvalue - writableprotected boolean fireAction(VCSActionEvent e, File... files)
public File getLocalRepository()
VCSgetLocalRepository in interface VCSpublic void setLocalRepository(File localRepository)
public String getProtocol()
VCSgetProtocol in interface VCSpublic void setProtocol(String protocol) throws VCSException
setProtocol in interface VCSprotocol - VCSExceptionpublic void setHost(String host) throws VCSException
setHost in interface VCShost - VCSExceptionpublic void setPath(String path) throws VCSException
setPath in interface VCSpath - VCSExceptionpublic File getSshKeyFile()
VCSgetSshKeyFile in interface VCSpublic void setSshKeyFile(File sshKeyFile)
VCSsetSshKeyFile in interface VCSsshKeyFile - new ssh kay filepublic void setLogin(String login) throws VCSException
setLogin in interface VCSlogin - VCSExceptionpublic String getPassword()
VCSgetPassword in interface VCSpublic void setPassword(String password)
VCSsetPassword in interface VCSpassword - passwordpublic boolean accept(File pathname)
accept in interface FileFilterpublic boolean isVersionnableFile(File file)
VCSdefault refused .svn, CVS and ~ filename Must be override, this default implementation return true.
isVersionnableFile in interface VCStrue if file is versionnableCopyright © 1999–2015 CodeLutin. All rights reserved.