|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.vcs.AbstractVCS
public abstract class AbstractVCS
Abstract VCS implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface fr.ifremer.isisfish.vcs.VCS |
|---|
VCS.Status |
| Field Summary | |
|---|---|
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
|
| 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 | |
|---|---|
AbstractVCS(File localRepository,
String protocol,
String host,
String path,
File sshKeyFile,
String login,
String password)
|
|
| Method Summary | |
|---|---|
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. |
| 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 Detail |
|---|
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
| Constructor Detail |
|---|
public AbstractVCS(File localRepository,
String protocol,
String host,
String path,
File sshKeyFile,
String login,
String password)
| Method Detail |
|---|
public void addVetoableActionListener(VetoableActionListener l)
VCS
addVetoableActionListener in interface VCSl - listener to addpublic void remoteVetoableActionListener(VetoableActionListener l)
VCS
remoteVetoableActionListener in interface VCSl - listener to removepublic void setWriteable(boolean value)
VCS
setWriteable in interface VCSvalue - writable
protected boolean fireAction(VCSActionEvent e,
File... files)
public File getLocalRepository()
VCS
getLocalRepository in interface VCSpublic void setLocalRepository(File localRepository)
public String getProtocol()
VCS
getProtocol in interface VCS
public void setProtocol(String protocol)
throws VCSException
setProtocol in interface VCSprotocol -
VCSExceptionpublic String getHost()
VCS
getHost in interface VCS
public void setHost(String host)
throws VCSException
setHost in interface VCShost -
VCSExceptionpublic String getPath()
VCS
getPath in interface VCS
public void setPath(String path)
throws VCSException
setPath in interface VCSpath -
VCSExceptionpublic File getSshKeyFile()
VCS
getSshKeyFile in interface VCSpublic void setSshKeyFile(File sshKeyFile)
VCS
setSshKeyFile in interface VCSsshKeyFile - new ssh kay filepublic String getLogin()
VCS
getLogin in interface VCS
public void setLogin(String login)
throws VCSException
setLogin in interface VCSlogin -
VCSExceptionpublic String getPassword()
VCS
getPassword in interface VCSpublic void setPassword(String password)
VCS
setPassword 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 versionnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||