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, wait
add, checkFileStatus, checkout, checkProtocol, cleanup, commit, delete, getChanglog, getDiff, getFileList, getLocalStatus, getTag, getUpdatedFile, haveUpdate, isConnected, isOnRemote, isTag, isUpToDate, isValidLocalRepository, isWriteable, setTag, update
protected 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)
VCS
addVetoableActionListener
in interface VCS
l
- listener to addpublic void remoteVetoableActionListener(VetoableActionListener l)
VCS
remoteVetoableActionListener
in interface VCS
l
- listener to removepublic void setWriteable(boolean value)
VCS
setWriteable
in interface VCS
value
- writableprotected boolean fireAction(VCSActionEvent e, File... files)
public File getLocalRepository()
VCS
getLocalRepository
in interface VCS
public void setLocalRepository(File localRepository)
public String getProtocol()
VCS
getProtocol
in interface VCS
public void setProtocol(String protocol) throws VCSException
setProtocol
in interface VCS
protocol
- VCSException
public void setHost(String host) throws VCSException
setHost
in interface VCS
host
- VCSException
public void setPath(String path) throws VCSException
setPath
in interface VCS
path
- VCSException
public File getSshKeyFile()
VCS
getSshKeyFile
in interface VCS
public void setSshKeyFile(File sshKeyFile)
VCS
setSshKeyFile
in interface VCS
sshKeyFile
- new ssh kay filepublic void setLogin(String login) throws VCSException
setLogin
in interface VCS
login
- VCSException
public String getPassword()
VCS
getPassword
in interface VCS
public void setPassword(String password)
VCS
setPassword
in interface VCS
password
- passwordpublic boolean accept(File pathname)
accept
in interface FileFilter
public boolean isVersionnableFile(File file)
VCS
default refused .svn, CVS and ~ filename Must be override, this default implementation return true.
isVersionnableFile
in interface VCS
true
if file is versionnableCopyright © 1999–2020 CodeLutin. All rights reserved.