You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/useCases.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ The different use cases currently available in the package are classified below,
13
13
-[Get a Collection](#get-a-collection)
14
14
-[Get Collection Facets](#get-collection-facets)
15
15
-[Get User Permissions on a Collection](#get-user-permissions-on-a-collection)
16
+
-[List All Collection Items](#list-all-collection-items)
16
17
-[Collections write use cases](#collections-write-use-cases)
17
18
-[Create a Collection](#create-a-collection)
18
19
-[Publish a Collection](#publish-a-collection)
@@ -160,6 +161,40 @@ The `collectionIdOrAlias` is a generic collection identifier, which can be eithe
160
161
161
162
If no collection identifier is specified, the default collection identifier; `root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
162
163
164
+
#### List All Collection Items
165
+
166
+
Returns an instance of [CollectionItemSubset](../src/collections/domain/models/CollectionItemSubset.ts) that contains reduced information for each collection item that the calling user can access in the installation.
Note that `collectionId` is an optional parameter to filter the items by a specific collection. If not set, the use case will return items starting from the root collection.
189
+
190
+
The `CollectionItemSubset`returned instance contains a property called `totalItemCount` which is necessary for pagination.
191
+
192
+
This use case supports the following optional parameters depending on the search goals:
193
+
194
+
-**limit**: (number) Limit for pagination.
195
+
-**offset**: (number) Offset for pagination.
196
+
-**collectionSearchCriteria**: ([CollectionSearchCriteria](../src/collections/domain/models/CollectionSearchCriteria.ts)) Supports filtering the collection items by different properties.
0 commit comments