forked from owncloud/core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michiel de Jong <[email protected]>
- Loading branch information
1 parent
dba4cf1
commit 6c448ed
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Enhancement: Add support for OCM via ScienceMesh | ||
|
||
|
||
We've added an if-statement in the files_sharing ShareesController | ||
code that searches for remote sharees. When the 'sciencemesh' app | ||
is installed, use it instead of the federatedfilesharing app to | ||
find sharee matches for OCM sharing. | ||
|
||
https://github.com/owncloud/core/issues/40577 | ||
https://github.com/pondersource/oc-sciencemesh/pull/39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* @author Michiel de Jong <[email protected]> | ||
* | ||
* @copyright Copyright (c) 2018, ownCloud GmbH | ||
* @license AGPL-3.0 | ||
* | ||
* This code is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3, | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License, version 3, | ||
* along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* | ||
*/ | ||
|
||
namespace OCP\Share; | ||
|
||
/** | ||
* Interface IRemoteShareesSearch | ||
* Used in the ShareesController of the files_sharing app. | ||
* See the 'sciencemesh' app for an example implementation | ||
* of this interface. | ||
* | ||
* @package OCP\Share | ||
* @since 10.12.0 | ||
*/ | ||
interface IRemoteShareesSearch { | ||
/** | ||
* Return the identifier of this provider. | ||
* @param string search string for autocomplete | ||
* @return array[] this function should return an array | ||
* where each element is an associative array, containing: | ||
* - label: a string to display as label | ||
* - value: an associative array containing: | ||
* - shareType: int, to be used as share type | ||
* - shareWith: string, identifying the sharee | ||
* - server (optional): string, URL of the server, e.g. | ||
* https://github.com/owncloud/core/blob/v10.12.0-beta.1/apps/files_sharing/lib/Controller/ShareesController.php#L421 | ||
* | ||
* @since 10.12.0 | ||
*/ | ||
public function search($search); | ||
} |