Class DeclarativeGraphProviderBean
- java.lang.Object
-
- jetbrains.buildServer.web.statistics.graph.DeclarativeGraphProviderBean
-
public class DeclarativeGraphProviderBean extends Object
Created by Andrey Titov on 8/5/14.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeclarativeGraphProviderBean.OrderRecord
-
Field Summary
Fields Modifier and Type Field Description protected String
myGroupName
protected ProjectManager
myProjectManager
protected SBuildServer
myServer
protected BuildDataStorage
myStorage
-
Constructor Summary
Constructors Constructor Description DeclarativeGraphProviderBean(String groupName, ValueProviderRegistry valueProviderRegistry, BuildDataStorage storage, SBuildServer server, EventDispatcher<ConfigActionsServerListener> configEvents, ProjectManager projectManager, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyOrder(SProject project, String[] order)
DeclarativeCompositeValueType
findChart(SProject project, String key)
String
getGroupName()
String[]
getOrder(SProject project)
List<DeclarativeCompositeValueType>
getOwnGraphs(SProject project)
protected Map<DeclarativeGraphProviderBean.OrderRecord,DeclarativeCompositeValueType>
getOwnGraphsMap(SProject project)
List<DeclarativeCompositeValueType>
getRegisteredGraphs(SProject project)
protected Map<DeclarativeGraphProviderBean.OrderRecord,DeclarativeCompositeValueType>
getRegisteredGraphsMap(SProject project)
List<RenderableChart>
getRenderableGraphs(SProject project)
boolean
hasGraphs(SProject project)
DeclarativeCompositeValueType
registerChart(SProject project, GraphBean chart)
GraphBean
removeChart(SProject project, String graphKey)
DeclarativeCompositeValueType
updateChart(SProject project, GraphBean graphBean, String graphId)
-
-
-
Field Detail
-
myStorage
protected final BuildDataStorage myStorage
-
myServer
protected final SBuildServer myServer
-
myGroupName
protected final String myGroupName
-
myProjectManager
protected final ProjectManager myProjectManager
-
-
Constructor Detail
-
DeclarativeGraphProviderBean
public DeclarativeGraphProviderBean(@NotNull String groupName, @NotNull ValueProviderRegistry valueProviderRegistry, @NotNull BuildDataStorage storage, @NotNull SBuildServer server, @NotNull EventDispatcher<ConfigActionsServerListener> configEvents, @NotNull ProjectManager projectManager, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
getGroupName
public String getGroupName()
-
getRenderableGraphs
@NotNull public List<RenderableChart> getRenderableGraphs(@Nullable SProject project)
-
getRegisteredGraphs
@NotNull public List<DeclarativeCompositeValueType> getRegisteredGraphs(@Nullable SProject project)
- Parameters:
project
- project- Returns:
- list of registered graphs
- Throws:
ClassCastException
- if ProjectSettingsManager stores another ProjectSettings instance in the specified Service Name
-
getRegisteredGraphsMap
@NotNull protected Map<DeclarativeGraphProviderBean.OrderRecord,DeclarativeCompositeValueType> getRegisteredGraphsMap(@NotNull SProject project)
-
getOwnGraphs
@NotNull public List<DeclarativeCompositeValueType> getOwnGraphs(@Nullable SProject project)
-
getOwnGraphsMap
@NotNull protected Map<DeclarativeGraphProviderBean.OrderRecord,DeclarativeCompositeValueType> getOwnGraphsMap(@NotNull SProject project)
-
findChart
@Nullable public DeclarativeCompositeValueType findChart(@Nullable SProject project, @NotNull String key)
-
registerChart
public DeclarativeCompositeValueType registerChart(@NotNull SProject project, @NotNull GraphBean chart)
-
updateChart
@Nullable public DeclarativeCompositeValueType updateChart(@NotNull SProject project, @NotNull GraphBean graphBean, String graphId)
-
hasGraphs
public boolean hasGraphs(@Nullable SProject project)
-
-