nextcloud/lib/private/SystemTag
Arthur Schiwon 58f7fd2370
use efficient tag retrieval on DAV report request
- uses DAV search approach against valid files joined by systemtag selector
- reduced table join for tag/systemtag search
- supports pagination
- no changes to the output formats or similar

Example request body:

<?xml version="1.0"?>
<oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns">
  <d:prop>
    <d:getcontentlength/>
    <d:getcontenttype/>
    <d:getetag/>
    <d:getlastmodified/>
    <d:resourcetype/>
    <nc:face-detections/>
    <nc:file-metadata-size/>
    <nc:has-preview/>
    <nc:realpath/>
    <oc:favorite/>
    <oc:fileid/>
    <oc:permissions/>
    <nc:nbItems/>
  </d:prop>
  <oc:filter-rules>
    <oc:systemtag>32</oc:systemtag>
  </oc:filter-rules>
  <d:limit>
    <d:nresults>50</d:nresults>
    <nc:firstresult>0</nc:firstresult>
  </d:limit>
</oc:filter-files>

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-06-21 18:19:08 +02:00
..
ManagerFactory.php composer run cs:fix 2023-01-20 11:45:08 +01:00
SystemTag.php composer run cs:fix 2023-01-20 11:45:08 +01:00
SystemTagManager.php fix(SystemTagManager): Truncate overlong tag names 2023-02-24 12:55:10 +01:00
SystemTagObjectMapper.php use efficient tag retrieval on DAV report request 2023-06-21 18:19:08 +02:00
SystemTagsInFilesDetector.php refactor: remove where specification from SELECT getter 2023-05-10 18:48:06 +02:00