Package org.eclipse.emf.cdo.server

# Klasse CDOServerUtil

java.lang.Object
org.eclipse.emf.cdo.server.CDOServerUtil

public final class CDOServerUtil extends Object
Various static methods that may help with CDO `repositories` and server-side `views`.

Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static class`
`CDOServerUtil.RepositoryReadAccessValidator`
An abstract `read-access handler` that grants or denies access to single `revisions`.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static void`
`addRepository(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository)`
`static ISynchronizableRepository`
`createFailoverParticipant(String name, IStore store, Map<String,String> props)`
`static ISynchronizableRepository`
`createFailoverParticipant(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer)`
`static ISynchronizableRepository`
`createFailoverParticipant(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer, boolean master)`
`static ISynchronizableRepository`
`createFailoverParticipant(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer, boolean master, boolean allowBackupCommits)`
`static ISynchronizableRepository`
`createOfflineClone(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer)`
`static IRepository`
`createRepository(String name, IStore store, Map<String,String> props)`
`static IRepositorySynchronizer`
`createRepositorySynchronizer(CDOSessionConfigurationFactory remoteSessionConfigurationFactory)`
`static ISessionManager`
`createSessionManager()`
`static void`
`execute(ISession context, Runnable runnable)`
`static void`
`execute(CDOSession context, Consumer<ISession> consumer)`
`static IRepository`
`getRepository(String uuid)`
`static IRepository`
`getRepository(CDOSession session)`
`static IRepository`
`getRepository(org.eclipse.net4j.util.container.IManagedContainer container, String name)`
`static Element`
`getRepositoryConfig(String repositoryName)`
`static ISession`
`getServerSession(CDOSession session)`
`static ISession`
`getServerSession(CDOView view)`
`static ITransaction`
`getServerTransaction(CDOTransaction transaction)`
`static IView`
`getServerView(CDOView view)`
`static CDOView`
`openView(ISession session, CDOBranchPoint branchPoint)`
`static CDOView`
`openView(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled)`
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(ISession, CDOBranchPoint)`.
`static CDOView`
`openView(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled, CDORevisionProvider revisionProvider)`
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(ISession, CDOBranchPoint, CDORevisionProvider)`.
`static CDOView`
`openView(ISession session, CDOBranchPoint branchPoint, CDORevisionProvider revisionProvider)`
`static CDOView`
`openView(IStoreAccessor.CommitContext commitContext)`
`static CDOView`
`openView(IStoreAccessor.CommitContext commitContext, boolean legacyModeEnabled)`
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(IStoreAccessor.CommitContext)`.
`static CDOView`
`openView(IView view)`
`static CDOView`
`openView(IView view, boolean legacyModeEnabled)`
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(IView)`.
`static void`
`prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container)`

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

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

## Methodendetails

### prepareContainer

public static void prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container)

Seit:
  4.20

### openView

public static CDOView openView(ISession session, CDOBranchPoint branchPoint, CDORevisionProvider revisionProvider)

Seit:
  4.2

### openView

public static CDOView openView(ISession session, CDOBranchPoint branchPoint)

Seit:
  4.2

### openView

public static CDOView openView(IView view)

Seit:
  4.2

### openView

public static CDOView openView(IStoreAccessor.CommitContext commitContext)

Seit:
  4.2

### openView

@Deprecated public static CDOView openView(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled, CDORevisionProvider revisionProvider)
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(ISession, CDOBranchPoint, CDORevisionProvider)`.

Seit:
  4.0

### openView

@Deprecated public static CDOView openView(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled)
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(ISession, CDOBranchPoint)`.

Seit:
  4.0

### openView

@Deprecated public static CDOView openView(IView view, boolean legacyModeEnabled)
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(IView)`.

Seit:
  4.0

### openView

@Deprecated public static CDOView openView(IStoreAccessor.CommitContext commitContext, boolean legacyModeEnabled)
Veraltet.
As of 4.2 the legacy mode is always enabled, use `openView(IStoreAccessor.CommitContext)`.

Seit:
  4.0

### getServerTransaction

public static ITransaction getServerTransaction(CDOTransaction transaction)

Seit:
  4.13

### getServerView

public static IView getServerView(CDOView view)

Seit:
  4.13

### getServerSession

public static ISession getServerSession(CDOView view)

Seit:
  4.11

### getServerSession

public static ISession getServerSession(CDOSession session)

Seit:
  4.13

### createSessionManager

public static ISessionManager createSessionManager()

Seit:
  3.0

### createRepository

public static IRepository createRepository(String name, IStore store, Map<String,String> props)

### createRepositorySynchronizer

public static IRepositorySynchronizer createRepositorySynchronizer(CDOSessionConfigurationFactory remoteSessionConfigurationFactory)

Seit:
  3.0

### createOfflineClone

public static ISynchronizableRepository createOfflineClone(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer)

Seit:
  3.0

### createFailoverParticipant

public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer, boolean master, boolean allowBackupCommits)

Seit:
  4.0

### createFailoverParticipant

public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer, boolean master)

Seit:
  3.0

### createFailoverParticipant

public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String,String> props, IRepositorySynchronizer synchronizer)

Seit:
  4.0

### createFailoverParticipant

public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String,String> props)

Seit:
  4.0

### addRepository

public static void addRepository(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository)

### getRepository

public static IRepository getRepository(org.eclipse.net4j.util.container.IManagedContainer container, String name)

### getRepository

public static IRepository getRepository(String uuid)

Seit:
  4.13

### getRepository

public static IRepository getRepository(CDOSession session)

Seit:
  4.13

### getRepositoryConfig

public static Element getRepositoryConfig(String repositoryName) throws ParserConfigurationException, SAXException, IOException

Löst aus:
  `ParserConfigurationException`
  `SAXException`
  `IOException`

### execute

public static void execute(ISession context, Runnable runnable)

Seit:
  4.13

### execute

public static void execute(CDOSession context, Consumer<ISession> consumer)

Seit:
  4.13