Class HomeFolderHandler
- java.lang.Object
-
- org.eclipse.emf.cdo.server.spi.security.HomeFolderHandler
-
- All Implemented Interfaces:
InternalSecurityManager.CommitHandler,InternalSecurityManager.CommitHandler2,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
public class HomeFolderHandler extends java.lang.Object implements InternalSecurityManager.CommitHandler2, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
If the meaning of this type isn't clear, there really should be more of a description here...- Since:
- 4.3
- Author:
- Eike Stepper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHomeFolderHandler.FactoryCreatesInternalSecurityManager.CommitHandlerinstances.-
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.spi.security.InternalSecurityManager.CommitHandler2
InternalSecurityManager.CommitHandler2.WithUser
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_HOME_FOLDER
-
Constructor Summary
Constructors Constructor Description HomeFolderHandler()HomeFolderHandler(java.lang.String homeFolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ExecutorServicegetExecutorService()java.lang.StringgetHomeFolder()voidhandleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)Called before the commit is security checked and passed to the repository.voidhandleCommitted(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext)Called after the commit has succeeded.protected voidhandleUser(CDOTransaction transaction, Realm realm, Role role, User user)protected voidhandleUsers(InternalSecurityManager securityManager, java.util.List<java.lang.String> userIDs, boolean init)voidinit(InternalSecurityManager securityManager, boolean firstTime)protected voidinitRole(Role role)voidsetExecutorService(java.util.concurrent.ExecutorService executorService)java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_HOME_FOLDER
public static final java.lang.String DEFAULT_HOME_FOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHomeFolder
public java.lang.String getHomeFolder()
-
getExecutorService
public java.util.concurrent.ExecutorService getExecutorService()
- Specified by:
getExecutorServicein interfaceorg.eclipse.net4j.util.concurrent.IExecutorServiceProvider
-
setExecutorService
public void setExecutorService(java.util.concurrent.ExecutorService executorService)
-
init
public void init(InternalSecurityManager securityManager, boolean firstTime)
- Specified by:
initin interfaceInternalSecurityManager.CommitHandler
-
initRole
protected void initRole(Role role)
-
handleCommit
public void handleCommit(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext, User user)
Description copied from interface:InternalSecurityManager.CommitHandlerCalled before the commit is security checked and passed to the repository.- Specified by:
handleCommitin interfaceInternalSecurityManager.CommitHandleruser- the committing user ornullif this commit istriggeredby the system.- See Also:
InternalSecurityManager.CommitHandler2
-
handleCommitted
public void handleCommitted(InternalSecurityManager securityManager, IStoreAccessor.CommitContext commitContext)
Description copied from interface:InternalSecurityManager.CommitHandler2Called after the commit has succeeded.- Specified by:
handleCommittedin interfaceInternalSecurityManager.CommitHandler2
-
handleUsers
protected void handleUsers(InternalSecurityManager securityManager, java.util.List<java.lang.String> userIDs, boolean init)
-
handleUser
protected void handleUser(CDOTransaction transaction, Realm realm, Role role, User user) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-