corda / net.corda.testing.services / MockAttachmentStorage / queryAttachments

queryAttachments

fun queryAttachments(criteria: AttachmentQueryCriteria, sorting: AttachmentSort?): List<AttachmentId>

Searches attachment using given criteria and optional sort rules

Parameters

criteria - Query criteria to use as a filter

sorting - Sorting definition, if not given, order is undefined

Return
List of AttachmentId of attachment matching criteria, sorted according to given sorting parameter