Class SVNNotificationHandler
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.SVNNotificationHandler
-
public abstract class SVNNotificationHandler extends java.lang.ObjectNotification handler : It sends notifications to all listeners
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FilebaseDirprotected intcommandprotected booleanlogEnabledprotected java.util.Setnotifylisteners
-
Constructor Summary
Constructors Constructor Description SVNNotificationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ISVNNotifyListener listener)Add a notification listenervoiddisableLog()disable all loggingvoidenableLog()restore loggingvoidlogCommandLine(java.lang.String commandLine)log the command linevoidlogCompleted(java.lang.String message)voidlogError(java.lang.String message)voidlogException(java.lang.Exception clientException)To call when a method of ClientAdapter throw an exceptionvoidlogMessage(java.lang.String message)voidlogRevision(long revision, java.lang.String path)voidnotifyListenersOfChange(java.lang.String path)voidnotifyListenersOfChange(java.lang.String path, SVNNodeKind kind)voidremove(ISVNNotifyListener listener)Remove a notification listenervoidsetBaseDir()voidsetBaseDir(java.io.File baseDir)set the baseDir : directory to use as base directory when path is relativevoidsetCommand(int command)set the commandprotected booleanskipCommand()For certain commands we just want to skip the logging of the command line
-
-
-
Method Detail
-
add
public void add(ISVNNotifyListener listener)
Add a notification listener- Parameters:
listener-
-
remove
public void remove(ISVNNotifyListener listener)
Remove a notification listener- Parameters:
listener-
-
enableLog
public void enableLog()
restore logging
-
disableLog
public void disableLog()
disable all logging
-
logMessage
public void logMessage(java.lang.String message)
-
logError
public void logError(java.lang.String message)
-
logRevision
public void logRevision(long revision, java.lang.String path)
-
logCompleted
public void logCompleted(java.lang.String message)
-
setCommand
public void setCommand(int command)
set the command- Parameters:
command-
-
logCommandLine
public void logCommandLine(java.lang.String commandLine)
log the command line- Parameters:
commandLine-
-
logException
public void logException(java.lang.Exception clientException)
To call when a method of ClientAdapter throw an exception- Parameters:
clientException-
-
setBaseDir
public void setBaseDir(java.io.File baseDir)
set the baseDir : directory to use as base directory when path is relative- Parameters:
baseDir-
-
setBaseDir
public void setBaseDir()
-
notifyListenersOfChange
public void notifyListenersOfChange(java.lang.String path)
-
notifyListenersOfChange
public void notifyListenersOfChange(java.lang.String path, SVNNodeKind kind)
-
skipCommand
protected boolean skipCommand()
For certain commands we just want to skip the logging of the command line
-
-