RetrievedAggregator

data class RetrievedAggregator(val json: Aggregator) : Validatable

This class represents a wrapper around a Aggregator document, that provides functionality for parsing the metadata about an aggregator from a location, including validation according to the specification.

This class is not yet complete.

Constructors

Link copied to clipboard
constructor(json: Aggregator)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val json: Aggregator
Link copied to clipboard
open override val role: Role

The role of this RetrievedAggregator (lister, aggregator), required for checking the validity of the aggregator itself and the Provider instances downloaded by it.

Functions

Link copied to clipboard
suspend fun fetchAll(loader: CsafLoader = lazyLoader): List<Result<RetrievedProvider>>

Fetches all providers and publishers, optionally using the specified loader.

Link copied to clipboard

Fetches all providers and publishers asynchronously, allowing Java invocation. Converts the results into ResultCompat for Java compatibility.

Link copied to clipboard
suspend fun fetchProviders(loader: CsafLoader = lazyLoader): List<Result<RetrievedProvider>>

Fetches a list of CSAF providers using the specified loader.

Link copied to clipboard

Fetches a list of CSAF providers asynchronously, allowing Java invocation. Converts the results into ResultCompat for Java compatibility.

Link copied to clipboard
suspend fun fetchPublishers(loader: CsafLoader = lazyLoader): List<Result<RetrievedProvider>>

Fetches a list of CSAF publishers using the specified loader.

Link copied to clipboard

Fetches a list of CSAF publishers asynchronously, allowing Java invocation. Converts the results into ResultCompat for Java compatibility.

Link copied to clipboard
open fun validate(retrievalContext: RetrievalContext)

Validates this Validatable according to the CSAF standard.