public class HomeFolderHandler extends Object implements InternalSecurityManager.CommitHandler2, IExecutorServiceProvider
Modifier and Type | Class and Description |
---|---|
static class |
HomeFolderHandler.Factory
Creates
InternalSecurityManager.CommitHandler instances. |
InternalSecurityManager.CommitHandler2.WithUser
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOME_FOLDER |
Constructor and Description |
---|
HomeFolderHandler() |
HomeFolderHandler(String homeFolder) |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getExecutorService() |
String |
getHomeFolder() |
void |
handleCommit(InternalSecurityManager securityManager,
IStoreAccessor.CommitContext commitContext,
User user)
Called before the commit is security checked and passed to the repository.
|
void |
handleCommitted(InternalSecurityManager securityManager,
IStoreAccessor.CommitContext commitContext)
Called after the commit has succeeded.
|
protected void |
handleUser(CDOTransaction transaction,
Realm realm,
Role role,
User user) |
protected void |
handleUsers(InternalSecurityManager securityManager,
List<String> userIDs,
boolean init) |
void |
init(InternalSecurityManager securityManager,
boolean firstTime) |
protected void |
initRole(Role role) |
void |
setExecutorService(ExecutorService executorService) |
String |
toString() |
public static final String DEFAULT_HOME_FOLDER
public HomeFolderHandler(String homeFolder)
public HomeFolderHandler()
public String getHomeFolder()
public ExecutorService getExecutorService()
getExecutorService
in interface IExecutorServiceProvider
public void setExecutorService(ExecutorService executorService)
public void init(InternalSecurityManager securityManager, boolean firstTime)
init
in interface InternalSecurityManager.CommitHandler
protected void initRole(Role role)
public void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)
InternalSecurityManager.CommitHandler
handleCommit
in interface InternalSecurityManager.CommitHandler
user
- the committing user or null
if this commit is
triggered
by the system.InternalSecurityManager.CommitHandler2
public void handleCommitted(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext)
InternalSecurityManager.CommitHandler2
handleCommitted
in interface InternalSecurityManager.CommitHandler2
protected void handleUsers(InternalSecurityManager securityManager, List<String> userIDs, boolean init)
protected void handleUser(CDOTransaction transaction, Realm realm, Role role, User user) throws Exception
Exception
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.