Interface InternalSecurityManager.CommitHandler
- All Known Subinterfaces:
InternalSecurityManager.CommitHandler2
- All Known Implementing Classes:
AnnotationHandler,HomeFolderHandler,InternalSecurityManager.CommitHandler2.WithUser
- Enclosing interface:
InternalSecurityManager
public static interface InternalSecurityManager.CommitHandler
Repository extension invoked before a commit is security-checked and written. Implementations can inspect or
prepare security-related state for the committing user.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCreatesInternalSecurityManager.CommitHandlerinstances. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user) Called before the commit is security checked and passed to the repository.voidinit(InternalSecurityManager securityManager, boolean firstTime)
-
Method Details
-
init
-
handleCommit
void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user) Called before the commit is security checked and passed to the repository.- Parameters:
user- the committing user ornullif this commit istriggeredby the system.- See Also:
-