32 lines
934 B
PHP
32 lines
934 B
PHP
|
<?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);
|
||
|
|
||
|
}
|