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 booleancheckInstanceExists(String dashboardId, String instanceId)booleandashboardDoesNotExist(String dashboardId)voiddeleteDashboard(String dashboardId)voiddeleteInstance(String dashboardId, String instanceId)Map<String,DeploymentDashboard>getAllDashboards()Map<String,DeploymentDashboard>getAllDashboards(String projectId)DeploymentDashboardgetDashboard(String dashboardId)voidpersistDashboard(DeploymentDashboard dashboard)voidpersistInstance(DeploymentDashboard dashboard, DeploymentInstance instance)
-
-
-
Constructor Detail
-
JSONBasedDeploymentDashboardStorage
public JSONBasedDeploymentDashboardStorage(@NotNull ServerPaths serverPaths)
-
-
Method Detail
-
getAllDashboards
public Map<String,DeploymentDashboard> getAllDashboards(String projectId)
- Specified by:
getAllDashboardsin interfaceDeploymentDashboardStorage
-
getAllDashboards
public Map<String,DeploymentDashboard> getAllDashboards()
- Specified by:
getAllDashboardsin interfaceDeploymentDashboardStorage
-
dashboardDoesNotExist
public boolean dashboardDoesNotExist(String dashboardId)
- Specified by:
dashboardDoesNotExistin interfaceDeploymentDashboardStorage
-
getDashboard
public DeploymentDashboard getDashboard(String dashboardId) throws DashboardNotFoundException
- Specified by:
getDashboardin interfaceDeploymentDashboardStorage- Throws:
DashboardNotFoundException
-
persistDashboard
public void persistDashboard(DeploymentDashboard dashboard)
- Specified by:
persistDashboardin interfaceDeploymentDashboardStorage
-
deleteDashboard
public void deleteDashboard(String dashboardId)
- Specified by:
deleteDashboardin interfaceDeploymentDashboardStorage
-
checkInstanceExists
public boolean checkInstanceExists(String dashboardId, String instanceId)
- Specified by:
checkInstanceExistsin interfaceDeploymentDashboardStorage
-
persistInstance
public void persistInstance(DeploymentDashboard dashboard, DeploymentInstance instance) throws DashboardNotFoundException
- Specified by:
persistInstancein interfaceDeploymentDashboardStorage- Throws:
DashboardNotFoundException
-
deleteInstance
public void deleteInstance(String dashboardId, String instanceId)
- Specified by:
deleteInstancein interfaceDeploymentDashboardStorage
-
-