Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-18 17:20:26 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-18 17:20:26 +0400
commitf2fe00e972e2a592de99f49ad0d0c969ff287bc4 (patch)
treeb5ba428db279b31206c7fd0b128134c466187963 /lib/public
parent5cae863408630aee768adf70fdb5c11f72b713fa (diff)
fix rebase, use 'object::user:<username>' or 'object::store:<storageid> as storage id, by default use container/bucket name for storageid, make storageid configurable, store user only for HomeObjectStoreStorage, change updateObject() to writeObject()
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files/objectstore/iobjectstore.php9
1 files changed, 7 insertions, 2 deletions
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
@@ -5,6 +5,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
* used to store the object
@@ -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