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: app/models/annotation/Annotation.scala
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -359,20 +359,34 @@ class AnnotationDAO @Inject()(sqlClient: SqlClient, annotationLayerDAO: Annotati
359
359
// format: on
360
360
}
361
361
362
+
/**
363
+
* Find all annotations which are listable by the user specified in 'forUser'
364
+
*
365
+
* @paramisFinished
366
+
* If set to `true`, only finished annotations are returned. If set to `false`, only active annotations are returned.
367
+
* If set to `None`, all non-cancelled annotations are returned.
368
+
* @paramforUser
369
+
* If set, only annotations of this user are returned. If not set, all annotations are returned.
370
+
* @paramfilterOwnedOrShared
371
+
* If `true`, the function lists only annotations owned by the user or explicitly shared with them (used for the
372
+
* user's own dashboard). If `false`, it lists all annotations the viewer is allowed to see.
373
+
* @paramlimit
374
+
* The maximum number of annotations to return.
375
+
* @parampageNumber
376
+
* The page number to return. The first page is 0.
377
+
*/
362
378
deffindAllListableExplorationals(
363
379
isFinished: Option[Boolean],
364
380
forUser: Option[ObjectId],
365
-
// In dashboard, list only own + explicitly shared annotations. When listing those of another user, list all of their annotations the viewer is allowed to see
0 commit comments