This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Model implementation using simpleStore for OCS
- Loading branch information
Showing
8 changed files
with
572 additions
and
151 deletions.
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
74 changes: 0 additions & 74 deletions
74
core/src/plugins/core.ocs/service/class.OCS_DavBasicAuthNoPass.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,84 @@ | ||
<?php | ||
/* | ||
* Copyright 2007-2015 Abstrium <contact (at) pydio.com> | ||
* This file is part of Pydio. | ||
* | ||
* Pydio is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Pydio 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 | ||
* along with Pydio. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* The latest code can be found at <http://pyd.io/>. | ||
*/ | ||
|
||
namespace Pydio\OCS\Model; | ||
|
||
defined('AJXP_EXEC') or die('Access not allowed'); | ||
|
||
interface IStore | ||
{ | ||
/** | ||
* Persists an invitation to store | ||
* @param ShareInvitation $invitation | ||
* @return ShareInvitation|false The invitation with its new ID. | ||
*/ | ||
public function storeInvitation(ShareInvitation $invitation); | ||
|
||
/** | ||
* Find all invitatins for a given token | ||
* @param string $linkToken | ||
* @return ShareInvitation[] | ||
*/ | ||
public function invitationsForLink($linkToken); | ||
|
||
/** | ||
* Find an invitation by ID | ||
* @param $invitationId | ||
* @return ShareInvitation|null | ||
*/ | ||
public function invitationById(string $invitationId); | ||
|
||
/** | ||
* Delete an invitation | ||
* @param ShareInvitation $invitation | ||
* @return bool | ||
*/ | ||
public function deleteInvitation(ShareInvitation $invitation); | ||
|
||
/** | ||
* Persists a remote share to the store | ||
* @param RemoteShare $remoteShare | ||
* @return RemoteShare|false The share with eventually its new ID. | ||
*/ | ||
public function storeRemoteShare(RemoteShare $remoteShare); | ||
|
||
/** | ||
* Find all remote shares for a given user | ||
* @param string $userName | ||
* @return RemoteShare[] | ||
*/ | ||
public function remoteSharesForUser($userName); | ||
|
||
/** | ||
* Find a remote share by its id | ||
* @param string $remoteShareId | ||
* @return RemoteShare | ||
*/ | ||
public function remoteShareById($remoteShareId); | ||
|
||
/** | ||
* Delete an existing remote share | ||
* @param RemoteShare $remoteShare | ||
* @return bool | ||
*/ | ||
public function deleteRemoteShare(RemoteShare $remoteShare); | ||
|
||
} |
Oops, something went wrong.