diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-17 22:06:56 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-18 12:53:20 +0200 |
commit | 5cae863408630aee768adf70fdb5c11f72b713fa (patch) | |
tree | 8de499b906379bd25e2e3a23b5a15581523586c9 /lib/public/files/objectstore/iobjectstore.php | |
parent | 9335a5f07f667ae5c917cc1ee065bceecdb65795 (diff) | |
download | nextcloud-server-5cae863408630aee768adf70fdb5c11f72b713fa.tar.gz nextcloud-server-5cae863408630aee768adf70fdb5c11f72b713fa.zip |
change architecture from inheritance to composition
Diffstat (limited to 'lib/public/files/objectstore/iobjectstore.php')
-rw-r--r-- | lib/public/files/objectstore/iobjectstore.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/public/files/objectstore/iobjectstore.php b/lib/public/files/objectstore/iobjectstore.php new file mode 100644 index 00000000000..ecc35faf34a --- /dev/null +++ b/lib/public/files/objectstore/iobjectstore.php @@ -0,0 +1,32 @@ +<?php + +namespace OCP\Files\ObjectStore; + +interface IObjectStore { + + /** + * @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 + * @return void + * @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 + * should be loaded from + * @return void + * @throws Exception when something goes wrong, message will be logged + */ + function updateObject($urn, $tmpFile = null); + + + /** + * @param string $urn the unified resource name used to identify the object + * @return void + * @throws Exception when something goes wrong, message will be logged + */ + function deleteObject($urn); + +}
\ No newline at end of file |