diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-17 14:18:47 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-17 18:48:38 +0100 |
commit | 2f03fcab4af43de3ee5e0b25aa7aa18ca8f4c4db (patch) | |
tree | 9c858a653a582197d02af31d182e89e3df971d53 /lib/private/Share20/Share.php | |
parent | 065753f0ae39cfee229cefb612ca8243b9bae6ca (diff) | |
download | nextcloud-server-2f03fcab4af43de3ee5e0b25aa7aa18ca8f4c4db.tar.gz nextcloud-server-2f03fcab4af43de3ee5e0b25aa7aa18ca8f4c4db.zip |
let the share backend get the node cacheentry to save queries
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Share20/Share.php')
-rw-r--r-- | lib/private/Share20/Share.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index e3e8482f4e1..2e7e6d0ca2e 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -22,6 +22,7 @@ */ namespace OC\Share20; +use OCP\Files\Cache\ICacheEntry; use OCP\Files\File; use OCP\Files\IRootFolder; use OCP\Files\Node; @@ -72,6 +73,9 @@ class Share implements \OCP\Share\IShare { /** @var IUserManager */ private $userManager; + /** @var ICacheEntry|null */ + private $nodeCacheEntry; + public function __construct(IRootFolder $rootFolder, IUserManager $userManager) { $this->rootFolder = $rootFolder; $this->userManager = $userManager; @@ -418,4 +422,18 @@ class Share implements \OCP\Share\IShare { public function getMailSend() { return $this->mailSend; } + + /** + * @inheritdoc + */ + public function setNodeCacheEntry(ICacheEntry $entry) { + $this->nodeCacheEntry = $entry; + } + + /** + * @inheritdoc + */ + public function getNodeCacheEntry() { + return $this->nodeCacheEntry; + } } |