Package org.eclipse.emf.cdo.server
Class IRepositoryProtector.AuthorizationStrategy.Constant
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.server.IRepositoryProtector.Element
org.eclipse.emf.cdo.server.IRepositoryProtector.AuthorizationStrategy
org.eclipse.emf.cdo.server.IRepositoryProtector.AuthorizationStrategy.Constant
- All Implemented Interfaces:
BiPredicate<CDOPermission,,CDOPermission> org.eclipse.net4j.util.container.IManagedContainerProvider,org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.event.INotifier.INotifier2,org.eclipse.net4j.util.lifecycle.IDeactivateable,org.eclipse.net4j.util.lifecycle.ILifecycle,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
- Direct Known Subclasses:
IRepositoryProtector.AuthorizationStrategy.Constant.None,IRepositoryProtector.AuthorizationStrategy.Constant.Read,IRepositoryProtector.AuthorizationStrategy.Constant.Write
- Enclosing class:
- IRepositoryProtector.AuthorizationStrategy
public static class IRepositoryProtector.AuthorizationStrategy.Constant
extends IRepositoryProtector.AuthorizationStrategy
- Since:
- 4.23
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class org.eclipse.emf.cdo.server.IRepositoryProtector.AuthorizationStrategy
IRepositoryProtector.AuthorizationStrategy.Additive, IRepositoryProtector.AuthorizationStrategy.Constant, IRepositoryProtector.AuthorizationStrategy.SubtractiveNested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Field Summary
Fields inherited from class org.eclipse.emf.cdo.server.IRepositoryProtector.AuthorizationStrategy
DEFAULT, DEFAULT_TYPE, PRODUCT_GROUPFields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(CDOPermission currentPermission, CDOPermission newPermission) Returnstrueif thenewPermissionis supposed to replace thecurrentPermission,falseotherwise.Methods inherited from class org.eclipse.emf.cdo.server.IRepositoryProtector.AuthorizationStrategy
doBeforeActivate, getCombinedPermission, getInitialPermission, getTerminalPermission, isAuthorizeAttach, isAuthorizeDetach, isAuthorizeModify, setAuthorizeAttach, setAuthorizeDetach, setAuthorizeModify, setInitialPermission, setTerminalPermissionMethods inherited from class org.eclipse.emf.cdo.server.IRepositoryProtector.Element
checkRepositoryProtector, getContainer, getRepositoryProtector, setRepositoryProtectorMethods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, orMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
Constant
-
-
Method Details
-
test
Description copied from class:IRepositoryProtector.AuthorizationStrategyReturnstrueif thenewPermissionis supposed to replace thecurrentPermission,falseotherwise.- Specified by:
testin interfaceBiPredicate<CDOPermission,CDOPermission> - Specified by:
testin classIRepositoryProtector.AuthorizationStrategy
-