From da731d2bb81666b9c697d9099da632e7dfcdc0f7 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 9 Sep 2014 12:13:21 +0200 Subject: Replaced int sysKey Item identifier with UUID, which is now portable. ItemPath objects are now used to identify Items throughout the kernel, replacing ints and Integers. --- src/main/java/com/c2kernel/persistency/ClusterStorage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/c2kernel/persistency/ClusterStorage.java') diff --git a/src/main/java/com/c2kernel/persistency/ClusterStorage.java b/src/main/java/com/c2kernel/persistency/ClusterStorage.java index 29f9174..cf7f401 100644 --- a/src/main/java/com/c2kernel/persistency/ClusterStorage.java +++ b/src/main/java/com/c2kernel/persistency/ClusterStorage.java @@ -1,6 +1,7 @@ package com.c2kernel.persistency; import com.c2kernel.entity.C2KLocalObject; +import com.c2kernel.lookup.ItemPath; import com.c2kernel.persistency.outcome.Outcome; import com.c2kernel.persistency.outcome.Viewpoint; import com.c2kernel.process.auth.Authenticator; @@ -214,7 +215,7 @@ public abstract class ClusterStorage { * @throws ClusterStorageException * when retrieval failed */ - public abstract C2KLocalObject get(Integer sysKey, String path) + public abstract C2KLocalObject get(ItemPath itemPath, String path) throws ClusterStorageException; /** @@ -227,7 +228,7 @@ public abstract class ClusterStorage { * @throws ClusterStorageException * When storage fails */ - public abstract void put(Integer sysKey, C2KLocalObject obj) + public abstract void put(ItemPath itemPath, C2KLocalObject obj) throws ClusterStorageException; /** @@ -242,7 +243,7 @@ public abstract class ClusterStorage { * @throws ClusterStorageException * When deletion fails or is not allowed */ - public abstract void delete(Integer sysKey, String path) + public abstract void delete(ItemPath itemPath, String path) throws ClusterStorageException; // directory listing @@ -259,7 +260,7 @@ public abstract class ClusterStorage { * @throws ClusterStorageException * When an error occurred during the query */ - public abstract String[] getClusterContents(Integer sysKey, String path) + public abstract String[] getClusterContents(ItemPath itemPath, String path) throws ClusterStorageException; } -- cgit v1.2.3