2015-11-26 11:47:53 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2015-11-26 11:47:53 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-11-26 11:47:53 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Files\Config;
|
|
|
|
|
|
|
|
|
|
use OCP\Files\Node;
|
|
|
|
|
use OCP\IUser;
|
|
|
|
|
|
|
|
|
|
/**
|
2015-12-02 07:36:33 -05:00
|
|
|
* Holds information about a mount for a user
|
|
|
|
|
*
|
2015-11-26 11:47:53 -05:00
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ICachedMountInfo {
|
|
|
|
|
/**
|
|
|
|
|
* @return IUser
|
|
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getUser(): IUser;
|
2015-11-26 11:47:53 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int the numeric storage id of the mount
|
|
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getStorageId(): int;
|
2015-11-26 11:47:53 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int the fileid of the root of the mount
|
|
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getRootId(): int;
|
2015-11-26 11:47:53 -05:00
|
|
|
|
|
|
|
|
/**
|
2022-02-10 08:15:07 -05:00
|
|
|
* @return Node|null the root node of the mount
|
2015-11-26 11:47:53 -05:00
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getMountPointNode(): ?Node;
|
2015-11-26 11:47:53 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string the mount point of the mount for the user
|
|
|
|
|
* @since 9.0.0
|
|
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getMountPoint(): string;
|
2016-07-13 10:29:51 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the id of the configured mount
|
|
|
|
|
*
|
|
|
|
|
* @return int|null mount id or null if not applicable
|
|
|
|
|
* @since 9.1.0
|
|
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getMountId(): ?int;
|
2016-09-18 12:36:53 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the internal path (within the storage) of the root of the mount
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-09-18 12:36:53 -04:00
|
|
|
*/
|
2022-02-10 08:15:07 -05:00
|
|
|
public function getRootInternalPath(): string;
|
2022-02-02 10:12:57 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the class of the mount provider that this mount originates from
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 24.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getMountProvider(): string;
|
2023-10-23 07:27:13 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get a key that uniquely identifies the mount
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
* @since 28.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getKey(): string;
|
2015-11-26 11:47:53 -05:00
|
|
|
}
|