Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/session/CDORepositoryInfo.java')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/session/CDORepositoryInfo.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/session/CDORepositoryInfo.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/session/CDORepositoryInfo.java
new file mode 100644
index 0000000000..5037a940ce
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/session/CDORepositoryInfo.java
@@ -0,0 +1,53 @@
+package org.eclipse.emf.cdo.session;
+
+/**
+ * Describes a model repository a {@link CDOSession session} is connected to.
+ *
+ * @author Eike Stepper
+ * @see CDOSession#getRepositoryInfo()
+ * @since 3.0
+ */
+public interface CDORepositoryInfo
+{
+ /**
+ * Returns the name of this repository.
+ *
+ * @see IRepository#getName()
+ */
+ public String getName();
+
+ /**
+ * Returns the UUID of this repository.
+ *
+ * @see IRepository#getUUID()
+ */
+ public String getUUID();
+
+ /**
+ * Returns the creation time of this repository.
+ *
+ * @see IRepository#getCreationTime()
+ */
+ public long getCreationTime();
+
+ /**
+ * Returns the approximate current time of this repository.
+ * <p>
+ * Same as calling <code>getCurrentTime(false)</code>.
+ *
+ * @see #getCurrentTime(boolean)
+ */
+ public long getCurrentTime();
+
+ /**
+ * Returns the approximate current time of this repository by optionally refreshing the approximation from the server.
+ */
+ public long getCurrentTime(boolean forceRefresh);
+
+ /**
+ * Returns <code>true</code> if this repository supports auditing, <code>false</code> otherwise.
+ *
+ * @see IRepository#isSupportingAudits()
+ */
+ public boolean isSupportingAudits();
+}

Back to the top