RepositoriesManager

Constructors

Link copied to clipboard
constructor(client: LocalModelClient)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun computeDelta(versionHash: String, baseVersionHash: String?): ObjectData
Link copied to clipboard
open suspend override fun createRepository(repositoryId: RepositoryId, userName: String?, useRoleIds: Boolean, legacyGlobalStorage: Boolean): CLVersion
Link copied to clipboard
fun generateClientId(repositoryId: RepositoryId): Long
Link copied to clipboard
open override fun getBranches(repositoryId: RepositoryId): Set<BranchReference>
Link copied to clipboard
fun getBranchNames(repositoryId: RepositoryId): Set<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun getVersion(branch: BranchReference): CLVersion?
open suspend override fun getVersion(repository: RepositoryId, versionHash: String): CLVersion?
Link copied to clipboard
open suspend override fun getVersionHash(branch: BranchReference): String?
Link copied to clipboard
open override fun isIsolated(repository: RepositoryId): Boolean?

The data of a repository is stored separately from other repositories, but that wasn't always the case. For backwards compatibility, existing repositories remain in the global storage.

Link copied to clipboard
open suspend override fun maybeInitAndGetSeverId(): String

Used to retrieve the server ID. If needed, the server ID is created and stored.

Link copied to clipboard
open suspend override fun mergeChanges(branch: BranchReference, newVersionHash: String): String
Link copied to clipboard
open override fun mergeChangesBlocking(branch: BranchReference, newVersionHash: String): String

Same as mergeChanges but blocking. Caller is expected to execute it outside the request thread.

Link copied to clipboard
open suspend override fun pollVersionHash(branch: BranchReference, lastKnown: String?): String
Link copied to clipboard
open suspend override fun removeBranches(repository: RepositoryId, branchNames: Set<String>)
Link copied to clipboard
open override fun removeBranchesBlocking(repository: RepositoryId, branchNames: Set<String>)

Same as removeBranches but blocking. Caller is expected to execute it outside the request thread.

Link copied to clipboard
open suspend override fun removeRepository(repository: RepositoryId): Boolean
Link copied to clipboard
open suspend override fun <R> runWithRepository(repository: RepositoryId, body: suspend () -> R): R