Package org.tmatesoft.svn.core.wc
Class DefaultSVNCommitHandler
- java.lang.Object
-
- org.tmatesoft.svn.core.wc.DefaultSVNCommitHandler
-
- All Implemented Interfaces:
ISVNCommitHandler
public class DefaultSVNCommitHandler extends java.lang.Object implements ISVNCommitHandler
This is a default implementation for ISVNCommitHandler.Since methods of those SVN*Client classes that can initiate a commit operation use ISVNCommitHandler to process user's commit log messages there should be a default implementation. If no special implementation of ISVNCommitHandler is provided into those classes then DefaultSVNCommitHandler is the one that is used by default.
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
- See Also:
ISVNCommitHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultSVNCommitHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommitMessage(java.lang.String message, SVNCommitItem[] commitables)Returns themessageitself without any modifications to it or""if themessageis null.SVNPropertiesgetRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties)ReturnsrevisionPropertiesas is if it's not null, or an emptySVNPropertiesobject ifrevisionPropertiesis null.
-
-
-
Method Detail
-
getCommitMessage
public java.lang.String getCommitMessage(java.lang.String message, SVNCommitItem[] commitables) throws SVNExceptionReturns themessageitself without any modifications to it or""if themessageis null.In other words this method does nothing except of replacing null for
"".- Specified by:
getCommitMessagein interfaceISVNCommitHandler- Parameters:
message- a user's initial commit log messagecommitables- an array of SVNCommitItem objects that represent Working Copy items which have local modifications and so need to be committed to the repository- Returns:
- the user's initial commit log message or
""if the message is null - Throws:
SVNException
-
getRevisionProperties
public SVNProperties getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
ReturnsrevisionPropertiesas is if it's not null, or an emptySVNPropertiesobject ifrevisionPropertiesis null.- Specified by:
getRevisionPropertiesin interfaceISVNCommitHandler- Parameters:
message- log message for commitcommitables- paths to commitrevisionProperties- initial revision properties to set- Returns:
revisionPropertiesitself or an emptySVNPropertiesobject ifrevisionPropertiesis null- Throws:
SVNException
-
-