
public class HomeFolderHandler extends Object implements InternalSecurityManager.CommitHandler2
| Modifier and Type | Class and Description |
|---|---|
static class |
HomeFolderHandler.Factory |
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()
public void setExecutorService(ExecutorService executorService)
public void init(InternalSecurityManager securityManager, boolean firstTime)
init in interface InternalSecurityManager.CommitHandlerprotected void initRole(Role role)
public void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)
InternalSecurityManager.CommitHandlerhandleCommit in interface InternalSecurityManager.CommitHandleruser - the committing user or null if this commit is
triggered by the system.InternalSecurityManager.CommitHandler2public void handleCommitted(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext)
InternalSecurityManager.CommitHandler2handleCommitted in interface InternalSecurityManager.CommitHandler2protected void handleUsers(InternalSecurityManager securityManager, List<String> userIDs, boolean init)
protected void handleUser(CDOTransaction transaction, Realm realm, Role role, User user) throws Exception
ExceptionCopyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.