diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-18 15:20:26 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-18 15:20:26 +0200 |
commit | f2fe00e972e2a592de99f49ad0d0c969ff287bc4 (patch) | |
tree | b5ba428db279b31206c7fd0b128134c466187963 /lib/public | |
parent | 5cae863408630aee768adf70fdb5c11f72b713fa (diff) | |
download | nextcloud-server-f2fe00e972e2a592de99f49ad0d0c969ff287bc4.tar.gz nextcloud-server-f2fe00e972e2a592de99f49ad0d0c969ff287bc4.zip |
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.php | 9 |
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 |