diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/explorer/repositories/CDORepository.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/explorer/repositories/CDORepository.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/explorer/repositories/CDORepository.java b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/explorer/repositories/CDORepository.java index d237b1d525..7d8b9bcf93 100644 --- a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/explorer/repositories/CDORepository.java +++ b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/explorer/repositories/CDORepository.java @@ -10,6 +10,7 @@ */ package org.eclipse.emf.cdo.explorer.repositories; +import org.eclipse.emf.cdo.common.CDOCommonRepository.IDGenerationLocation; import org.eclipse.emf.cdo.common.branch.CDOBranch; import org.eclipse.emf.cdo.explorer.CDOExplorerElement; import org.eclipse.emf.cdo.explorer.checkouts.CDOCheckout; @@ -49,6 +50,10 @@ public interface CDORepository extends CDOExplorerElement, IContainer<CDOBranch> public String getURI(); + public VersioningMode getVersioningMode(); + + public IDGeneration getIDGeneration(); + public State getState(); public boolean isConnected(); @@ -68,6 +73,54 @@ public interface CDORepository extends CDOExplorerElement, IContainer<CDOBranch> /** * @author Eike Stepper */ + public enum VersioningMode + { + Normal(false, false), Auditing(true, false), Branching(true, true); + + private boolean supportingAudits; + + private boolean supportingBranches; + + private VersioningMode(boolean supportingAudits, boolean supportingBranches) + { + this.supportingAudits = supportingAudits; + this.supportingBranches = supportingBranches; + } + + public boolean isSupportingAudits() + { + return supportingAudits; + } + + public boolean isSupportingBranches() + { + return supportingBranches; + } + } + + /** + * @author Eike Stepper + */ + public enum IDGeneration + { + Counter(IDGenerationLocation.STORE), UUID(IDGenerationLocation.CLIENT); + + private IDGenerationLocation location; + + private IDGeneration(IDGenerationLocation location) + { + this.location = location; + } + + public final IDGenerationLocation getLocation() + { + return location; + } + } + + /** + * @author Eike Stepper + */ public enum State { Connecting, Connected, Disconnecting, Disconnected |