Class JSONBasedDeploymentDashboardStorage
- java.lang.Object
-
- jetbrains.buildServer.serverSide.deploymentDashboards.storage.JSONBasedDeploymentDashboardStorage
-
- All Implemented Interfaces:
DeploymentDashboardStorage
public class JSONBasedDeploymentDashboardStorage extends Object implements DeploymentDashboardStorage
-
-
Constructor Summary
Constructors Constructor Description JSONBasedDeploymentDashboardStorage(ServerPaths serverPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkInstanceExists(String dashboardId, String instanceId)
boolean
dashboardDoesNotExist(String dashboardId)
void
deleteDashboard(String dashboardId)
void
deleteInstance(String dashboardId, String instanceId)
Map<String,DeploymentDashboard>
getAllDashboards()
Map<String,DeploymentDashboard>
getAllDashboards(String projectId)
DeploymentDashboard
getDashboard(String dashboardId)
void
persistDashboard(DeploymentDashboard dashboard)
void
persistInstance(DeploymentDashboard dashboard, DeploymentInstance instance)
-
-
-
Constructor Detail
-
JSONBasedDeploymentDashboardStorage
public JSONBasedDeploymentDashboardStorage(@NotNull ServerPaths serverPaths)
-
-
Method Detail
-
getAllDashboards
public Map<String,DeploymentDashboard> getAllDashboards(String projectId)
- Specified by:
getAllDashboards
in interfaceDeploymentDashboardStorage
-
getAllDashboards
public Map<String,DeploymentDashboard> getAllDashboards()
- Specified by:
getAllDashboards
in interfaceDeploymentDashboardStorage
-
dashboardDoesNotExist
public boolean dashboardDoesNotExist(String dashboardId)
- Specified by:
dashboardDoesNotExist
in interfaceDeploymentDashboardStorage
-
getDashboard
public DeploymentDashboard getDashboard(String dashboardId) throws DashboardNotFoundException
- Specified by:
getDashboard
in interfaceDeploymentDashboardStorage
- Throws:
DashboardNotFoundException
-
persistDashboard
public void persistDashboard(DeploymentDashboard dashboard)
- Specified by:
persistDashboard
in interfaceDeploymentDashboardStorage
-
deleteDashboard
public void deleteDashboard(String dashboardId)
- Specified by:
deleteDashboard
in interfaceDeploymentDashboardStorage
-
checkInstanceExists
public boolean checkInstanceExists(String dashboardId, String instanceId)
- Specified by:
checkInstanceExists
in interfaceDeploymentDashboardStorage
-
persistInstance
public void persistInstance(DeploymentDashboard dashboard, DeploymentInstance instance) throws DashboardNotFoundException
- Specified by:
persistInstance
in interfaceDeploymentDashboardStorage
- Throws:
DashboardNotFoundException
-
deleteInstance
public void deleteInstance(String dashboardId, String instanceId)
- Specified by:
deleteInstance
in interfaceDeploymentDashboardStorage
-
-