|
||||||||||
| 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 java.lang.String |
host
|
protected java.util.Set<VetoableActionListener> |
listeners
|
protected java.io.File |
localRepository
|
protected java.lang.String |
login
|
protected java.lang.String |
password
|
protected java.lang.String |
path
|
protected java.lang.String |
protocol
|
protected java.io.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(java.io.File localRepository,
java.lang.String protocol,
java.lang.String host,
java.lang.String path,
java.io.File sshKeyFile,
java.lang.String login,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File pathname)
|
void |
addVetoableActionListener(VetoableActionListener l)
Ajout un listener pouvant interdire les actions du vcs |
protected boolean |
fireAction(VCSActionEvent e,
java.io.File... files)
|
java.lang.String |
getHost()
Get host. |
java.io.File |
getLocalRepository()
Get local repository directory |
java.lang.String |
getLogin()
Get login. |
java.lang.String |
getPassword()
Get password. |
java.lang.String |
getPath()
Get repository path. |
java.lang.String |
getProtocol()
Get protocol. |
java.io.File |
getSshKeyFile()
Get ssh key file. |
boolean |
isVersionnableFile(java.io.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(java.lang.String host)
checkProtocol is automatically done |
void |
setLocalRepository(java.io.File localRepository)
|
void |
setLogin(java.lang.String login)
checkProtocol is automatically done |
void |
setPassword(java.lang.String password)
Change password. |
void |
setPath(java.lang.String path)
checkProtocol is automatically done |
void |
setProtocol(java.lang.String protocol)
checkProtocol is automatically done |
void |
setSshKeyFile(java.io.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 java.util.Set<VetoableActionListener> listeners
protected java.io.File localRepository
protected java.lang.String protocol
protected java.lang.String host
protected java.lang.String path
protected java.io.File sshKeyFile
protected java.lang.String login
protected java.lang.String password
protected boolean writeable
| Constructor Detail |
|---|
public AbstractVCS(java.io.File localRepository,
java.lang.String protocol,
java.lang.String host,
java.lang.String path,
java.io.File sshKeyFile,
java.lang.String login,
java.lang.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,
java.io.File... files)
public java.io.File getLocalRepository()
VCS
getLocalRepository in interface VCSpublic void setLocalRepository(java.io.File localRepository)
public java.lang.String getProtocol()
VCS
getProtocol in interface VCS
public void setProtocol(java.lang.String protocol)
throws VCSException
setProtocol in interface VCSprotocol -
VCSExceptionpublic java.lang.String getHost()
VCS
getHost in interface VCS
public void setHost(java.lang.String host)
throws VCSException
setHost in interface VCShost -
VCSExceptionpublic java.lang.String getPath()
VCS
getPath in interface VCS
public void setPath(java.lang.String path)
throws VCSException
setPath in interface VCSpath -
VCSExceptionpublic java.io.File getSshKeyFile()
VCS
getSshKeyFile in interface VCSpublic void setSshKeyFile(java.io.File sshKeyFile)
VCS
setSshKeyFile in interface VCSsshKeyFile - new ssh kay filepublic java.lang.String getLogin()
VCS
getLogin in interface VCS
public void setLogin(java.lang.String login)
throws VCSException
setLogin in interface VCSlogin -
VCSExceptionpublic java.lang.String getPassword()
VCS
getPassword in interface VCSpublic void setPassword(java.lang.String password)
VCS
setPassword in interface VCSpassword - passwordpublic boolean accept(java.io.File pathname)
accept in interface java.io.FileFilterpublic boolean isVersionnableFile(java.io.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 | |||||||||