DataElementCollectionRepository

class DataElementCollectionRepository : ReadOnlyIdentifiableCollectionRepositoryImpl<DataElement, DataElementCollectionRepository>

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun blockingCount(): Int

Get the count of elements. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .count.

Link copied to clipboard
open override fun blockingGet(): List<DataElement>

Get the list of objects in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .get.

Link copied to clipboard
open override fun blockingGetUids(): List<String>

Get the list of uids of objects in scope in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .getUids.

Link copied to clipboard
open override fun blockingIsEmpty(): Boolean

Check if selection of objects with applied filters is empty in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .isEmpty.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun byCode(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
fun byColor(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
open override fun byCreated(): DateFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
Link copied to clipboard
open override fun byDisplayName(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
fun byDomainType(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
fun byFieldMask(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
fun byFormName(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
fun byIcon(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
open override fun byLastUpdated(): DateFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
open override fun byName(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
fun byOptionSetUid(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
open override fun byUid(): StringFilterConnector<DataElementCollectionRepository>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun count(): Single<Int>

Get the count of elements in an asynchronous way, returning a Single.

Link copied to clipboard
open override fun get(): Single<List<DataElement>>

Get the objects in scope in an asynchronous way, returning a Single<List>.

Link copied to clipboard
open override fun getPaged(pageSize: Int): LiveData<PagedList<DataElement>>

Handy method to use in conjunction with PagedListAdapter to build paged lists.

Link copied to clipboard
Link copied to clipboard
open override fun getPagingData(pageSize: Int): Flow<PagingData<DataElement>>

Uses Paging3 library and return a Flow

Link copied to clipboard
open override fun getUids(): Single<List<String>>

Get the list of uids of objects in scope in an asynchronous way, returning a Single<List<String>>.

Link copied to clipboard
open override fun isEmpty(): Single<Boolean>

Check if selection of objects in current scope with applied filters is empty in an asynchronous way, returning a Single.

Link copied to clipboard

Get a ReadOnlyObjectRepository pointing to the first element in the list.

Link copied to clipboard

Returns a new ReadOnlyObjectRepository whose scope is the one of the current repository plus the equal filter applied to the uid. This method is equivalent to byUid().eq(uid).one().