|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc.DefaultSVNCommitHandler
public class DefaultSVNCommitHandler
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.
ISVNCommitHandler
Constructor Summary | |
---|---|
DefaultSVNCommitHandler()
|
Method Summary | |
---|---|
java.lang.String |
getCommitMessage(java.lang.String message,
SVNCommitItem[] commitables)
Returns the message itself without any modifications to it
or "" if the message is null. |
SVNProperties |
getRevisionProperties(java.lang.String message,
SVNCommitItem[] commitables,
SVNProperties revisionProperties)
Returns revisionProperties as is if it's not null, or
an empty SVNProperties object if revisionProperties is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSVNCommitHandler()
Method Detail |
---|
public java.lang.String getCommitMessage(java.lang.String message, SVNCommitItem[] commitables) throws SVNException
message
itself without any modifications to it
or ""
if the message
is null.
In other words this method does nothing except of replacing null
for ""
.
getCommitMessage
in interface ISVNCommitHandler
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
""
if the message is null
SVNException
public SVNProperties getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
revisionProperties
as is if it's not null, or
an empty SVNProperties
object if revisionProperties
is null.
getRevisionProperties
in interface ISVNCommitHandler
message
- log message for commitcommitables
- paths to commitrevisionProperties
- initial revision properties to set
revisionProperties
itself or an empty SVNProperties
object if revisionProperties
is null
SVNException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |