Class FSHooks
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSHooks
-
public class FSHooks extends java.lang.Object
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVPROP_ADD
static java.lang.String
REVPROP_DELETE
static java.lang.String
REVPROP_MODIFY
static java.lang.String
SVN_REPOS_HOOK_DESC_EXT
static java.lang.String
SVN_REPOS_HOOK_POST_COMMIT
static java.lang.String
SVN_REPOS_HOOK_POST_LOCK
static java.lang.String
SVN_REPOS_HOOK_POST_REVPROP_CHANGE
static java.lang.String
SVN_REPOS_HOOK_POST_UNLOCK
static java.lang.String
SVN_REPOS_HOOK_PRE_COMMIT
static java.lang.String
SVN_REPOS_HOOK_PRE_LOCK
static java.lang.String
SVN_REPOS_HOOK_PRE_REVPROP_CHANGE
static java.lang.String
SVN_REPOS_HOOK_PRE_UNLOCK
static java.lang.String
SVN_REPOS_HOOK_READ_SENTINEL
static java.lang.String
SVN_REPOS_HOOK_START_COMMIT
static java.lang.String
SVN_REPOS_HOOK_WRITE_SENTINEL
static java.lang.String
SVN_REPOS_HOOKS_DIR
-
Constructor Summary
Constructors Constructor Description FSHooks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isHooksEnabled()
static void
runPostCommitHook(java.io.File reposRootDir, long committedRevision)
static void
runPostLockHook(java.io.File reposRootDir, java.lang.String[] paths, java.lang.String username)
static void
runPostRevPropChangeHook(java.io.File reposRootDir, java.lang.String propName, byte[] propOldValue, java.lang.String author, long revision, java.lang.String action)
static void
runPostUnlockHook(java.io.File reposRootDir, java.lang.String[] paths, java.lang.String username)
static void
runPreCommitHook(java.io.File reposRootDir, java.lang.String txnName)
static java.lang.String
runPreLockHook(java.io.File reposRootDir, java.lang.String path, java.lang.String username, java.lang.String comment, boolean stealLock)
static void
runPreRevPropChangeHook(java.io.File reposRootDir, java.lang.String propName, byte[] propNewValue, java.lang.String author, long revision, java.lang.String action)
static void
runPreUnlockHook(java.io.File reposRootDir, java.lang.String path, java.lang.String username)
static void
runStartCommitHook(java.io.File reposRootDir, java.lang.String author, java.util.List<?> capabilities)
static void
setHooksEnabled(boolean enabled)
-
-
-
Field Detail
-
SVN_REPOS_HOOK_START_COMMIT
public static final java.lang.String SVN_REPOS_HOOK_START_COMMIT
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_PRE_COMMIT
public static final java.lang.String SVN_REPOS_HOOK_PRE_COMMIT
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_POST_COMMIT
public static final java.lang.String SVN_REPOS_HOOK_POST_COMMIT
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_PRE_REVPROP_CHANGE
public static final java.lang.String SVN_REPOS_HOOK_PRE_REVPROP_CHANGE
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_POST_REVPROP_CHANGE
public static final java.lang.String SVN_REPOS_HOOK_POST_REVPROP_CHANGE
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_PRE_LOCK
public static final java.lang.String SVN_REPOS_HOOK_PRE_LOCK
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_POST_LOCK
public static final java.lang.String SVN_REPOS_HOOK_POST_LOCK
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_PRE_UNLOCK
public static final java.lang.String SVN_REPOS_HOOK_PRE_UNLOCK
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_POST_UNLOCK
public static final java.lang.String SVN_REPOS_HOOK_POST_UNLOCK
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_READ_SENTINEL
public static final java.lang.String SVN_REPOS_HOOK_READ_SENTINEL
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_WRITE_SENTINEL
public static final java.lang.String SVN_REPOS_HOOK_WRITE_SENTINEL
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOK_DESC_EXT
public static final java.lang.String SVN_REPOS_HOOK_DESC_EXT
- See Also:
- Constant Field Values
-
SVN_REPOS_HOOKS_DIR
public static final java.lang.String SVN_REPOS_HOOKS_DIR
- See Also:
- Constant Field Values
-
REVPROP_DELETE
public static final java.lang.String REVPROP_DELETE
- See Also:
- Constant Field Values
-
REVPROP_ADD
public static final java.lang.String REVPROP_ADD
- See Also:
- Constant Field Values
-
REVPROP_MODIFY
public static final java.lang.String REVPROP_MODIFY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHooksEnabled
public static void setHooksEnabled(boolean enabled)
-
isHooksEnabled
public static boolean isHooksEnabled()
-
runPreLockHook
public static java.lang.String runPreLockHook(java.io.File reposRootDir, java.lang.String path, java.lang.String username, java.lang.String comment, boolean stealLock) throws SVNException
- Throws:
SVNException
-
runPostLockHook
public static void runPostLockHook(java.io.File reposRootDir, java.lang.String[] paths, java.lang.String username) throws SVNException
- Throws:
SVNException
-
runPreUnlockHook
public static void runPreUnlockHook(java.io.File reposRootDir, java.lang.String path, java.lang.String username) throws SVNException
- Throws:
SVNException
-
runPostUnlockHook
public static void runPostUnlockHook(java.io.File reposRootDir, java.lang.String[] paths, java.lang.String username) throws SVNException
- Throws:
SVNException
-
runPreRevPropChangeHook
public static void runPreRevPropChangeHook(java.io.File reposRootDir, java.lang.String propName, byte[] propNewValue, java.lang.String author, long revision, java.lang.String action) throws SVNException
- Throws:
SVNException
-
runPostRevPropChangeHook
public static void runPostRevPropChangeHook(java.io.File reposRootDir, java.lang.String propName, byte[] propOldValue, java.lang.String author, long revision, java.lang.String action) throws SVNException
- Throws:
SVNException
-
runStartCommitHook
public static void runStartCommitHook(java.io.File reposRootDir, java.lang.String author, java.util.List<?> capabilities) throws SVNException
- Throws:
SVNException
-
runPreCommitHook
public static void runPreCommitHook(java.io.File reposRootDir, java.lang.String txnName) throws SVNException
- Throws:
SVNException
-
runPostCommitHook
public static void runPostCommitHook(java.io.File reposRootDir, long committedRevision) throws SVNException
- Throws:
SVNException
-
-