Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-03 08:41:51 +0000
committerEike Stepper2012-06-03 08:41:51 +0000
commitcbaeb4064af374537528beb70c1cb41dd68385e3 (patch)
treea97f4a6a5e10d5f8c2b2d5e4f02eb0587ab39067 /plugins/org.eclipse.emf.cdo.admin
parent67dd1cdc91bb74ab6acbaa3e1b8c179f563d6200 (diff)
downloadcdo-cbaeb4064af374537528beb70c1cb41dd68385e3.tar.gz
cdo-cbaeb4064af374537528beb70c1cb41dd68385e3.tar.xz
cdo-cbaeb4064af374537528beb70c1cb41dd68385e3.zip
[381472] Design a repository administration API
https://bugs.eclipse.org/bugs/show_bug.cgi?id=381472
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.admin')
-rw-r--r--plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientRepository.java29
1 files changed, 16 insertions, 13 deletions
diff --git a/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientRepository.java b/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientRepository.java
index 211fd30d90..156e7e6608 100644
--- a/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientRepository.java
+++ b/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientRepository.java
@@ -39,12 +39,14 @@ public class CDOAdminClientRepository extends Notifier implements CDOAdminReposi
private State state;
- private long creationTime;
-
private String storeType;
private Set<ObjectType> objectIDTypes;
+ private long creationTime;
+
+ private CDOID rootResourceID;
+
private boolean supportingAudits;
private boolean supportingBranches;
@@ -62,7 +64,6 @@ public class CDOAdminClientRepository extends Notifier implements CDOAdminReposi
uuid = in.readString();
type = in.readEnum(Type.class);
state = in.readEnum(State.class);
- creationTime = in.readLong();
storeType = in.readString();
Set<CDOID.ObjectType> objectIDTypes = new HashSet<ObjectType>();
@@ -73,6 +74,8 @@ public class CDOAdminClientRepository extends Notifier implements CDOAdminReposi
objectIDTypes.add(objectIDType);
}
+ creationTime = in.readLong();
+ rootResourceID = (CDOID)in.readObject();
supportingAudits = in.readBoolean();
supportingBranches = in.readBoolean();
supportingEcore = in.readBoolean();
@@ -105,11 +108,6 @@ public class CDOAdminClientRepository extends Notifier implements CDOAdminReposi
return state;
}
- public long getCreationTime()
- {
- return creationTime;
- }
-
public String getStoreType()
{
return storeType;
@@ -120,6 +118,16 @@ public class CDOAdminClientRepository extends Notifier implements CDOAdminReposi
return objectIDTypes;
}
+ public long getCreationTime()
+ {
+ return creationTime;
+ }
+
+ public CDOID getRootResourceID()
+ {
+ return rootResourceID;
+ }
+
public boolean isSupportingAudits()
{
return supportingAudits;
@@ -145,11 +153,6 @@ public class CDOAdminClientRepository extends Notifier implements CDOAdminReposi
return idGenerationLocation;
}
- public CDOID getRootResourceID()
- {
- throw new UnsupportedOperationException();
- }
-
public long getTimeStamp() throws UnsupportedOperationException
{
throw new UnsupportedOperationException();

Back to the top