Interface IPluginInstallationRepository
- Namespace
- Builvero.Application.Interfaces.Repositories
- Assembly
- Builvero.Application.dll
Repository interface for plugin installation data access operations.
public interface IPluginInstallationRepository
Methods
CreateAsync(PluginInstallation, CancellationToken)
Creates a new plugin installation.
Task<PluginInstallation> CreateAsync(PluginInstallation installation, CancellationToken ct = default)
Parameters
installationPluginInstallation- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<PluginInstallation>
- Repository interface for plugin installation data access operations.
DeleteAsync(PluginInstallation, CancellationToken)
Deletes a plugin installation.
Task DeleteAsync(PluginInstallation installation, CancellationToken ct = default)
Parameters
installationPluginInstallation- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task
- Repository interface for plugin installation data access operations.
GetActiveByProjectIdAsync(Guid, CancellationToken)
Gets active installations for a project (enabled, with approved versions).
Task<List<PluginInstallation>> GetActiveByProjectIdAsync(Guid projectId, CancellationToken ct = default)
Parameters
projectIdGuid- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<List<PluginInstallation>>
- Repository interface for plugin installation data access operations.
GetActiveByUserIdAsync(Guid, CancellationToken)
Gets active installations for a user (enabled, with approved versions).
Task<List<PluginInstallation>> GetActiveByUserIdAsync(Guid userId, CancellationToken ct = default)
Parameters
userIdGuid- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<List<PluginInstallation>>
- Repository interface for plugin installation data access operations.
GetByIdAsync(Guid, CancellationToken)
Gets a plugin installation by its unique identifier.
Task<PluginInstallation?> GetByIdAsync(Guid id, CancellationToken ct = default)
Parameters
idGuid- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<PluginInstallation>
- Repository interface for plugin installation data access operations.
GetByPluginIdAndScopeAsync(Guid, PluginInstallationScope, Guid?, Guid, CancellationToken)
Gets an installation by plugin ID and scope (user or project).
Task<PluginInstallation?> GetByPluginIdAndScopeAsync(Guid pluginId, PluginInstallationScope scope, Guid? projectId, Guid userId, CancellationToken ct = default)
Parameters
pluginIdGuid- Repository interface for plugin installation data access operations.
scopePluginInstallationScope- Repository interface for plugin installation data access operations.
projectIdGuid?- Repository interface for plugin installation data access operations.
userIdGuid- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<PluginInstallation>
- Repository interface for plugin installation data access operations.
GetByProjectIdAsync(Guid, CancellationToken)
Gets all installations for a project.
Task<List<PluginInstallation>> GetByProjectIdAsync(Guid projectId, CancellationToken ct = default)
Parameters
projectIdGuid- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<List<PluginInstallation>>
- Repository interface for plugin installation data access operations.
GetByUserIdAsync(Guid, CancellationToken)
Gets all installations for a user (user-level and project-level where user is a member).
Task<List<PluginInstallation>> GetByUserIdAsync(Guid userId, CancellationToken ct = default)
Parameters
userIdGuid- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task<List<PluginInstallation>>
- Repository interface for plugin installation data access operations.
UpdateAsync(PluginInstallation, CancellationToken)
Updates an existing plugin installation.
Task UpdateAsync(PluginInstallation installation, CancellationToken ct = default)
Parameters
installationPluginInstallation- Repository interface for plugin installation data access operations.
ctCancellationToken- Repository interface for plugin installation data access operations.
Returns
- Task
- Repository interface for plugin installation data access operations.