ProjectRepository

プロジェクトリポジトリのインターフェース

mpm.jsonファイルの読み書きを担当する DTOへの変換は実装クラスで行う

Functions

Link copied to clipboard
abstract suspend fun delete(): Boolean

プロジェクトを削除

Link copied to clipboard
abstract suspend fun ensureSavable(): Either<String, Unit>

mpm.json を保存してよいかを事前に判定する(副作用なし)

Link copied to clipboard
abstract suspend fun exists(): Boolean

プロジェクトが存在するかどうかを確認

Link copied to clipboard
abstract suspend fun find(): MpmProject?

プロジェクトを取得

Link copied to clipboard
abstract suspend fun findOrError(): Either<MpmError, MpmProject>

プロジェクトを取得(エラー情報付き)

Link copied to clipboard
abstract suspend fun save(project: MpmProject)

プロジェクトを保存