From f2fe00e972e2a592de99f49ad0d0c969ff287bc4 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Wed, 18 Jun 2014 15:20:26 +0200 Subject: fix rebase, use 'object::user:' or 'object::store: as storage id, by default use container/bucket name for storageid, make storageid configurable, store user only for HomeObjectStoreStorage, change updateObject() to writeObject() --- lib/public/files/objectstore/iobjectstore.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/public') diff --git a/lib/public/files/objectstore/iobjectstore.php b/lib/public/files/objectstore/iobjectstore.php index ecc35faf34a..3b6bd98d338 100644 --- a/lib/public/files/objectstore/iobjectstore.php +++ b/lib/public/files/objectstore/iobjectstore.php @@ -4,6 +4,11 @@ namespace OCP\Files\ObjectStore; interface IObjectStore { + /** + * @return string the container or bucket name where objects are stored + */ + function getStorageId(); + /** * @param string $urn the unified resource name used to identify the object * @param string $tmpFile path to the local temporary file that should be @@ -12,6 +17,7 @@ interface IObjectStore { * @throws Exception when something goes wrong, message will be logged */ function getObject($urn, $tmpFile); + /** * @param string $urn the unified resource name used to identify the object * @param string $tmpFile path to the local temporary file that the object @@ -19,8 +25,7 @@ interface IObjectStore { * @return void * @throws Exception when something goes wrong, message will be logged */ - function updateObject($urn, $tmpFile = null); - + function writeObject($urn, $tmpFile = null); /** * @param string $urn the unified resource name used to identify the object -- cgit v1.2.3