Package org.eclipse.emf.cdo.server
Class IRepositoryProtector.AuthorizationStrategy
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
- 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.Additive
,IRepositoryProtector.AuthorizationStrategy.Subtractive
- Enclosing interface:
- IRepositoryProtector
public abstract static class IRepositoryProtector.AuthorizationStrategy
extends IRepositoryProtector.Element
implements BiPredicate<CDOPermission,CDOPermission>
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IRepositoryProtector.AuthorizationStrategy
Theadditive
default authorization strategy.static final String
static final String
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
final CDOPermission
getCombinedPermission
(CDOPermission currentPermission, CDOPermission newPermission) final CDOPermission
final CDOPermission
final boolean
final boolean
final boolean
final void
setAuthorizeAttach
(boolean authorizeAttach) final void
setAuthorizeDetach
(boolean authorizeDetach) final void
setAuthorizeModify
(boolean authorizeModify) final void
setInitialPermission
(CDOPermission initialPermission) final void
setTerminalPermission
(CDOPermission terminalPermission) abstract boolean
test
(CDOPermission currentPermission, CDOPermission newPermission) Methods inherited from class org.eclipse.emf.cdo.server.IRepositoryProtector.Element
checkRepositoryProtector, getContainer, getRepositoryProtector, setRepositoryProtector
Methods 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, toString
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
PRODUCT_GROUP
- See Also:
-
DEFAULT_TYPE
- See Also:
-
DEFAULT
Theadditive
default authorization strategy.
-
-
Constructor Details
-
AuthorizationStrategy
public AuthorizationStrategy()
-
-
Method Details
-
getInitialPermission
-
setInitialPermission
-
getTerminalPermission
-
setTerminalPermission
-
isAuthorizeAttach
public final boolean isAuthorizeAttach() -
setAuthorizeAttach
public final void setAuthorizeAttach(boolean authorizeAttach) -
isAuthorizeModify
public final boolean isAuthorizeModify() -
setAuthorizeModify
public final void setAuthorizeModify(boolean authorizeModify) -
isAuthorizeDetach
public final boolean isAuthorizeDetach() -
setAuthorizeDetach
public final void setAuthorizeDetach(boolean authorizeDetach) -
getCombinedPermission
public final CDOPermission getCombinedPermission(CDOPermission currentPermission, CDOPermission newPermission) -
test
- Specified by:
test
in interfaceBiPredicate<CDOPermission,
CDOPermission>
-
doBeforeActivate
- Overrides:
doBeforeActivate
in classIRepositoryProtector.Element
- Throws:
Exception
-