Interface InternalSecurityManager
- All Superinterfaces:
org.eclipse.net4j.util.security.AdministrationPredicate,org.eclipse.net4j.util.security.IAuthenticator,org.eclipse.net4j.util.security.IAuthenticator2,org.eclipse.net4j.util.container.IManagedContainerProvider,ISecurityManager,SecurityItemContainer,SecurityItemProvider
public interface InternalSecurityManager
extends ISecurityManager, org.eclipse.net4j.util.container.IManagedContainerProvider
Internal security service bound to a repository. It evaluates operations against a realm, coordinates secondary
repositories and permission caches, and invokes commit handlers around repository writes.
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepository extension invoked before a commit is security-checked and written.static interfaceCommit-handler extension that receives a callback after a commit succeeds, allowing security state to be updated only once the repository has accepted the change.Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.security.ISecurityManager
ISecurityManager.RealmOperation -
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.server.security.ISecurityManager
SYSTEM_USER_ID -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddSecondaryRepository(InternalRepository repository) voidaddSecondaryRepository(InternalRepository repository, Map<String, Object> authorizationContext) Returns the permission-cache generation creator used by this manager.voidvoidremoveSecondaryRepository(InternalRepository repository) voidSets an explicit permission-cache generation creator while this manager is inactive.voidsetRepository(InternalRepository repository) Methods inherited from interface org.eclipse.net4j.util.security.IAuthenticator
authenticateMethods inherited from interface org.eclipse.net4j.util.security.IAuthenticator2
isAdministrator, resetPassword, updatePasswordMethods inherited from interface org.eclipse.net4j.util.container.IManagedContainerProvider
getContainerMethods inherited from interface org.eclipse.emf.cdo.server.security.ISecurityManager
getRealm, getRepository, modify, modify, modifyWithInfo, readMethods inherited from interface org.eclipse.emf.cdo.security.SecurityItemContainer
addGroup, addRole, addUser, addUser, addUser, removeGroup, removeRole, removeUser, setPasswordMethods inherited from interface org.eclipse.emf.cdo.security.SecurityItemProvider
getGroup, getRole, getUser
-
Method Details
-
setRepository
-
getPermissionCacheCreator
PermissionCache.Creator getPermissionCacheCreator()Returns the permission-cache generation creator used by this manager.A creator explicitly supplied through
setPermissionCacheCreator(PermissionCache.Creator)takes precedence over repository properties. Otherwise, the creator is resolved from the repository properties when a repository is assigned. If no permission-cache type is configured, the built-in default type is used.- Since:
- 4.13
-
setPermissionCacheCreator
Sets an explicit permission-cache generation creator while this manager is inactive.An explicitly supplied creator takes precedence over creator type and description configured in the repository properties. If no explicit creator is supplied, the manager resolves its creator from the repository properties when a repository is assigned; an omitted cache type selects the built-in default type.
This method may only be called while the manager is inactive.
- Parameters:
creator- the creator to use for this manager- Since:
- 4.13
-
getSecondaryRepositories
InternalRepository[] getSecondaryRepositories()- Specified by:
getSecondaryRepositoriesin interfaceISecurityManager- Since:
- 4.6
-
addSecondaryRepository
- Since:
- 4.6
-
addSecondaryRepository
- Since:
- 4.10
-
removeSecondaryRepository
- Since:
- 4.6
-
getRealmPath
String getRealmPath() -
getCommitHandlers
InternalSecurityManager.CommitHandler[] getCommitHandlers() -
getCommitHandlers2
InternalSecurityManager.CommitHandler2[] getCommitHandlers2()- Since:
- 4.3
-
addCommitHandler
-
removeCommitHandler
-