DefaultJvnRepository

class DefaultJvnRepository @Inject constructor(jvnLocalDataSource: JvnDataSource, jvnRemoteDataSource: JvnDataSource) : JvnRepository

JVN APIからデータを取得し、Roomに保存するリポジトリ

Parameters

jvnLocalDataSource

ローカルのデータ層

jvnRemoteDataSource

リモートのデータ層

Constructors

Link copied to clipboard
@Inject
constructor(jvnLocalDataSource: JvnDataSource, jvnRemoteDataSource: JvnDataSource)

Properties

Link copied to clipboard
open override val favorites: Flow<List<DomainVulnOverview>>

お気に入り登録済みの脆弱性対策情報

Link copied to clipboard
open override val vulnOverviews: Flow<List<DomainVulnOverview>>

保存済み脆弱性対策情報

Functions

Link copied to clipboard
open suspend override fun exists(secIdentifier: CharSequence): Boolean

ローカルに保存済みかをチェックします

Link copied to clipboard
open suspend override fun insertVulnOverview(vulnOverview: DomainVulnOverview)

脆弱性対策情報をローカルに保存します

Link copied to clipboard
open suspend override fun refreshVulnOverviews(): Result<Unit>

ローカルに保存しているJVNデータを更新します

Link copied to clipboard
open suspend override fun updateFavorite(id: String, favorite: Boolean)

お気に入り登録を更新します