Package org.eclipse.emf.cdo.server

# Klasse 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

Alle implementierten Schnittstellen:
  `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`

Bekannte direkte Unterklassen:
  `IRepositoryProtector.AuthorizationStrategy.Additive`, `IRepositoryProtector.AuthorizationStrategy.Constant`, `IRepositoryProtector.AuthorizationStrategy.Subtractive`

Umschließende Schnittstelle:
  `IRepositoryProtector`

public abstract static class IRepositoryProtector.AuthorizationStrategy extends IRepositoryProtector.Element implements BiPredicate<CDOPermission,CDOPermission>

Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static class`
`IRepositoryProtector.AuthorizationStrategy.Additive`
`static class`
`IRepositoryProtector.AuthorizationStrategy.Constant`
`static class`
`IRepositoryProtector.AuthorizationStrategy.Subtractive`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle

`org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier

`org.eclipse.net4j.util.event.INotifier.INotifier2`

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final IRepositoryProtector.AuthorizationStrategy`
`DEFAULT`
The `additive` default authorization strategy.
`static final String`
`DEFAULT_TYPE`
`static final String`
`PRODUCT_GROUP`

### Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle

`USE_LABEL`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`AuthorizationStrategy()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`protected void`
`doBeforeActivate()`
`final CDOPermission`
`getCombinedPermission(CDOPermission currentPermission, CDOPermission newPermission)`
`final CDOPermission`
`getInitialPermission()`
`final CDOPermission`
`getTerminalPermission()`
`final boolean`
`isAuthorizeAttach()`
`final boolean`
`isAuthorizeDetach()`
`final boolean`
`isAuthorizeModify()`
`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)`
Returns `true` if the `newPermission` is supposed to replace the `currentPermission`, `false` otherwise.

### Von Klasse geerbte Methoden org.eclipse.emf.cdo.server.IRepositoryProtector.Element

`checkRepositoryProtector, getContainer, getRepositoryProtector, setRepositoryProtector`

### Von Klasse geerbte Methoden 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`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier

`addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Von Schnittstelle geerbte Methoden java.util.function.BiPredicate

`and, negate, or`

### Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier

`addListener, getListeners, hasListeners, removeListener`

## Felddetails

### PRODUCT_GROUP

public static final String PRODUCT_GROUP

Siehe auch:
  - Konstantenfeldwerte

### DEFAULT_TYPE

public static final String DEFAULT_TYPE

Siehe auch:
  - Konstantenfeldwerte

### DEFAULT

public static final IRepositoryProtector.AuthorizationStrategy DEFAULT
The `additive` default authorization strategy.

## Konstruktordetails

### AuthorizationStrategy

public AuthorizationStrategy()

## Methodendetails

### getInitialPermission

public final CDOPermission getInitialPermission()

### setInitialPermission

public final void setInitialPermission(CDOPermission initialPermission)

### getTerminalPermission

public final CDOPermission getTerminalPermission()

### setTerminalPermission

public final void setTerminalPermission(CDOPermission terminalPermission)

### 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

public abstract boolean test(CDOPermission currentPermission, CDOPermission newPermission)
Returns `true` if the `newPermission` is supposed to replace the `currentPermission`, `false` otherwise.

Angegeben von:
  `test` in Schnittstelle `BiPredicate<CDOPermission,CDOPermission>`

### doBeforeActivate

protected void doBeforeActivate() throws Exception

Setzt außer Kraft:
  `doBeforeActivate` in Klasse `IRepositoryProtector.Element`
Löst aus:
  `Exception`