Class SvnCodec.SvnCommitHandlerWithFilter
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc2.compat.SvnCodec.SvnCommitHandlerWithFilter
-
- All Implemented Interfaces:
ISvnCommitHandler,ISvnFileFilter
- Enclosing class:
- SvnCodec
private static class SvnCodec.SvnCommitHandlerWithFilter extends java.lang.Object implements ISvnCommitHandler, ISvnFileFilter
-
-
Field Summary
Fields Modifier and Type Field Description private ISVNCommitHandlertargetHandler
-
Constructor Summary
Constructors Constructor Description SvnCommitHandlerWithFilter(ISVNCommitHandler target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File file)java.lang.StringgetCommitMessage(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.SVNPropertiesgetRevisionProperties(java.lang.String message, SvnCommitItem[] commitables, SVNProperties revisionProperties)Handles the incoming revision properties and returns filtered revision properties given the paths (represented bycommitables) collected for committing and the commit log message.
-
-
-
Field Detail
-
targetHandler
private final ISVNCommitHandler targetHandler
-
-
Constructor Detail
-
SvnCommitHandlerWithFilter
public SvnCommitHandlerWithFilter(ISVNCommitHandler target)
-
-
Method Detail
-
accept
public boolean accept(java.io.File file) throws SVNException- Specified by:
acceptin interfaceISvnFileFilter- Throws:
SVNException
-
getRevisionProperties
public SVNProperties getRevisionProperties(java.lang.String message, SvnCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
Description copied from interface:ISvnCommitHandlerHandles the incoming revision properties and returns filtered revision properties given the paths (represented bycommitables) collected for committing and the commit log message.Only the returned filtered revision properties will be set on a new committed revision.
- Specified by:
getRevisionPropertiesin interfaceISvnCommitHandler- Parameters:
message- log message for commitcommitables- paths to commitrevisionProperties- initial revision properties- Returns:
- filtered revision properties
- Throws:
SVNException
-
getCommitMessage
public java.lang.String getCommitMessage(java.lang.String message, SvnCommitItem[] commitables) throws SVNExceptionDescription copied from interface:ISvnCommitHandlerHandles the incoming initial log message and items intended for a commit and returns a new commit log message.- Specified by:
getCommitMessagein interfaceISvnCommitHandler- Parameters:
message- an initial log messagecommitables- an array of items to be committed- Returns:
- a new log message string or
nullto cancel commit operation. - Throws:
SVNException
-
-