aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Reference/ReferenceManager.php
Commit message (Collapse)AuthorAgeFilesLines
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(Reference): Add public API endpoints to get referencesJonas2024-07-171-11/+25
| | | | | | | | | | | | | | | | | | | | | | | Calling the public API endpoints will check for matching registered reference providers that implement `IPublicReferenceProvider` and call their respective functions. If no matching provider is found, the default `LinkReferenceProvider` will be used to provide open graph data. The frontend reference widget components will call these endpoints from unauthorized sessions, e.g. in public shares. If present, the sharing token of the origin URL is passed to `resolveReferencePublic()` as additional information for the reference provider to determine the access scope. This allows the respective reference providers to determine whether the origin share has access to the linked resource. `getCacheKeyPublic` also gets the sharing token so it can scope the cached entry to it. Contributes to #45978 Signed-off-by: Jonas <jonas@freesources.org>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-18/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Avoid clear cache with prefixJulius Härtl2024-03-081-1/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Refactors lib/private/Collaboration.Faraz Samapoor2023-10-031-39/+10
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* improve getUserProviderTimestampsJulien Veyssier2023-01-271-3/+4
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* use array_filter instead of array_map + array_searchJulien Veyssier2023-01-271-5/+5
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* handle and return touchProvider errorsJulien Veyssier2023-01-271-1/+3
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* add 'last used timestamp' management for reference providersJulien Veyssier2023-01-271-5/+54
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* extend the reference API for the new link pickerJulien Veyssier2023-01-271-0/+62
| | | | | | | | | - add 2 interfaces for discoverable and searchable reference providers - new OCS route to get info on discoverable/searchable reference providers - new abstract ADiscoverableReferenceProvider that only implements jsonSerialize - listen to RenderReferenceEvent to inject provider list with initial state Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Move Reference class to public namespaceJulius Härtl2022-09-261-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Inject all dependnencies and increase cache timeoutJulius Härtl2022-08-311-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Refactor cache handlingJulius Härtl2022-08-311-16/+21
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* CleanupJulius Härtl2022-08-311-6/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move registration to IBootstrapJulius Härtl2022-08-311-9/+41
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add full public interfacesJulius Härtl2022-08-311-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement image cachingJulius Härtl2022-08-311-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add cache invalidationJulius Härtl2022-08-311-10/+41
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement reference provider based cachingJulius Härtl2022-08-311-9/+20
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make reference fetching configurableJulius Härtl2022-08-311-8/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* API for fetching reference metadataJulius Härtl2022-08-311-0/+79
Signed-off-by: Julius Härtl <jus@bitgrid.net>