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
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ The different use cases currently available in the package are classified below,
14
14
-[Get Collection Facets](#get-collection-facets)
15
15
-[Get User Permissions on a Collection](#get-user-permissions-on-a-collection)
16
16
-[List All Collection Items](#list-all-collection-items)
17
+
-[List My Data Collection Items](#list-my-data-collection-items)
17
18
-[Get Collection Featured Items](#get-collection-featured-items)
18
19
-[Collections write use cases](#collections-write-use-cases)
19
20
-[Create a Collection](#create-a-collection)
@@ -215,6 +216,62 @@ This use case supports the following optional parameters depending on the search
215
216
-**offset**: (number) Offset for pagination.
216
217
-**collectionSearchCriteria**: ([CollectionSearchCriteria](../src/collections/domain/models/CollectionSearchCriteria.ts)) Supports filtering the collection items by different properties.
217
218
219
+
#### List My Data Collection Items
220
+
221
+
Returns an instance of [CollectionItemSubset](../src/collections/domain/models/CollectionItemSubset.ts) that contains reduced information for each collection item for which the calling user has a role.
-**roleIds** is an array of user role identifiers to filter the results. At least one roleId must be specified.
263
+
-**collectionItemTypes** is an array of collection item types to filter the results. At least one collectionItemType must be specified.
264
+
-**publishingStatuses** is an array of publishing statuses to filter the results. At least one publishingStatus must be specified.
265
+
266
+
This use case supports the following optional parameters depending on the search goals:
267
+
268
+
-**limit**: (number) Limit of items per page for pagination. (default is 10)
269
+
-**selectedPage**: (number) the page of results to be returned. (default is 1)
270
+
-**searchText** is an optional string to filter the results by.
271
+
-**otherUserName** is an optional string to return the collection items of another user. If not set, the calling user will be used. _Only superusers can use this parameter_.
272
+
273
+
The `CollectionItemSubset`returned instance contains a property called `totalItemCount` which is necessary for pagination.
274
+
218
275
#### Get Collection Featured Items
219
276
220
277
Returns a [CollectionFeaturedItem](../src/collections/domain/models/CollectionFeaturedItem.ts) array containing the featured items of the requested collection, given the collection identifier or alias.
0 commit comments