private static class SvnCodec.SvnCommitHandlerWithFilter extends java.lang.Object implements ISvnCommitHandler, ISvnFileFilter
Modifier and Type | Field and Description |
---|---|
private ISVNCommitHandler |
targetHandler |
Constructor and Description |
---|
SvnCommitHandlerWithFilter(ISVNCommitHandler target) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file) |
java.lang.String |
getCommitMessage(java.lang.String message,
SvnCommitItem[] commitables)
Handles the incoming initial log message and items intended for a commit and
returns a new commit log message.
|
SVNProperties |
getRevisionProperties(java.lang.String message,
SvnCommitItem[] commitables,
SVNProperties revisionProperties)
Handles the incoming revision properties and returns filtered revision properties given the paths
(represented by
commitables ) collected for committing and the commit log message. |
private final ISVNCommitHandler targetHandler
public SvnCommitHandlerWithFilter(ISVNCommitHandler target)
public boolean accept(java.io.File file) throws SVNException
accept
in interface ISvnFileFilter
SVNException
public SVNProperties getRevisionProperties(java.lang.String message, SvnCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
ISvnCommitHandler
commitables
) collected for committing and the commit log message.
Only the returned filtered revision properties will be set on a new committed revision.
getRevisionProperties
in interface ISvnCommitHandler
message
- log message for commitcommitables
- paths to commitrevisionProperties
- initial revision propertiesSVNException
public java.lang.String getCommitMessage(java.lang.String message, SvnCommitItem[] commitables) throws SVNException
ISvnCommitHandler
getCommitMessage
in interface ISvnCommitHandler
message
- an initial log messagecommitables
- an array of items to be committednull
to cancel commit operation.SVNException