Package org.eclipse.emf.cdo.workspace

## Class CDOWorkspaceUtil

- java.lang.Object
- - org.eclipse.emf.cdo.workspace.CDOWorkspaceUtil

-     public final class CDOWorkspaceUtil
      extends java.lang.Object

  Various static helper methods for dealing with `workspaces`.
  Author:
    Eike Stepper

- - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static CDOWorkspace` | `checkout​(IStore local, CDOWorkspaceBase base, CDOSessionConfigurationFactory remote)` | Deprecated. Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`
    `static CDOWorkspace` | `checkout​(IStore local, CDOWorkspaceBase base, CDOSessionConfigurationFactory remote, long timeStamp)` | Deprecated. Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`
    `static CDOWorkspace` | `checkout​(IStore local, CDOWorkspaceBase base, CDOSessionConfigurationFactory remote, java.lang.String branchPath)` | Deprecated. Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`
    `static CDOWorkspace` | `checkout​(IStore local, CDOWorkspaceBase base, CDOSessionConfigurationFactory remote, java.lang.String branchPath, long timeStamp)` | Deprecated. Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`
    `static CDOWorkspaceBase` | `createFolderWorkspaceBase​(java.io.File folder)` |
    `static CDOWorkspaceConfiguration` | `createWorkspaceConfiguration()` | Returns a new configuration that can be used to checkout a new `CDOWorkspace` or open an existing one.
    `static org.eclipse.net4j.util.properties.IProperties<CDOWorkspace>` | `getProperties()` |
    `static CDOWorkspace` | `getWorkspace​(org.eclipse.emf.ecore.EObject object)` |
    `static CDOWorkspaceBase2` | `getWorkspaceBase2​(CDOWorkspaceBase base)` |
    `static boolean` | `isDirty​(org.eclipse.emf.ecore.EObject object)` |
    `static CDOWorkspace` | `open​(IStore local, CDOWorkspaceBase base, CDOSessionConfigurationFactory remote)` | Deprecated. Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.open()`

    - ### Methods inherited from class java.lang.Object

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

- - ### Method Detail

    - #### getProperties

          public static org.eclipse.net4j.util.properties.IProperties<CDOWorkspace> getProperties()

      Since:
        4.1

    - #### getWorkspace

          public static CDOWorkspace getWorkspace​(org.eclipse.emf.ecore.EObject object)

      Since:
        4.1

    - #### isDirty

          public static boolean isDirty​(org.eclipse.emf.ecore.EObject object)

      Since:
        4.1

    - #### getWorkspaceBase2

          public static CDOWorkspaceBase2 getWorkspaceBase2​(CDOWorkspaceBase base)

      Since:
        4.1

    - #### createFolderWorkspaceBase

          public static CDOWorkspaceBase createFolderWorkspaceBase​(java.io.File folder)

    - #### createWorkspaceConfiguration

          public static CDOWorkspaceConfiguration createWorkspaceConfiguration()

      Returns a new configuration that can be used to checkout a new `CDOWorkspace` or open an existing one.
      Since:
        4.1

    - #### open

          @Deprecated
          public static CDOWorkspace open​(IStore local,
                                          CDOWorkspaceBase base,
                                          CDOSessionConfigurationFactory remote)

      Deprecated.
      Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.open()`

    - #### checkout

          @Deprecated
          public static CDOWorkspace checkout​(IStore local,
                                              CDOWorkspaceBase base,
                                              CDOSessionConfigurationFactory remote)

      Deprecated.
      Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`

    - #### checkout

          @Deprecated
          public static CDOWorkspace checkout​(IStore local,
                                              CDOWorkspaceBase base,
                                              CDOSessionConfigurationFactory remote,
                                              java.lang.String branchPath)

      Deprecated.
      Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`

    - #### checkout

          @Deprecated
          public static CDOWorkspace checkout​(IStore local,
                                              CDOWorkspaceBase base,
                                              CDOSessionConfigurationFactory remote,
                                              long timeStamp)

      Deprecated.
      Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`

    - #### checkout

          @Deprecated
          public static CDOWorkspace checkout​(IStore local,
                                              CDOWorkspaceBase base,
                                              CDOSessionConfigurationFactory remote,
                                              java.lang.String branchPath,
                                              long timeStamp)

      Deprecated.
      Use `createWorkspaceConfiguration()` and `CDOWorkspaceConfiguration.checkout()`